|
|
|
@ -219,8 +219,10 @@ namespace vm
|
|
|
|
|
|
|
|
|
|
for ( auto &instr : vprofile->signature )
|
|
|
|
|
{
|
|
|
|
|
contains = std::find_if(contains, vm_handler->instrs.end(),
|
|
|
|
|
[ & ]( zydis_instr_t &instr_data ) -> bool { return instr( instr_data.instr ); } );
|
|
|
|
|
contains =
|
|
|
|
|
std::find_if( contains, vm_handler->instrs.end(), [ & ]( zydis_instr_t &instr_data ) -> bool {
|
|
|
|
|
return instr( instr_data.instr );
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
if ( contains == vm_handler->instrs.end() )
|
|
|
|
|
return false;
|
|
|
|
@ -236,6 +238,15 @@ namespace vm
|
|
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
vm::handler::profile_t *get_profile( vm::handler::mnemonic_t mnemonic )
|
|
|
|
|
{
|
|
|
|
|
auto result = std::find_if(
|
|
|
|
|
vm::handler::profile::all.begin(), vm::handler::profile::all.end(),
|
|
|
|
|
[ & ]( vm::handler::profile_t *profile ) -> bool { return profile->mnemonic == mnemonic; } );
|
|
|
|
|
|
|
|
|
|
return result != vm::handler::profile::all.end() ? *result : nullptr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace table
|
|
|
|
|
{
|
|
|
|
|
std::uintptr_t *get( const zydis_routine_t &vm_entry )
|
|
|
|
|