diff --git a/src/vmlifters/vmexit.cpp b/src/vmlifters/vmexit.cpp index b3eb4a3..55f7a9b 100644 --- a/src/vmlifters/vmexit.cpp +++ b/src/vmlifters/vmexit.cpp @@ -5,6 +5,6 @@ namespace vm::lifters vm::lifters::lifter_t vmexit = { // ret vm::handler::VMEXIT, []( vtil::basic_block *blk, vm::instrs::virt_instr_t *vinstr ) { - blk->vexit( vinstr->trace_data.vsp.qword[ 12 ] ); + blk->vexit( vtil::make_imm( vinstr->trace_data.vsp.qword[ 0x13 ] - vinstr->trace_data.regs.r13 ) ); } }; } \ No newline at end of file