From ef9e9c1cb2f69abfc5ea070db71ef57b4316bb87 Mon Sep 17 00:00:00 2001 From: _xeroxz Date: Fri, 6 Aug 2021 02:05:50 -0700 Subject: [PATCH] removed last file related to vtil... --- include/vmlifters.hpp | 71 ------------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 include/vmlifters.hpp diff --git a/include/vmlifters.hpp b/include/vmlifters.hpp deleted file mode 100644 index 9632608..0000000 --- a/include/vmlifters.hpp +++ /dev/null @@ -1,71 +0,0 @@ -#pragma once -#include -#include -#include - -namespace vm::lifters -{ - using lifter_callback_t = std::function< void( vtil::basic_block *, vm::instrs::virt_instr_t *, vmp2::v3::code_block_t* ) >; - using lifter_t = std::pair< vm::handler::mnemonic_t, lifter_callback_t >; - - // taken from - // https://github.com/can1357/NoVmp/blob/6c23c9a335f70e8d5ed6299668fd802f2314c896/NoVmp/vmprotect/il2vtil.cpp#L66 - inline constexpr vtil::register_desc make_virtual_register( uint8_t context_offset, uint8_t size ) - { - fassert( ( ( context_offset & 7 ) + size ) <= 8 && size ); - - return { vtil::register_virtual, ( size_t )context_offset / 8, size * 8, ( context_offset % 8 ) * 8 }; - } - - extern vm::lifters::lifter_t lregq, lregdw; - extern vm::lifters::lifter_t addq, adddw, addw; - extern vm::lifters::lifter_t sregq, sregdw, sregw; - extern vm::lifters::lifter_t lconstq, lconstdw, lconstw, lconstbzxw, lconstbsxdw, lconstbsxq, lconstdwsxq, - lconstwsxq, lconstwsxdw; - extern vm::lifters::lifter_t nandq, nanddw, nandw; - extern vm::lifters::lifter_t readq, readdw, readw; - extern vm::lifters::lifter_t shrq, shrw; - - extern vm::lifters::lifter_t jmp; - extern vm::lifters::lifter_t vmexit; - extern vm::lifters::lifter_t pushvsp; - extern vm::lifters::lifter_t lrflags; - extern vm::lifters::lifter_t lvsp; - - inline std::vector< vm::lifters::lifter_t * > all = { - // lreg lifters... - &lregq, &lregdw, - - // add lifters... - &addq, &adddw, &addw, - - // sreg lifters... - &sregq, &sregdw, &sregw, - - // lconst lifters... - &lconstq, &lconstdw, &lconstw, &lconstbzxw, &lconstbsxdw, &lconstbsxq, &lconstdwsxq, &lconstwsxq, &lconstwsxdw, - - // nand lifters... - &nandq, &nanddw, &nandw, - - // read lifters.... - &readq, &readdw, &readw, - - // shr lifters... - &shrq, &shrw, - - // pushvsp lifter... - &pushvsp, - - // jmp lifter... - &jmp, - - // lflags lifter... - &lrflags, - - // lvsp lifter... - &lvsp, - - // vmexit lifter... - &vmexit }; -} // namespace vm::lifters \ No newline at end of file