MCPcopy Create free account
hub / github.com/connorjaydunn/BinaryShield / emitShl

Function emitShl

src/vm.cpp:629–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627 }
628
629 void emitShl(Instruction* instruction, BYTE size)
630 {
631 switch (size)
632 {
633 case 64: instruction->addVirtualInstruction(VirtualInstruction(getVmHandlerRva(SHL64))); return;
634 case 32: instruction->addVirtualInstruction(VirtualInstruction(getVmHandlerRva(SHL32))); return;
635 case 16: instruction->addVirtualInstruction(VirtualInstruction(getVmHandlerRva(SHL16))); return;
636 case 8: instruction->addVirtualInstruction(VirtualInstruction(getVmHandlerRva(SHL8))); return;
637 }
638 }
639
640 void emitArithmetic(Instruction* instruction, ZydisMnemonic operation, BYTE size)
641 {

Callers 1

emitArithmeticFunction · 0.85

Calls 3

VirtualInstructionClass · 0.85
getVmHandlerRvaFunction · 0.85
addVirtualInstructionMethod · 0.80

Tested by

no test coverage detected