How to detect the dll or exe from the address(memory) of its function?

Hi, I need to know how i can detect a keylogger. I've found some basic technique in doing the same. The technique is 1. Get the image of the user32. dll 2. Disassemble the dll( traverse the user32. dll ie find the memory location of all the api in the user32.

Everything New Technology 1823 This topic was started by ,


data/avatar/default/avatar13.webp

2 Posts
Location -
Joined 2005-07-01
Hi,
I need to know how i can detect a keylogger.
I've found some basic technique in doing the same.
The technique is
1.Get the image of the user32.dll
2.Disassemble the dll( traverse the user32.dll ie find the memory location of all the api in the user32.dll)
3.If the api is hooked means it will be having a jump instruction when the original api is called.
4.If this jump instruction points to a memory location outside the image of the user32.dll then the api is hooked otherwise it is not.
5.I've found the memory address of the hooked function.
 
My question how can i detect the dll or exe from the function pointer address which i got from the discrepancies i found when the api is hooked.
 
Pls provide a solution to that.
 
Regards
saravanan

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar09.webp

1019 Posts
Location -
Joined 2004-12-21
Download Dependency Walker from here:
http://dependencywalker.com/

Quote:Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules. For each module found, it lists all the functions that are exported by that module, and which of those functions are actually being called by other modules. Another view displays the minimum set of required files, along with detailed information about each file including a full path to the file, base address, version numbers, machine type, debug information, and more.

 
Screenshot about it:

 
Then open the file (user32.dll) you want with it.