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

Function x86PopHandler

src/vm.cpp:63–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 bool x86PopHandler(Instruction* instruction)
64 {
65 std::vector<ZydisDecodedOperand> operandInfo = instruction->getOperandInfo();
66
67 switch (operandInfo[0].type)
68 {
69 case ZYDIS_OPERAND_TYPE_REGISTER:
70 {
71 emitPopRegister(instruction, operandInfo[0].reg.value, operandInfo[0].size);
72 return 1;
73 }
74 case ZYDIS_OPERAND_TYPE_IMMEDIATE: return 0;
75 case ZYDIS_OPERAND_TYPE_MEMORY: return 0;
76 case ZYDIS_OPERAND_TYPE_POINTER: return 0;
77 case ZYDIS_OPERAND_TYPE_UNUSED: return 0;
78 }
79
80 return 0;
81 }
82
83 bool x86MovHandler(Instruction* instruction)
84 {

Calls 2

emitPopRegisterFunction · 0.85
getOperandInfoMethod · 0.80

Tested by

no test coverage detected