|
|
@ -33,6 +33,11 @@ bool is_32_bit_gp(const ZydisRegister reg)
|
|
|
|
return reg >= ZYDIS_REGISTER_EAX && reg <= ZYDIS_REGISTER_R15D;
|
|
|
|
return reg >= ZYDIS_REGISTER_EAX && reg <= ZYDIS_REGISTER_R15D;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool is_64_bit_gp(const ZydisRegister reg)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return reg >= ZYDIS_REGISTER_RAX && reg <= ZYDIS_REGISTER_R15;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool flatten(zydis_rtn_t& routine,
|
|
|
|
bool flatten(zydis_rtn_t& routine,
|
|
|
|
std::uintptr_t routine_addr,
|
|
|
|
std::uintptr_t routine_addr,
|
|
|
|
bool keep_jmps,
|
|
|
|
bool keep_jmps,
|
|
|
|