Check for 64 bit GP

xtremegamer1 2 years ago
parent 2a72cbffcd
commit 0c9a67c6c0

@ -72,6 +72,8 @@ bool is_jmp(const zydis_decoded_instr_t& instr);
bool is_32_bit_gp(const ZydisRegister reg); bool is_32_bit_gp(const ZydisRegister reg);
bool is_64_bit_gp(const ZydisRegister reg);
/// <summary> /// <summary>
/// used by profiles to see if an instruction is a MOV/SX/ZX... /// used by profiles to see if an instruction is a MOV/SX/ZX...
/// </summary> /// </summary>

@ -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,

Loading…
Cancel
Save