|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
#pragma once
|
|
|
|
|
#include <vmp2.hpp>
|
|
|
|
|
#include <transform.hpp>
|
|
|
|
|
#include <optional>
|
|
|
|
|
#include <transform.hpp>
|
|
|
|
|
#include <vmp2.hpp>
|
|
|
|
|
|
|
|
|
|
namespace vm
|
|
|
|
|
{
|
|
|
|
@ -10,7 +10,7 @@ namespace vm
|
|
|
|
|
bool get( const zydis_routine_t &vm_entry, zydis_routine_t &calc_jmp );
|
|
|
|
|
|
|
|
|
|
std::optional< vmp2::exec_type_t > get_advancement( const zydis_routine_t &calc_jmp );
|
|
|
|
|
}
|
|
|
|
|
} // namespace calc_jmp
|
|
|
|
|
|
|
|
|
|
namespace instrs
|
|
|
|
|
{
|
|
|
|
@ -144,20 +144,23 @@ namespace vm
|
|
|
|
|
extern vm::handler::profile_t writeq;
|
|
|
|
|
extern vm::handler::profile_t writedw;
|
|
|
|
|
|
|
|
|
|
extern vm::handler::profile_t readq;
|
|
|
|
|
extern vm::handler::profile_t readdw;
|
|
|
|
|
|
|
|
|
|
extern vm::handler::profile_t shrq;
|
|
|
|
|
extern vm::handler::profile_t pushvsp;
|
|
|
|
|
extern vm::handler::profile_t mulq;
|
|
|
|
|
extern vm::handler::profile_t divq;
|
|
|
|
|
extern vm::handler::profile_t jmp;
|
|
|
|
|
extern vm::handler::profile_t readq;
|
|
|
|
|
|
|
|
|
|
extern vm::handler::profile_t vmexit;
|
|
|
|
|
|
|
|
|
|
inline std::vector< vm::handler::profile_t * > all = {
|
|
|
|
|
&sregq, &sregdw, &sregw, &lregq, &lregdw, &lconstq, &lconstbzxw,
|
|
|
|
|
&lconstbsxdw, &lconstdwsxq, &lconstwsxq, &lconstdw, &addq, &adddw, &shlq,
|
|
|
|
|
&shldw, &writeq, &writedw, &nandq, &nanddw,
|
|
|
|
|
&sregq, &sregdw, &sregw, &lregq, &lregdw, &lconstq, &lconstbzxw, &lconstbsxdw,
|
|
|
|
|
&lconstdwsxq, &lconstwsxq, &lconstdw, &addq, &adddw, &shlq, &shldw, &writeq,
|
|
|
|
|
&writedw, &nandq, &nanddw,
|
|
|
|
|
|
|
|
|
|
&shrq, &readq, &mulq, &pushvsp, &divq, &jmp, &vmexit };
|
|
|
|
|
&shrq, &readq, &readdw, &mulq, &pushvsp, &divq, &jmp, &vmexit };
|
|
|
|
|
} // namespace profile
|
|
|
|
|
} // namespace handler
|
|
|
|
|
} // namespace vm
|