small bug fix v3 lol

merge-requests/18/merge
_xeroxz 3 years ago
parent 0782a63eac
commit 90106b0f5e

@ -117,7 +117,9 @@ namespace vm::instrs
if ( generic_decrypt_0.mnemonic != ZYDIS_MNEMONIC_INVALID ) if ( generic_decrypt_0.mnemonic != ZYDIS_MNEMONIC_INVALID )
{ {
operand = transform::apply( operand = transform::apply(
generic_decrypt_0.operands[ 0 ].size, generic_decrypt_0.mnemonic, operand, /* this is a hot patch for generic0 transformations which bswap 16bit operands... (they xchg)... */
generic_decrypt_0.mnemonic == ZYDIS_MNEMONIC_XCHG ? 16 : generic_decrypt_0.operands[ 0 ].size,
generic_decrypt_0.mnemonic, operand,
// check to see if this instruction has an IMM... // check to see if this instruction has an IMM...
transform::has_imm( &generic_decrypt_0 ) ? generic_decrypt_0.operands[ 1 ].imm.value.u : 0 ); transform::has_imm( &generic_decrypt_0 ) ? generic_decrypt_0.operands[ 1 ].imm.value.u : 0 );
} }

Loading…
Cancel
Save