updated vmprofiler dep, still coding profiles... going to deal with

virtual branching soon...
master
John Doe 3 years ago
parent 865bb1563c
commit 891a925be4

2
deps/vmprofiler vendored

@ -1 +1 @@
Subproject commit b560b35284d43a211c67b66d852c950649058b80
Subproject commit 599a685b9e1b8e2f36526a61a2f77ecdc49a7288

@ -173,18 +173,15 @@ bool emu_t::code_exec_callback(uc_engine* uc,
const auto vinstr =
vm::instrs::determine(obj->vip, obj->vsp, obj->cc_trace);
if (vinstr.mnemonic == vm::instrs::mnemonic_t::unknown) {
zydis_rtn_t inst_stream;
std::for_each(obj->cc_trace.m_instrs.begin(),
obj->cc_trace.m_instrs.end(),
[&](vm::instrs::emu_instr_t& instr) {
inst_stream.push_back({instr.m_instr});
});
vm::utils::print(inst_stream);
std::printf("========\n");
std::getchar();
} else {
zydis_rtn_t inst_stream;
std::for_each(obj->cc_trace.m_instrs.begin(), obj->cc_trace.m_instrs.end(),
[&](vm::instrs::emu_instr_t& instr) {
inst_stream.push_back({instr.m_instr});
});
vm::utils::print(inst_stream);
if (vinstr.mnemonic != vm::instrs::mnemonic_t::unknown) {
if (vinstr.imm.has_imm)
std::printf("> %s %p\n",
vm::instrs::get_profile(vinstr.mnemonic)->name.c_str(),

Loading…
Cancel
Save