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