Closed alexrp closed 1 year ago
I'll compare an older unpacked binary to this one and see if I can make out anything interesting.
I'll compare an older unpacked binary to this one and see if I can make out anything interesting.
Nothing stands out; ExitProcess
is called in all the same places as before. @ergrelet any thoughts?
Hi @alexrp! Thanks for taking the time to report and take a look at this!
It seems to be due to a regression I introduced during my recent changes to the IAT search algorithm. I managed to reproduce something similar during my regression testing and just pushed a fix for that on dev
.
You can pull dev
again (and reset your local branch as I have rewritten the git history).
Looks to be working as expected now:
$ unlicense TERA.exe
INFO - Detected packer version: 3.x
frida-agent: Setting up OEP tracing for "TERA.exe"
frida-agent: Exception handler registered
frida-agent: TLS callback #0 detected (at 0x7ff720ae5090), skipping ...
frida-agent: TLS callback #1 detected (at 0x7ff720ae5490), skipping ...
frida-agent: OEP found (thread #18152): 0x7ff720ae587c
INFO - OEP reached: OEP=0x7ff720ae587c BASE=0x7ff71ec00000 DOTNET=False
INFO - Looking for the IAT...
INFO - Performing linear scan in data sections...
INFO - IAT found: 0x7ff720c09000-0x7ff7219934fa
INFO - Resolving imports ...
INFO - Imports resolved: 768
INFO - Fixed IAT at 0x7ff720c09000, size=0x1979
INFO - Dumping PE with OEP=0x7ff720ae587c ...
INFO - Fixing dump ...
INFO - Rebuilding PE ...
INFO - Output file has been saved at 'unpacked_TERA.exe'
Can you could help me? I'm getting the same result, but in my case only 2 pointers to IAT are offucused. The exe unpacked run normally, but in middle of execution entering in the game, it crashes because some function not found on IAT.
I don't know if this is expected, but the
dev
branch currently gives these warnings:These didn't appear before for this binary.