Is there a way to inspect a single(C++ compiled) DLL file and find out what Win32 function calls it makes?
I have MyDll.dll
file. I know that somewhere inside this dll, there is a piece of code that is retrieving a information from the Windows Registry.
Is there a way to find out what Registry Keys the DLL is accessing??
You can access the DLL's PE Imports table to determine which Win2 API functions the DLL statically links to, but that is no guarantee that the functions are actually called in the DLL's code, and that also does not account for Win32 API functions that are loaded dynamically via GetProcAddress()
.
To find out which Registry keys the DLL is accessing, you can:
RegOpenKeyEx()
, RegQueryValueEx()
, and other Registry functions are being called.You need to execute the DLL; if you do so then Sysinternals (now part of Microsoft) Process Monitor will show you all registry access made by the process, and capture the stack trace for each (which you can use to find calls made from that DLL).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With