I don't have access to a PC right now to test this, but I suspect you can define your own hook function which is a lightly tweaked copy of the existing stringhi_hook:stringhi() also takes an optional include_terminator_fn which *might* let you do something like:Are you sure the &8d isn't an actual STA opcode? I am wondering if some other bug in py8dis is confusing matters here.
Code:
def my_stringhi_hook(target, addr): return stringhi(addr + 3) + 1
Code:
def my_stringhi_hook(target, addr): return stringhi(addr + 3, include_terminator_fn=lambda b: True)
Statistics: Posted by SteveF — Mon Feb 05, 2024 2:25 am