View Single Post
  #6  
Old 04-03-2019, 20:17
CodeCracker CodeCracker is offline
VIP
 
Join Date: Jun 2011
Posts: 466
Rept. Given: 27
Rept. Rcvd 406 Times in 134 Posts
Thanks Given: 21
Thanks Rcvd at 1,884 Times in 359 Posts
CodeCracker Reputation: 400-499 CodeCracker Reputation: 400-499 CodeCracker Reputation: 400-499 CodeCracker Reputation: 400-499 CodeCracker Reputation: 400-499
I found a way to kill import table redirection!

Breakpoint on write to code section (.text section) doesn't work on some cases
At this point we can watch how imports are restored!
Next will check for Import Redirection magic jump: that jump should jump
The script may log more then one jump location: obviously only one location is right
First that sheet gets the kernel32.GetModuleHandleA RVA = B741 (41B70000)
Export table address: 7C802C2C 41 B7 00 00
So set breakpoint on read to 7C802C2C, after breakpoint and continue execution (step in)
you will see that will compare ndll base address with kernel32.GetModuleHandleA
The jump after should jump and imports will be no more redirected (clean import table)!
Attached Files
File Type: txt Safengine_OEP_finder_&IAT.txt (5.8 KB, 24 views)
Reply With Quote
The Following 6 Users Say Thank You to CodeCracker For This Useful Post:
ahmadmansoor (04-03-2019), Indigo (07-19-2019), niculaita (04-03-2019), p4r4d0x (04-04-2019), RiRye (04-04-2019), Top10 (04-04-2019)