I try to decompile an executable which is something like key-logger, and it references these 2 dlls in which I cannot drill down:
Any idea/help please of where to find more information/documentation about these? I mean their api contracts.
UPDATE:
It is difficult to identify which methods of it are called, because in the decompiled code there is code like that:
[DllImport("user32.dll", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Auto)]
public static extern int SetWindowsHookEx(int idHook, HookProc lpfn, IntPtr hInstance, int threadId);
public void Start()
{
if (hKeyboardHook == 0)
{
this.KeyboardHookProcedure = new HookProc(this.KeyboardHookProc);
hKeyboardHook = SetWindowsHookEx(13, this.KeyboardHookProcedure, Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]), 0);
if (hKeyboardHook == 0)
{
this.Stop();
throw new Exception("SetWindowsHookEx ist failed.");
}
}
}
Take a look at the following line:
Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0])
It does not have the method name explicitly...
That is why I am trying to guess
