|
HyperDbg Debugger
|
Interpret general fields. More...
#include "pch.h"Classes | |
| struct | _ALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING |
Typedefs | |
| typedef struct _ALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING | ALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING |
| typedef struct _ALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING * | PALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING |
Functions | |
| UINT64 | ScriptEngineConvertNameToAddressWrapper (const CHAR *FunctionOrVariableName, PBOOLEAN WasFound) |
| ScriptEngineConvertNameToAddress wrapper. | |
| UINT32 | ScriptEngineLoadFileSymbolWrapper (UINT64 BaseAddress, const CHAR *PdbFileName, const CHAR *CustomModuleName) |
| ScriptEngineLoadFileSymbol wrapper. | |
| VOID | ScriptEngineSetTextMessageCallbackWrapper (PVOID Handler) |
| ScriptEngineSetTextMessageCallback wrapper. | |
| UINT32 | ScriptEngineUnloadAllSymbolsWrapper () |
| ScriptEngineUnloadAllSymbols wrapper. | |
| UINT32 | ScriptEngineUnloadModuleSymbolWrapper (CHAR *ModuleName) |
| ScriptEngineUnloadModuleSymbol wrapper. | |
| UINT32 | ScriptEngineSearchSymbolForMaskWrapper (const CHAR *SearchMask) |
| ScriptEngineSearchSymbolForMask wrapper. | |
| BOOLEAN | ScriptEngineGetFieldOffsetWrapper (CHAR *TypeName, CHAR *FieldName, UINT32 *FieldOffset) |
| ScriptEngineGetFieldOffset wrapper. | |
| BOOLEAN | ScriptEngineGetDataTypeSizeWrapper (CHAR *TypeName, UINT64 *TypeSize) |
| ScriptEngineGetDataTypeSize wrapper. | |
| BOOLEAN | ScriptEngineCreateSymbolTableForDisassemblerWrapper (PVOID CallbackFunction) |
| ScriptEngineCreateSymbolTableForDisassembler wrapper. | |
| BOOLEAN | ScriptEngineConvertFileToPdbPathWrapper (const CHAR *LocalFilePath, CHAR *ResultPath, SIZE_T ResultPathSize) |
| ScriptEngineConvertFileToPdbPath wrapper. | |
| BOOLEAN | ScriptEngineSymbolInitLoadWrapper (PMODULE_SYMBOL_DETAIL BufferToStoreDetails, UINT32 StoredLength, BOOLEAN DownloadIfAvailable, const CHAR *SymbolPath, BOOLEAN IsSilentLoad) |
| ScriptEngineSymbolInitLoad wrapper. | |
| BOOLEAN | ScriptEngineShowDataBasedOnSymbolTypesWrapper (const CHAR *TypeName, UINT64 Address, BOOLEAN IsStruct, PVOID BufferAddress, const CHAR *AdditionalParameters) |
| ScriptEngineShowDataBasedOnSymbolTypes wrapper. | |
| VOID | ScriptEngineSymbolAbortLoadingWrapper () |
| SymbolAbortLoading wrapper. | |
| BOOLEAN | ScriptEngineConvertFileToPdbFileAndGuidAndAgeDetailsWrapper (const CHAR *LocalFilePath, CHAR *PdbFilePath, CHAR *GuidAndAgeDetails, BOOLEAN Is32BitModule) |
| ScriptEngineConvertFileToPdbFileAndGuidAndAgeDetails wrapper. | |
| BOOLEAN | ScriptEngineConvertLoadedModuleToPdbFileAndGuidAndAgeDetailsWrapper (const BYTE *LoadedImageBytes, SIZE_T LoadedImageSize, const CHAR *LocalFilePath, CHAR *PdbFilePath, CHAR *GuidAndAgeDetails, BOOLEAN Is32BitModule) |
| ScriptEngineConvertLoadedModuleToPdbFileAndGuidAndAgeDetails wrapper. | |
| PVOID | ScriptEngineParseWrapper (CHAR *Expr, BOOLEAN ShowErrorMessageIfAny) |
| ScriptEngineParse wrapper. | |
| VOID | PrintSymbolBufferWrapper (PVOID SymbolBuffer) |
| PrintSymbolBuffer wrapper. | |
| VOID | ScriptEngineEvalWrapper (PGUEST_REGS GuestRegs, string Expr) |
| Script engine evaluation wrapper. | |
| BOOLEAN | ScriptAutomaticStatementsTestWrapper (const string &Expr, UINT64 ExpectationValue, BOOLEAN ExceptError) |
| massive tests for script engine statements | |
| PVOID | AllocateStructForCasting (PALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING AllocationsForCastings) |
| allocate memory and build structure for casting | |
| VOID | ScriptEngineWrapperTestParser (const string &Expr) |
| test parser | |
| VOID | ScriptEngineWrapperTestParserForHwdbg (const string &Expr) |
| test parser for hwdbg | |
| UINT64 | ScriptEngineEvalUInt64StyleExpressionWrapper (const string &Expr, PBOOLEAN HasError) |
| In the local debugging (VMI mode) environment, this function computes the expressions. | |
| UINT64 | ScriptEngineWrapperGetHead (PVOID SymbolBuffer) |
| wrapper for getting head | |
| UINT32 | ScriptEngineWrapperGetSize (PVOID SymbolBuffer) |
| wrapper for getting size | |
| UINT32 | ScriptEngineWrapperGetPointer (PVOID SymbolBuffer) |
| wrapper for getting pointer | |
| VOID | ScriptEngineWrapperRemoveSymbolBuffer (PVOID SymbolBuffer) |
| wrapper for removing symbol buffer | |
Variables | |
| UINT64 * | g_ScriptGlobalVariables |
| Holder of script engines global variables. | |
| UINT64 * | g_ScriptStackBuffer |
| Holder of stack buffer for script engine. | |
| UINT64 | g_CurrentExprEvalResult |
| global variable to save the result of script-engine statement tests | |
| BOOLEAN | g_CurrentExprEvalResultHasError |
| global variable to detect if there was an error in the result of script-engine statement tests | |
| UINT64 * | g_HwdbgPinsStatus |
| Holder of pins (and ports) status of hwdbg. | |
Interpret general fields.
| typedef struct _ALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING ALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING |
| typedef struct _ALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING * PALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING |
| PVOID AllocateStructForCasting | ( | PALLOCATED_MEMORY_FOR_SCRIPT_ENGINE_CASTING | AllocationsForCastings | ) |
allocate memory and build structure for casting
| AllocationsForCastings | Memory details for future deallocations |
| VOID PrintSymbolBufferWrapper | ( | PVOID | SymbolBuffer | ) |
PrintSymbolBuffer wrapper.
Print symbol buffer wrapper
| SymbolBuffer |
| BOOLEAN ScriptAutomaticStatementsTestWrapper | ( | const string & | Expr, |
| UINT64 | ExpectationValue, | ||
| BOOLEAN | ExceptError ) |
massive tests for script engine statements
| Expr | The expression to test |
| ExpectationValue | What value this statements expects (not used if ExceptError is TRUE) |
| ExceptError | True if the statement expects an error |
| BOOLEAN ScriptEngineConvertFileToPdbFileAndGuidAndAgeDetailsWrapper | ( | const CHAR * | LocalFilePath, |
| CHAR * | PdbFilePath, | ||
| CHAR * | GuidAndAgeDetails, | ||
| BOOLEAN | Is32BitModule ) |
ScriptEngineConvertFileToPdbFileAndGuidAndAgeDetails wrapper.
| LocalFilePath | |
| PdbFilePath | |
| GuidAndAgeDetails | |
| Is32BitModule |
| BOOLEAN ScriptEngineConvertFileToPdbPathWrapper | ( | const CHAR * | LocalFilePath, |
| CHAR * | ResultPath, | ||
| SIZE_T | ResultPathSize ) |
ScriptEngineConvertFileToPdbPath wrapper.
| LocalFilePath | |
| ResultPath |
| BOOLEAN ScriptEngineConvertLoadedModuleToPdbFileAndGuidAndAgeDetailsWrapper | ( | const BYTE * | LoadedImageBytes, |
| SIZE_T | LoadedImageSize, | ||
| const CHAR * | LocalFilePath, | ||
| CHAR * | PdbFilePath, | ||
| CHAR * | GuidAndAgeDetails, | ||
| BOOLEAN | Is32BitModule ) |
ScriptEngineConvertLoadedModuleToPdbFileAndGuidAndAgeDetails wrapper.
| LoadedImageBytes | |
| LoadedImageSize | |
| LocalFilePath | |
| PdbFilePath | |
| GuidAndAgeDetails | |
| Is32BitModule |
| UINT64 ScriptEngineConvertNameToAddressWrapper | ( | const CHAR * | FunctionOrVariableName, |
| PBOOLEAN | WasFound ) |
ScriptEngineConvertNameToAddress wrapper.
| FunctionName | |
| WasFound |
ScriptEngineCreateSymbolTableForDisassembler wrapper.
| CallbackFunction |
| UINT64 ScriptEngineEvalUInt64StyleExpressionWrapper | ( | const string & | Expr, |
| PBOOLEAN | HasError ) |
In the local debugging (VMI mode) environment, this function computes the expressions.
for example, if the user u ExAllocatePoolWithTag+0x10 this will evaluate the expr
| Expr | |
| HasError |
| VOID ScriptEngineEvalWrapper | ( | PGUEST_REGS | GuestRegs, |
| string | Expr ) |
Script engine evaluation wrapper.
| GuestRegs | |
| Expr |
ScriptEngineGetDataTypeSize wrapper.
| TypeName | |
| TypeSize |
| BOOLEAN ScriptEngineGetFieldOffsetWrapper | ( | CHAR * | TypeName, |
| CHAR * | FieldName, | ||
| UINT32 * | FieldOffset ) |
ScriptEngineGetFieldOffset wrapper.
| TypeName | |
| FieldName | |
| FieldOffset |
| UINT32 ScriptEngineLoadFileSymbolWrapper | ( | UINT64 | BaseAddress, |
| const CHAR * | PdbFileName, | ||
| const CHAR * | CustomModuleName ) |
ScriptEngineLoadFileSymbol wrapper.
| BaseAddress | |
| FileName |
ScriptEngineParse wrapper.
| Expr | |
| ShowErrorMessageIfAny |
ScriptEngineSearchSymbolForMask wrapper.
| SearchMask |
| VOID ScriptEngineSetTextMessageCallbackWrapper | ( | PVOID | Handler | ) |
ScriptEngineSetTextMessageCallback wrapper.
| Handler |
| BOOLEAN ScriptEngineShowDataBasedOnSymbolTypesWrapper | ( | const CHAR * | TypeName, |
| UINT64 | Address, | ||
| BOOLEAN | IsStruct, | ||
| PVOID | BufferAddress, | ||
| const CHAR * | AdditionalParameters ) |
ScriptEngineShowDataBasedOnSymbolTypes wrapper.
| TypeName | |
| Address | |
| IsStruct | |
| BufferAddress | |
| AdditionalParameters |
| VOID ScriptEngineSymbolAbortLoadingWrapper | ( | ) |
SymbolAbortLoading wrapper.
| BOOLEAN ScriptEngineSymbolInitLoadWrapper | ( | PMODULE_SYMBOL_DETAIL | BufferToStoreDetails, |
| UINT32 | StoredLength, | ||
| BOOLEAN | DownloadIfAvailable, | ||
| const CHAR * | SymbolPath, | ||
| BOOLEAN | IsSilentLoad ) |
ScriptEngineSymbolInitLoad wrapper.
| ScriptEngineSymbolInitLoad | |
| StoredLength | |
| DownloadIfAvailable | |
| SymbolPath | |
| IsSilentLoad |
| UINT32 ScriptEngineUnloadAllSymbolsWrapper | ( | ) |
ScriptEngineUnloadAllSymbols wrapper.
ScriptEngineUnloadModuleSymbol wrapper.
| ModuleName |
| UINT64 ScriptEngineWrapperGetHead | ( | PVOID | SymbolBuffer | ) |
wrapper for getting head
| SymbolBuffer |
| VOID ScriptEngineWrapperRemoveSymbolBuffer | ( | PVOID | SymbolBuffer | ) |
| VOID ScriptEngineWrapperTestParser | ( | const string & | Expr | ) |
test parser
| Expr |
| VOID ScriptEngineWrapperTestParserForHwdbg | ( | const string & | Expr | ) |
test parser for hwdbg
| Expr |
|
extern |
global variable to save the result of script-engine statement tests
|
extern |
global variable to detect if there was an error in the result of script-engine statement tests
|
extern |
Holder of pins (and ports) status of hwdbg.
|
extern |
Holder of script engines global variables.
|
extern |
Holder of stack buffer for script engine.