![]() |
|
|
#13 |
|
Архивный участник
Join Date: Jun 2006
Posts: 14
|
I'm working on a method for getting the function table to work with statically imported functions. My plans are for another field that determines the address type (absolute address or thunk). Absolute address is the default and is what all of the functions use right now. With the thunk type, when the function table is loaded, the program will go to the given address to find the address of the thunk, which will then be used in the in-memory copy of the function table.
Some information on statically importing functions: You can import a function into L2NPC.exe using stud_pe. Since the address can change, programs use thunks (which are essentially tiny functions) to call the imported function. The thunk address shown by stud_pe is actually the address of the memory that is filled in at program startup with the address of the thunk. So, to call an imported function, you would dereference the thunk address and call that. |
|
|
|
|