Windows API category
Anti-Debugging
Debugger checks, timing measurement, debug-object tricks and debugger-blocking thread flags. Often the first thing an analyst has to patch or bypass.
Detecting or frustrating debuggers, sandboxes and analysis tools. This category contains 33 APIs.
Open Anti-Debugging in the interactive atlasAnti-Debugging APIs
Last reviewed or generated: .
-
AddVectoredContinueHandler
Registers a handler that runs after normal exception processing.
-
AddVectoredExceptionHandler
Registers a vectored exception handler that runs before structured exception handling.
-
CheckRemoteDebuggerPresent
Checks whether another process is being debugged.
-
ContinueDebugEvent
Continues a debuggee after a debug event was handled.
-
DebugActiveProcess
Attaches the calling process as a debugger to another process.
-
DebugActiveProcessStop
Detaches a debugger from the target process.
-
DebugBreak
Raises a breakpoint exception in the current process.
-
FindWindowExW
Finds a child window matching class and title.
-
FindWindowW
Finds a top-level window whose class name and window name match the given strings.
-
GetCursorPos
Retrieves the cursor position in screen coordinates.
-
GetLastInputInfo
Returns the time of the last user input event and the tick count when it occurred.
-
GetLocalTime
Retrieves the current local date and time, including the timezone bias.
-
GetModuleFileNameA
ANSI variant of GetModuleFileName.
-
GetModuleFileNameW
Returns the full path of a module loaded in the calling process.
-
GetSystemTimePreciseAsFileTime
Returns a high-precision UTC timestamp.
-
GetThreadContext
Retrieves the register context of a thread.
-
GetTickCount
Returns 32-bit milliseconds since system start; wraparound and comparison tricks are used in timing checks.
-
GetTickCount64
Returns the number of milliseconds since the system started, without wraparound.
-
IsDebuggerPresent
Reports whether the calling process is being debugged by a user-mode debugger.
-
NtClose
Closes a handle to a kernel object.
-
NtQueryInformationProcess
Retrieves information about a process such as debug flags, image name or parent PID.
-
NtQueryInformationThread
Native query of thread details such as start address and TEB.
-
NtQueryObject
Queries metadata for a handle, such as its type or name.
-
NtQueryVirtualMemory
Queries page state, protection and mapping information in a process address space.
-
NtSetInformationThread
Native thread configuration call; ThreadHideFromDebugger detaches a thread from debuggers.
-
OutputDebugStringA
ANSI variant of OutputDebugString, also used as a debugger check.
-
OutputDebugStringW
Sends a string to the debugger; an error in the last error value can reveal a debugger.
-
QueryFullProcessImageNameW
Retrieves the full image path of a process for a handle opened with PROCESS_QUERY_LIMITED_INFORMATION.
-
QueryPerformanceCounter
Reads a high-resolution timestamp used for timing-based detection of debuggers and sandboxes.
-
RaiseException
Raises a software exception with a custom code.
-
RtlGetVersion
Returns the true OS version from the PEB, bypassing GetVersionEx compatibility shims.
-
SetUnhandledExceptionFilter
Registers a process-wide filter called when an unhandled exception reaches the top level.
-
WaitForDebugEvent
Waits for a debugging event from a debuggee.