tr1stan
October 6th, 2012, 17:29
Hi,
I just need to hook all functions of a dll because I want to know from which address a function is called (resolving api mangling).
My current approch:
1. hooking LoadLibrary and read the export table of the loaded dll
2. hook each function of the export table so my own call bridge is executed if a function gets called
3. inside the call bridge I analyse the stack values from which address this api function returns after execution
My solutions works but it's really error prone. So if anyone knows a better easier way of hooking a complete dll please speek up
Preferably a solution which isn't easy detectable
tr1stan
I just need to hook all functions of a dll because I want to know from which address a function is called (resolving api mangling).
My current approch:
1. hooking LoadLibrary and read the export table of the loaded dll
2. hook each function of the export table so my own call bridge is executed if a function gets called
3. inside the call bridge I analyse the stack values from which address this api function returns after execution
My solutions works but it's really error prone. So if anyone knows a better easier way of hooking a complete dll please speek up

Preferably a solution which isn't easy detectable

tr1stan