HyperDbg Debugger
Toggle main menu visibility
Loading...
Searching...
No Matches
GlobalVariables.h
Go to the documentation of this file.
1
15
#pragma once
16
18
// Global Variables //
20
26
COMPATIBILITY_CHECKS_STATUS
g_CompatibilityCheck
;
27
32
VMM_CALLBACKS
g_Callbacks
;
33
38
VIRTUAL_MACHINE_STATE
*
g_GuestState
;
39
44
MEMORY_MAPPER_ADDRESSES
*
g_MemoryMapper
;
45
50
EPT_STATE
*
g_EptState
;
51
56
LIST_ENTRY
g_EptHook2sDetourListHead
;
57
62
BOOLEAN
g_IsEptHook2sDetourListInitialized
;
63
68
VOID *
g_ApicBase
;
69
74
VOID *
g_IoApicBase
;
75
81
BOOLEAN
g_NmiBroadcastingInitialized
;
82
87
PVOID
g_NmiHandlerForKeDeregisterNmiCallback
;
88
94
BOOLEAN
g_IsUnsafeSyscallOrSysretHandling
;
95
100
UINT64 *
g_MsrBitmapInvalidMsrs
;
101
106
BOOLEAN
g_ModeBasedExecutionControlState
;
107
112
SYSCALL_CALLBACK_TRAP_FLAG_STATE
*
g_SyscallCallbackTrapFlagState
;
113
118
BOOLEAN
g_SyscallCallbackStatus
;
119
124
PVOID
g_SystemCallHookAddress
;
125
131
BOOLEAN
g_CheckForFootprints
;
132
134
// Global Variable (debugger-related) //
136
142
BOOLEAN
g_TriggerEventForVmcalls
;
143
149
BOOLEAN
g_TriggerEventForCpuids
;
150
151
BOOLEAN
g_TriggerEventForXsetbvs
;
152
154
// Global Variable (Execution Trap) //
156
162
BOOLEAN
g_ExecTrapInitialized
;
163
169
BOOLEAN
g_ExecTrapUnInitializationStarted
;
170
175
USER_KERNEL_EXECUTION_TRAP_STATE
g_ExecTrapState
;
176
181
BOOLEAN
g_IsInterceptingInstructions
;
182
184
// Global Variable (page-fault injection) //
186
192
BOOLEAN
g_WaitingForInterruptWindowToInjectPageFault
;
193
198
UINT64
g_PageFaultInjectionAddressFrom
;
199
204
UINT64
g_PageFaultInjectionAddressTo
;
205
210
UINT32
g_PageFaultInjectionErrorCode
;
211
215
BOOLEAN
g_IsVpidSupported
;
216
220
BOOLEAN
g_IsTopLevelHypervisorHyperV
;
COMPATIBILITY_CHECKS_STATUS
struct _COMPATIBILITY_CHECKS_STATUS COMPATIBILITY_CHECKS_STATUS
The status of available features in the processor.
EPT_STATE
struct _EPT_STATE EPT_STATE
Main structure for saving the state of EPT among the project.
USER_KERNEL_EXECUTION_TRAP_STATE
struct _USER_KERNEL_EXECUTION_TRAP_STATE USER_KERNEL_EXECUTION_TRAP_STATE
The status user-mode, kernel-mode execution traps for processes.
MEMORY_MAPPER_ADDRESSES
struct _MEMORY_MAPPER_ADDRESSES MEMORY_MAPPER_ADDRESSES
Memory mapper PTE and reserved virtual address.
SYSCALL_CALLBACK_TRAP_FLAG_STATE
struct _SYSCALL_CALLBACK_TRAP_FLAG_STATE SYSCALL_CALLBACK_TRAP_FLAG_STATE
The threads that we expect to get the trap flag.
BOOLEAN
UCHAR BOOLEAN
Definition
BasicTypes.h:35
PVOID
void * PVOID
Definition
BasicTypes.h:56
UINT32
unsigned int UINT32
Definition
BasicTypes.h:54
VMM_CALLBACKS
struct _VMM_CALLBACKS VMM_CALLBACKS
Prototype of each function needed by VMM module.
g_Callbacks
HYPEREVADE_CALLBACKS g_Callbacks
List of callbacks.
Definition
Transparency.h:23
VIRTUAL_MACHINE_STATE
struct _VIRTUAL_MACHINE_STATE VIRTUAL_MACHINE_STATE
The status of each core after and before VMX.
g_GuestState
VIRTUAL_MACHINE_STATE * g_GuestState
Save the state and variables related to virtualization on each to logical core.
Definition
GlobalVariables.h:38
g_ExecTrapUnInitializationStarted
BOOLEAN g_ExecTrapUnInitializationStarted
Showes whether the uninitialization of the exec trap is started or not.
Definition
GlobalVariables.h:169
g_IsVpidSupported
BOOLEAN g_IsVpidSupported
Whether VPID is supported or not.
Definition
GlobalVariables.h:215
g_IsTopLevelHypervisorHyperV
BOOLEAN g_IsTopLevelHypervisorHyperV
Whether the top level hypervisor is Hyper-V or not.
Definition
GlobalVariables.h:220
g_TriggerEventForXsetbvs
BOOLEAN g_TriggerEventForXsetbvs
Definition
GlobalVariables.h:151
g_EptState
EPT_STATE * g_EptState
Save the state and variables related to EPT.
Definition
GlobalVariables.h:50
g_ModeBasedExecutionControlState
BOOLEAN g_ModeBasedExecutionControlState
Enable interception of Cr3 for Mode-based Execution detection.
Definition
GlobalVariables.h:106
g_PageFaultInjectionAddressTo
UINT64 g_PageFaultInjectionAddressTo
The (to) address for page-fault injection.
Definition
GlobalVariables.h:204
g_CompatibilityCheck
COMPATIBILITY_CHECKS_STATUS g_CompatibilityCheck
Different attributes and compatibility checks of the current processor.
Definition
GlobalVariables.h:26
g_ApicBase
VOID * g_ApicBase
Local APIC Base.
Definition
GlobalVariables.h:68
g_SyscallCallbackStatus
BOOLEAN g_SyscallCallbackStatus
Shows whether the syscall callback is enabled or not.
Definition
GlobalVariables.h:118
g_MemoryMapper
MEMORY_MAPPER_ADDRESSES * g_MemoryMapper
Save the state of memory mapper.
Definition
GlobalVariables.h:44
g_ExecTrapState
USER_KERNEL_EXECUTION_TRAP_STATE g_ExecTrapState
State of the trap-flag.
Definition
GlobalVariables.h:175
g_WaitingForInterruptWindowToInjectPageFault
BOOLEAN g_WaitingForInterruptWindowToInjectPageFault
Shows whether the VMM is waiting to inject a page-fault or not.
Definition
GlobalVariables.h:192
g_TriggerEventForVmcalls
BOOLEAN g_TriggerEventForVmcalls
Showes whether the vmcall handler is allowed to trigger an event or not.
Definition
GlobalVariables.h:142
g_PageFaultInjectionAddressFrom
UINT64 g_PageFaultInjectionAddressFrom
The (from) address for page-fault injection.
Definition
GlobalVariables.h:198
g_NmiHandlerForKeDeregisterNmiCallback
PVOID g_NmiHandlerForKeDeregisterNmiCallback
NMI handler pointer for KeDeregisterNmiCallback.
Definition
GlobalVariables.h:87
g_IsEptHook2sDetourListInitialized
BOOLEAN g_IsEptHook2sDetourListInitialized
List header of hidden hooks detour.
Definition
GlobalVariables.h:62
g_IsUnsafeSyscallOrSysretHandling
BOOLEAN g_IsUnsafeSyscallOrSysretHandling
Shows whether the debuggee is waiting for an trap step or not.
Definition
GlobalVariables.h:94
g_NmiBroadcastingInitialized
BOOLEAN g_NmiBroadcastingInitialized
check for broadcasting NMI mechanism support and its initialization
Definition
GlobalVariables.h:81
g_TriggerEventForCpuids
BOOLEAN g_TriggerEventForCpuids
Showes whether the cpuid handler is allowed to trigger an event or not.
Definition
GlobalVariables.h:149
g_EptHook2sDetourListHead
LIST_ENTRY g_EptHook2sDetourListHead
List header of hidden hooks detour.
Definition
GlobalVariables.h:56
g_MsrBitmapInvalidMsrs
UINT64 * g_MsrBitmapInvalidMsrs
Bitmap of MSRs that cause GP.
Definition
GlobalVariables.h:100
g_PageFaultInjectionErrorCode
UINT32 g_PageFaultInjectionErrorCode
The error code for page-fault injection.
Definition
GlobalVariables.h:210
g_IoApicBase
VOID * g_IoApicBase
I/O APIC Base.
Definition
GlobalVariables.h:74
g_IsInterceptingInstructions
BOOLEAN g_IsInterceptingInstructions
Test value for intercepting instructions.
Definition
GlobalVariables.h:181
g_SyscallCallbackTrapFlagState
SYSCALL_CALLBACK_TRAP_FLAG_STATE * g_SyscallCallbackTrapFlagState
State of syscall callback trap flags.
Definition
GlobalVariables.h:112
g_CheckForFootprints
BOOLEAN g_CheckForFootprints
Shows whether the footprints (anti-debugging and anti-hypervisor) should be checked or not.
Definition
GlobalVariables.h:131
g_ExecTrapInitialized
BOOLEAN g_ExecTrapInitialized
Showes whether the execution trap handler is allowed to trigger an event or not.
Definition
GlobalVariables.h:162
g_SystemCallHookAddress
PVOID g_SystemCallHookAddress
Target hook address for the system call handler.
Definition
GlobalVariables.h:124
hyperdbg
hyperhv
header
globals
GlobalVariables.h
Generated by
1.17.0