MCPcopy Create free account
hub / github.com/ayoubfaouzi/al-khaser / OutputDebugStringAPI

Function OutputDebugStringAPI

al-khaser/AntiDebug/OutputDebugStringAPI.cpp:16–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14*/
15
16BOOL OutputDebugStringAPI()
17{
18
19 BOOL IsDbgPresent = FALSE;
20 DWORD Val = 0x29A;
21
22 // This is working only in Windows XP/2000
23 if (IsWindowsXPOr2k())
24 {
25 SetLastError(Val);
26 OutputDebugString(_T("random"));
27
28 if (GetLastError() == Val)
29 IsDbgPresent = TRUE;
30 }
31
32 return IsDbgPresent;
33}
34

Callers

nothing calls this directly

Calls 1

IsWindowsXPOr2kFunction · 0.85

Tested by

no test coverage detected