HyperDbg Debugger
Toggle main menu visibility
Loading...
Searching...
No Matches
ModeBasedExecHook.h
Go to the documentation of this file.
1
12
#pragma once
13
15
// Definitions //
17
18
#define MAX_PHYSICAL_RAM_RANGE_COUNT 32
19
21
// Structures //
23
28
typedef
struct
MODE_BASED_RAM_REGIONS
29
{
30
UINT64
RamPhysicalAddress
;
31
UINT64
RamSize
;
32
33
}
MODE_BASED_RAM_REGIONS
, *
PMODE_BASED_RAM_REGIONS
;
34
36
// Globals //
38
39
MODE_BASED_RAM_REGIONS
PhysicalRamRegions
[
MAX_PHYSICAL_RAM_RANGE_COUNT
];
40
42
// Functions //
44
45
VOID
46
ModeBasedExecHookEnableOrDisable
(
VIRTUAL_MACHINE_STATE
* VCpu,
UINT32
State);
47
48
VOID
49
ModeBasedExecHookUninitialize
();
50
51
BOOLEAN
52
ModeBasedExecHookInitialize
();
53
54
BOOLEAN
55
ModeBasedExecHookDisableUserModeExecution
(
PVMM_EPT_PAGE_TABLE
EptTable);
56
57
BOOLEAN
58
ModeBasedExecHookDisableKernelModeExecution
(
PVMM_EPT_PAGE_TABLE
EptTable);
ModeBasedExecHookUninitialize
VOID ModeBasedExecHookUninitialize()
Uinitialize the needed structure for hooking mode execution.
Definition
ModeBasedExecHook.c:275
MAX_PHYSICAL_RAM_RANGE_COUNT
#define MAX_PHYSICAL_RAM_RANGE_COUNT
Definition
ModeBasedExecHook.h:18
ModeBasedExecHookDisableKernelModeExecution
BOOLEAN ModeBasedExecHookDisableKernelModeExecution(PVMM_EPT_PAGE_TABLE EptTable)
Adjust (unset) kernel-mode execution bit of target page-table but allow user-mode execution.
Definition
ModeBasedExecHook.c:67
PhysicalRamRegions
MODE_BASED_RAM_REGIONS PhysicalRamRegions[MAX_PHYSICAL_RAM_RANGE_COUNT]
Definition
ModeBasedExecHook.h:39
ModeBasedExecHookDisableUserModeExecution
BOOLEAN ModeBasedExecHookDisableUserModeExecution(PVMM_EPT_PAGE_TABLE EptTable)
Adjust (unset) user-mode execution bit of target page-table.
Definition
ModeBasedExecHook.c:23
ModeBasedExecHookInitialize
BOOLEAN ModeBasedExecHookInitialize()
Initialize the needed structure for hooking mode execution.
Definition
ModeBasedExecHook.c:213
ModeBasedExecHookEnableOrDisable
VOID ModeBasedExecHookEnableOrDisable(VIRTUAL_MACHINE_STATE *VCpu, UINT32 State)
Enable/disable MBEC.
Definition
ModeBasedExecHook.c:189
PMODE_BASED_RAM_REGIONS
struct MODE_BASED_RAM_REGIONS * PMODE_BASED_RAM_REGIONS
BOOLEAN
UCHAR BOOLEAN
Definition
BasicTypes.h:35
UINT32
unsigned int UINT32
Definition
BasicTypes.h:54
PVMM_EPT_PAGE_TABLE
struct _VMM_EPT_PAGE_TABLE * PVMM_EPT_PAGE_TABLE
VIRTUAL_MACHINE_STATE
struct _VIRTUAL_MACHINE_STATE VIRTUAL_MACHINE_STATE
The status of each core after and before VMX.
MODE_BASED_RAM_REGIONS
The RAM regions.
Definition
ModeBasedExecHook.h:29
MODE_BASED_RAM_REGIONS::RamPhysicalAddress
UINT64 RamPhysicalAddress
Definition
ModeBasedExecHook.h:30
MODE_BASED_RAM_REGIONS::RamSize
UINT64 RamSize
Definition
ModeBasedExecHook.h:31
hyperdbg
hyperhv
header
hooks
ModeBasedExecHook.h
Generated by
1.17.0