"""dump_va.py [n=64] Dump n bytes from a PE file at a given VA (using image base + .text section).""" import struct, sys def main(): path = sys.argv[1] va = int(sys.argv[2], 0) n = int(sys.argv[3]) if len(sys.argv) > 3 else 64 with open(path, 'rb') as f: data = f.read() pe_off = struct.unpack_from('