mirror of
https://github.com/HyperDbg/HyperDbg.git
synced 2026-07-10 01:29:59 +00:00
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/**
|
|
* @file ScriptEngineHeader.h
|
|
* @author Sina Karvandi (sina@hyperdbg.org)
|
|
* @brief Headers for exported script engine headers
|
|
* @details
|
|
* @version 0.2
|
|
* @date 2022-06-28
|
|
*
|
|
* @copyright This project is released under the GNU Public License v3.
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
//////////////////////////////////////////////////
|
|
// Registers //
|
|
//////////////////////////////////////////////////
|
|
|
|
BOOLEAN
|
|
SetRegValue(PGUEST_REGS GuestRegs, UINT32 RegisterId, UINT64 Value);
|
|
|
|
UINT64
|
|
GetRegValue(PGUEST_REGS GuestRegs, REGS_ENUM RegId);
|
|
|
|
BOOLEAN
|
|
SetRegValueHwdbg(UINT64 * Regs, UINT32 RegisterId, UINT64 Value);
|
|
|
|
UINT64
|
|
GetRegValueHwdbg(UINT64 * Regs, UINT32 RegId);
|
|
|
|
//////////////////////////////////////////////////
|
|
// Functions //
|
|
//////////////////////////////////////////////////
|
|
|
|
BOOL
|
|
ScriptEngineExecute(PGUEST_REGS GuestRegs,
|
|
ACTION_BUFFER * ActionDetail,
|
|
PSCRIPT_ENGINE_GENERAL_REGISTERS ScriptGeneralRegisters,
|
|
SYMBOL_BUFFER * CodeBuffer,
|
|
UINT64 * Indx,
|
|
SYMBOL * ErrorOperator);
|
|
|
|
VOID
|
|
ScriptEngineGetOperatorName(PSYMBOL OperatorSymbol, CHAR * BufferForName);
|