mirror of
https://github.com/HyperDbg/HyperDbg.git
synced 2026-08-31 01:56:24 +00:00
add disassemble_len and disassemble_len32 functions
This commit is contained in:
parent
62a0123d6b
commit
cf4a55fd47
8 changed files with 2112 additions and 2087 deletions
|
|
@ -1208,6 +1208,45 @@ ScriptEngineExecute(PGUEST_REGS GuestRegs,
|
|||
|
||||
return HasError;
|
||||
|
||||
case FUNC_DISASSEMBLE_LEN:
|
||||
case FUNC_DISASSEMBLE_LEN64:
|
||||
|
||||
Src0 = (PSYMBOL)((unsigned long long)CodeBuffer->Head +
|
||||
(unsigned long long)(*Indx * sizeof(SYMBOL)));
|
||||
*Indx = *Indx + 1;
|
||||
|
||||
SrcVal0 =
|
||||
GetValue(GuestRegs, ActionDetail, VariablesList, Src0, FALSE);
|
||||
|
||||
Des = (PSYMBOL)((unsigned long long)CodeBuffer->Head +
|
||||
(unsigned long long)(*Indx * sizeof(SYMBOL)));
|
||||
*Indx = *Indx + 1;
|
||||
|
||||
DesVal = ScriptEngineFunctionDisassembleLen((const char *)SrcVal0, FALSE);
|
||||
|
||||
SetValue(GuestRegs, VariablesList, Des, DesVal);
|
||||
|
||||
return HasError;
|
||||
|
||||
case FUNC_DISASSEMBLE_LEN32:
|
||||
|
||||
Src0 = (PSYMBOL)((unsigned long long)CodeBuffer->Head +
|
||||
(unsigned long long)(*Indx * sizeof(SYMBOL)));
|
||||
*Indx = *Indx + 1;
|
||||
|
||||
SrcVal0 =
|
||||
GetValue(GuestRegs, ActionDetail, VariablesList, Src0, FALSE);
|
||||
|
||||
Des = (PSYMBOL)((unsigned long long)CodeBuffer->Head +
|
||||
(unsigned long long)(*Indx * sizeof(SYMBOL)));
|
||||
*Indx = *Indx + 1;
|
||||
|
||||
DesVal = ScriptEngineFunctionDisassembleLen((const char *)SrcVal0, TRUE);
|
||||
|
||||
SetValue(GuestRegs, VariablesList, Des, DesVal);
|
||||
|
||||
return HasError;
|
||||
|
||||
case FUNC_WCSLEN:
|
||||
|
||||
Src0 = (PSYMBOL)((unsigned long long)CodeBuffer->Head +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue