HyperDbg Debugger
Loading...
Searching...
No Matches
InlineAsm.h File Reference

The definition of functions written in Assembly. More...

Go to the source code of this file.

Functions

void AsmEnableVmxOperation ()
 Enable VMX Operation.
 
void AsmRestoreToVmxOffState ()
 Restore in vmxoff state.
 
NTSTATUS AsmVmxVmcall (unsigned long long VmcallNumber, unsigned long long OptionalParam1, unsigned long long OptionalParam2, long long OptionalParam3)
 Request Vmcall.
 
void AsmHypervVmcall (unsigned long long GuestRegisters)
 Hyper-v vmcall handler.
 
unsigned long long AsmVmfunc (unsigned long EptpIndex, unsigned long Function)
 VMFUNC instruction.
 
void AsmVmxSaveState ()
 Save state on vmx.
 
void AsmVmxRestoreState ()
 Restore state on vmx.
 
void AsmVmexitHandler ()
 Vm-exit handler.
 
void AsmSaveVmxOffState ()
 Save vmxoff state.
 
unsigned char AsmInvept (unsigned long Type, void *Descriptors)
 INVEPT wrapper.
 
unsigned char AsmInvvpid (unsigned long Type, void *Descriptors)
 INVVPID wrapper.
 
unsigned short AsmGetCs ()
 Get CS Register.
 
unsigned short AsmGetDs ()
 Get DS Register.
 
unsigned short AsmGetEs ()
 Get ES Register.
 
unsigned short AsmGetSs ()
 Get SS Register.
 
unsigned short AsmGetFs ()
 Get FS Register.
 
unsigned short AsmGetGs ()
 Get GS Register.
 
unsigned short AsmGetLdtr ()
 Get LDTR Register.
 
unsigned short AsmGetTr ()
 Get TR Register.
 
unsigned long long AsmGetGdtBase ()
 get GDT base
 
unsigned short AsmGetGdtLimit ()
 Get GDT Limit.
 
unsigned long long AsmGetIdtBase ()
 Get IDT base.
 
unsigned short AsmGetIdtLimit ()
 Get IDT limit.
 
UINT32 AsmGetAccessRights (unsigned short Selector)
 
unsigned short AsmGetRflags ()
 Get R/EFLAGS.
 
void AsmCliInstruction ()
 Run CLI Instruction.
 
void AsmStiInstruction ()
 Run STI Instruction.
 
void AsmReloadGdtr (void *GdtBase, unsigned long GdtLimit)
 Reload new GDTR.
 
void AsmReloadIdtr (void *GdtBase, unsigned long GdtLimit)
 Reload new IDTR.
 
void AsmGeneralDetourHook (void)
 Detour hook handler.
 
unsigned long long AsmTestWrapperWithTestTags (unsigned long long Param1, unsigned long long Param2, unsigned long long Param3, unsigned long long Param4)
 Tests with test tags wrapper.
 
void InterruptHandler0 ()
 The 0th entry in IDT.
 
void InterruptHandler1 ()
 The 1st entry in IDT.
 
void InterruptHandler2 ()
 The 2nd entry in IDT.
 
void InterruptHandler3 ()
 The 3rd entry in IDT.
 
void InterruptHandler4 ()
 The 4th entry in IDT.
 
void InterruptHandler5 ()
 The 5th entry in IDT.
 
void InterruptHandler6 ()
 The 6th entry in IDT.
 
void InterruptHandler7 ()
 The 7th entry in IDT.
 
void InterruptHandler8 ()
 The 8th entry in IDT.
 
void InterruptHandler9 ()
 The 9th entry in IDT.
 
void InterruptHandler10 ()
 The 10th entry in IDT.
 
void InterruptHandler11 ()
 The 11th entry in IDT.
 
void InterruptHandler12 ()
 The 12th entry in IDT.
 
void InterruptHandler13 ()
 The 13th entry in IDT.
 
void InterruptHandler14 ()
 The 14th entry in IDT.
 
void InterruptHandler15 ()
 The 15th entry in IDT.
 
void InterruptHandler16 ()
 The 16th entry in IDT.
 
void InterruptHandler17 ()
 The 17th entry in IDT.
 
void InterruptHandler18 ()
 The 18th entry in IDT.
 
void InterruptHandler19 ()
 The 19th entry in IDT.
 
void InterruptHandler20 ()
 The 20th entry in IDT.
 
void InterruptHandler21 ()
 The 21st entry in IDT.
 
