MCPcopy Create free account
hub / github.com/HyperDbg/HyperDbg / PrintSymbolBuffer

Function PrintSymbolBuffer

hyperdbg/script-engine/code/script-engine.c:4082–4103  ·  view source on GitHub ↗

* @brief Prints a symbol buffer * * @param SymbolBuffer */

Source from the content-addressed store, hash-verified

4080 * @param SymbolBuffer
4081 */
4082void
4083PrintSymbolBuffer(const PVOID SymbolBuffer)
4084{
4085 PSYMBOL_BUFFER SymBuff = (PSYMBOL_BUFFER)SymbolBuffer;
4086 PSYMBOL Symbol;
4087 printf("CodeBuffer:\n");
4088 for (unsigned int i = 0; i < SymBuff->Pointer;)
4089 {
4090 Symbol = SymBuff->Head + i;
4091 printf("Address = %d, ", i);
4092 PrintSymbol((PVOID)Symbol);
4093 if (Symbol->Type == SYMBOL_STRING_TYPE || Symbol->Type == SYMBOL_WSTRING_TYPE)
4094 {
4095 INT Temp = GetSymbolHeapSize(Symbol);
4096 i += Temp;
4097 }
4098 else
4099 {
4100 i++;
4101 }
4102 }
4103}
4104
4105/**
4106 * @brief Converts register string to integer

Callers 3

CodeGenFunction · 0.85
PrintSymbolBufferWrapperFunction · 0.85
ScriptEngineEvalWrapperFunction · 0.85

Calls 2

PrintSymbolFunction · 0.85
GetSymbolHeapSizeFunction · 0.85

Tested by

no test coverage detected