HyperDbg Debugger
|
try to hide the debugger from anti-debugging and anti-hypervisor methods More...
#include "pch.h"
Macros | |
#define | MY_RAND_MAX 32768 |
maximum random value | |
Functions | |
UINT32 | TransparentGetRand () |
Generate a random number by utilizing RDTSC instruction. | |
int | TransparentPow (int x, int p) |
Integer power function definition. | |
int | TransparentLog (int x) |
Integer Natural Logarithm function estimation. | |
int | TransparentSqrt (int x) |
Integer root function estimation. | |
int | TransparentRandn (int Average, int Sigma) |
Integer Gaussian Random Number Generator(GRNG) based on Box-Muller method. A Float to Integer mapping is used in the function. | |
BOOLEAN | TransparentAddNameOrProcessIdToTheList (PDEBUGGER_HIDE_AND_TRANSPARENT_DEBUGGER_MODE Measurements) |
Add name or process id of the target process to the list of processes that HyperDbg should apply transparent-mode on them. | |
NTSTATUS | TransparentHideDebugger (PDEBUGGER_HIDE_AND_TRANSPARENT_DEBUGGER_MODE Measurements) |
Hide debugger on transparent-mode (activate transparent-mode) | |
NTSTATUS | TransparentUnhideDebugger () |
Deactivate transparent-mode. | |
BOOLEAN | TransparentModeStart (VIRTUAL_MACHINE_STATE *VCpu, UINT32 ExitReason) |
VM-Exit handler for different exit reasons. | |
Variables | |
int | TransparentTableLog [] |
pre-defined log result | |
try to hide the debugger from anti-debugging and anti-hypervisor methods
#define MY_RAND_MAX 32768 |
maximum random value
BOOLEAN TransparentAddNameOrProcessIdToTheList | ( | PDEBUGGER_HIDE_AND_TRANSPARENT_DEBUGGER_MODE | Measurements | ) |
Add name or process id of the target process to the list of processes that HyperDbg should apply transparent-mode on them.
Measurements |
UINT32 TransparentGetRand | ( | ) |
NTSTATUS TransparentHideDebugger | ( | PDEBUGGER_HIDE_AND_TRANSPARENT_DEBUGGER_MODE | Measurements | ) |
Hide debugger on transparent-mode (activate transparent-mode)
Measurements |
int TransparentLog | ( | int | x | ) |
Integer Natural Logarithm function estimation.
@params x input value
BOOLEAN TransparentModeStart | ( | VIRTUAL_MACHINE_STATE * | VCpu, |
UINT32 | ExitReason ) |
VM-Exit handler for different exit reasons.
Should be called from vmx-root
VCpu | The virtual processor's state |
ExitReason | Exit Reason |
int TransparentPow | ( | int | x, |
int | p ) |
Integer power function definition.
@params x Base Value @params p Power Value
int TransparentRandn | ( | int | Average, |
int | Sigma ) |
Integer Gaussian Random Number Generator(GRNG) based on Box-Muller method. A Float to Integer mapping is used in the function.
@params Average Mean @parans Sigma Standard Deviation of the targeted Gaussian Distribution
int TransparentSqrt | ( | int | x | ) |
Integer root function estimation.
@params x input value
NTSTATUS TransparentUnhideDebugger | ( | ) |
Deactivate transparent-mode.
int TransparentTableLog[] |
pre-defined log result
we used this because we want to avoid using floating-points in kernel