void InterruptHandler22 ()
 The 22nd entry in IDT.
 
void InterruptHandler23 ()
 The 23rd entry in IDT.
 
void InterruptHandler24 ()
 The 24th entry in IDT.
 
void InterruptHandler25 ()
 The 25th entry in IDT.
 
void InterruptHandler26 ()
 The 26th entry in IDT.
 
void InterruptHandler27 ()
 The 27th entry in IDT.
 
void InterruptHandler28 ()
 The 28th entry in IDT.
 
void InterruptHandler29 ()
 The 29th entry in IDT.
 
void InterruptHandler30 ()
 The 30th entry in IDT.
 

Detailed Description

The definition of functions written in Assembly.

Author
Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
Version
0.1
Date
2020-04-11

Function Documentation

◆ AsmCliInstruction()

void AsmCliInstruction ( )
externinline

Run CLI Instruction.

◆ AsmEnableVmxOperation()

void AsmEnableVmxOperation ( )
externinline

Enable VMX Operation.

◆ AsmGeneralDetourHook()

void AsmGeneralDetourHook ( void )
extern

Detour hook handler.

◆ AsmGetAccessRights()

UINT32 AsmGetAccessRights ( unsigned short Selector)
extern

◆ AsmGetCs()

unsigned short AsmGetCs ( )
extern

Get CS Register.

Returns
unsigned short

◆ AsmGetDs()

unsigned short AsmGetDs ( )
extern

Get DS Register.

Returns
unsigned short

◆ AsmGetEs()

unsigned short AsmGetEs ( )
extern

Get ES Register.

Returns
unsigned short

◆ AsmGetFs()

unsigned short AsmGetFs ( )
extern

Get FS Register.

Returns
unsigned short

◆ AsmGetGdtBase()

unsigned long long AsmGetGdtBase ( )
externinline

get GDT base

Returns
unsigned long long

◆ AsmGetGdtLimit()

unsigned short AsmGetGdtLimit ( )
extern

Get GDT Limit.

Returns
unsigned short

◆ AsmGetGs()

unsigned short AsmGetGs ( )
extern

Get GS Register.

Returns
unsigned short

◆ AsmGetIdtBase()

unsigned long long AsmGetIdtBase ( )
externinline

Get IDT base.

Returns
unsigned long long

◆ AsmGetIdtLimit()

unsigned short AsmGetIdtLimit ( )
extern

Get IDT limit.

Returns
unsigned short

◆ AsmGetLdtr()

unsigned short AsmGetLdtr ( )
extern

Get LDTR Register.

Returns
unsigned short

◆ AsmGetRflags()

unsigned short AsmGetRflags ( )
extern

Get R/EFLAGS.

Returns
unsigned short

◆ AsmGetSs()

unsigned short AsmGetSs ( )
extern

Get SS Register.

Returns
unsigned short

◆ AsmGetTr()

unsigned short AsmGetTr ( )
extern

Get TR Register.

Returns
unsigned short

◆ AsmHypervVmcall()

void AsmHypervVmcall ( unsigned long long GuestRegisters)
externinline

Hyper-v vmcall handler.

Parameters
GuestRegisters
Returns
void

◆ AsmInvept()

unsigned char AsmInvept ( unsigned long Type,
void * Descriptors )
externinline

INVEPT wrapper.

Parameters
Type
Descriptors
Returns
unsigned char

◆ AsmInvvpid()

unsigned char AsmInvvpid ( unsigned long Type,
void * Descriptors )
externinline

INVVPID wrapper.

Parameters
Type
Descriptors
Returns
unsigned char

◆ AsmReloadGdtr()

void AsmReloadGdtr ( void * GdtBase,
unsigned long GdtLimit )
extern

Reload new GDTR.

Parameters
GdtBase
GdtLimit

◆ AsmReloadIdtr()

void AsmReloadIdtr ( void * GdtBase,
unsigned long GdtLimit )
extern

Reload new IDTR.

Parameters
GdtBase
GdtLimit

◆ AsmRestoreToVmxOffState()

void AsmRestoreToVmxOffState ( )
externinline

Restore in vmxoff state.

◆ AsmSaveVmxOffState()

void AsmSaveVmxOffState ( )
externinline

Save vmxoff state.

◆ AsmStiInstruction()

void AsmStiInstruction ( )
externinline

Run STI Instruction.

◆ AsmTestWrapperWithTestTags()

