HyperDbg/hyperdbg/script-eval/header/ScriptEngineHeader.h

44 lines
1.3 KiB
C
Raw Permalink Normal View History

2022-06-28 10:23:50 -07:00
/**
* @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.
*
*/
2022-06-28 09:52:24 -07:00
#pragma once
2024-07-07 21:44:07 +09:00
//////////////////////////////////////////////////
// Registers //
//////////////////////////////////////////////////
BOOLEAN
SetRegValue(PGUEST_REGS GuestRegs, UINT32 RegisterId, UINT64 Value);
UINT64
GetRegValue(PGUEST_REGS GuestRegs, REGS_ENUM RegId);
2024-10-02 18:00:34 +02:00
BOOLEAN
SetRegValueHwdbg(UINT64 * Regs, UINT32 RegisterId, UINT64 Value);
UINT64
GetRegValueHwdbg(UINT64 * Regs, UINT32 RegId);
2024-07-07 21:44:07 +09:00
//////////////////////////////////////////////////
// Functions //
//////////////////////////////////////////////////
2022-06-28 09:52:24 -07:00
BOOL
2024-07-24 21:25:55 +08:00
ScriptEngineExecute(PGUEST_REGS GuestRegs,
ACTION_BUFFER * ActionDetail,
PSCRIPT_ENGINE_GENERAL_REGISTERS ScriptGeneralRegisters,
SYMBOL_BUFFER * CodeBuffer,
UINT64 * Indx,
SYMBOL * ErrorOperator);
2022-06-28 09:52:24 -07:00
VOID
ScriptEngineGetOperatorName(PSYMBOL OperatorSymbol, CHAR * BufferForName);