killchain-compendium/reverse engineering/docs/dll_reversing.md

10 lines
261 B
Markdown
Raw Normal View History

2021-11-24 23:52:42 +01:00
# DLL Reversing
* Start DLL on its own with the help a wrapper
```C#
HMODULE dll = LoadLibraryA("DLL.DLL");
typedef void(WINAPI* Add_TypeDef)(int, int); // Add(int x, int y)
Add_TypeDef Add = (Add_TypeDef)GetProcAddress(dll, "Add_MangledName");
Add(1, 2);
```