"""The shared reverse-engineering lookups, against a small synthetic image and annotation set.""" import json import shutil import struct import unittest from helpers import temp_dir from harbor.reverse import Reverse from harbor.util import HarborError class ReverseTools(unittest.TestCase): def setUp(self): self.d = temp_dir() base = 0x401000 image = bytearray(0x100) # 0x401000: mov ecx,[0x401080]; call 0x401040; fmul dword [0x401090]; ret code = bytes.fromhex("8b0d80104000") + b"\xe8" + struct.pack("