import struct, sys, io sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace') data = open('HAVOC_NOCD.EXE','rb').read() FO2VA = lambda fo: fo + 0x400C00 VA2FO = lambda va: va - 0x400C00 target_va = 0x40AB90 # crash_stub print("=== All CALL instructions targeting 0x40AB90 (crash_stub) ===") for fo in range(0x400, len(data)-4): if data[fo] == 0xe8: rel = struct.unpack_from('