unsigned long long AsmTestWrapperWithTestTags ( unsigned long long Param1,
unsigned long long Param2,
unsigned long long Param3,
unsigned long long Param4 )
extern

Tests with test tags wrapper.

◆ AsmVmexitHandler()

void AsmVmexitHandler ( )
extern

Vm-exit handler.

◆ AsmVmfunc()

unsigned long long AsmVmfunc ( unsigned long EptpIndex,
unsigned long Function )
externinline

VMFUNC instruction.

Parameters
EptpIndex
Function
Returns
unsigned long long I'm not sure what it returns

◆ AsmVmxRestoreState()

void AsmVmxRestoreState ( )
extern

Restore state on vmx.

◆ AsmVmxSaveState()

void AsmVmxSaveState ( )
extern

Save state on vmx.

◆ AsmVmxVmcall()

NTSTATUS AsmVmxVmcall ( unsigned long long VmcallNumber,
unsigned long long OptionalParam1,
unsigned long long OptionalParam2,
long long OptionalParam3 )
externinline

Request Vmcall.

Parameters
VmcallNumber
OptionalParam1
OptionalParam2
OptionalParam3
Returns
NTSTATUS

◆ InterruptHandler0()

void InterruptHandler0 ( )
extern

The 0th entry in IDT.

◆ InterruptHandler1()

void InterruptHandler1 ( )
extern

The 1st entry in IDT.

◆ InterruptHandler10()

void InterruptHandler10 ( )
extern

The 10th entry in IDT.

◆ InterruptHandler11()

void InterruptHandler11 ( )
extern

The 11th entry in IDT.

◆ InterruptHandler12()

void InterruptHandler12 ( )
extern

The 12th entry in IDT.

◆ InterruptHandler13()

void InterruptHandler13 ( )
extern

The 13th entry in IDT.

◆ InterruptHandler14()

void InterruptHandler14 ( )
extern

The 14th entry in IDT.

◆ InterruptHandler15()

void InterruptHandler15 ( )
extern

The 15th entry in IDT.

◆ InterruptHandler16()

void InterruptHandler16 ( )
extern

The 16th entry in IDT.

◆ InterruptHandler17()

void InterruptHandler17 ( )
extern

The 17th entry in IDT.

◆ InterruptHandler18()

void InterruptHandler18 ( )
extern

The 18th entry in IDT.

◆ InterruptHandler19()

void InterruptHandler19 ( )
extern

The 19th entry in IDT.

◆ InterruptHandler2()

void InterruptHandler2 ( )
extern

The 2nd entry in IDT.

◆ InterruptHandler20()

void InterruptHandler20 ( )
extern

The 20th entry in IDT.

◆ InterruptHandler21()

void InterruptHandler21 ( )
extern

The 21st entry in IDT.

◆ InterruptHandler22()

void InterruptHandler22 ( )
extern

The 22nd entry in IDT.

◆ InterruptHandler23()

void InterruptHandler23 ( )
extern

The 23rd entry in IDT.

◆ InterruptHandler24()

void InterruptHandler24 ( )
extern

The 24th entry in IDT.

◆ InterruptHandler25()

void InterruptHandler25 ( )
extern

The 25th entry in IDT.

◆ InterruptHandler26()

void InterruptHandler26 ( )
extern

The 26th entry in IDT.

◆ InterruptHandler27()

void InterruptHandler27 ( )
extern

The 27th entry in IDT.

◆ InterruptHandler28()

void InterruptHandler28 ( )
extern

The 28th entry in IDT.

◆ InterruptHandler29()

void InterruptHandler29 ( )
extern

The 29th entry in IDT.

◆ InterruptHandler3()

void InterruptHandler3 ( )
extern

The 3rd entry in IDT.

◆ InterruptHandler30()

void InterruptHandler30 ( )
extern

The 30th entry in IDT.

◆ InterruptHandler4()

void InterruptHandler4 ( )
extern

The 4th entry in IDT.

◆ InterruptHandler5()

void InterruptHandler5 ( )
extern

The 5th entry in IDT.

◆ InterruptHandler6()

void InterruptHandler6 ( )
extern

The 6th entry in IDT.

◆ InterruptHandler7()

void InterruptHandler7 ( )
extern

The 7th entry in IDT.

◆ InterruptHandler8()

void InterruptHandler8 ( )
extern

The 8th entry in IDT.

◆ InterruptHandler9()

void InterruptHandler9 ( )
extern

The 9th entry in IDT.