Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-11-2005, 16:11
hajir
 
Posts: n/a
The programs that use some APIs, have import table that points to the name & module of needed APIs .
At the runtime, the loader (Operating system) loads appropriate modules (such as Kernel32, User32 & GUI32) and fills the entries of this table with the current address of APIs in the memory.

In the packed or encrypted programs, the unpacker routine that runs at the start of the program, performs this operation. This routine first loads the module with LoadLibray() API and then finds the address of desired APIs by calling GetProcAddress().

If you can not remove this unpacking routine, you should use other hooking techniques such as DLL injection.
Reply With Quote
  #2  
Old 01-11-2005, 20:12
MarkusO
 
Posts: n/a
@hajir:
I think "Kerlingen" knows about what you write since he says that he has patched the imports to point directly to the API.
As far as I understand him, he has this kind of code:
Code:
(...)
call     some_label     ; E8 call, not FF15 call
(...)
some_label:
jmp     dllname!exportname     ; "E9" relative jump
So his problem is that normally there is a call or jump to an address of the import table but here it isn't and he doesn't find the IAT in merory or there is even no IAT, so he has no table of entries like you called it.

@kerlingen:
Have you tried to find code like this
Code:
mov     esi, [offset iat+somevalue]
call    esi

;or

jmp     dword ptr [xxxxxxxx]     ; FF25 jump
If your code is written in high-level language (which I think nearly all games are) you should find my code somewhere.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add imports to DLL import table jonwil General Discussion 5 09-07-2020 16:47
How to shuffle names in the PE import table? Newbie_Cracker General Discussion 5 08-25-2019 03:59
Reliable PE Library or DLL for Adding Functions to Import Table omidgl General Discussion 3 06-28-2008 09:53
Can`t restore import table thechatter General Discussion 9 11-14-2003 21:01
Changing Import Table?? magic General Discussion 3 09-14-2003 01:59


All times are GMT +8. The time now is 23:02.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )