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

Function x86LeaHandler

src/vm.cpp:156–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 bool x86LeaHandler(Instruction* instruction)
157 {
158 std::vector<ZydisDecodedOperand> operandInfo = instruction->getOperandInfo();
159
160 calculateEffectiveAddress(instruction, operandInfo[1].mem);
161 emitPopRegister(instruction, R0, 64);
162 emitPushRegister(instruction, R0, operandInfo[0].size);
163 if (operandInfo[0].size == 32)
164 zeroRegister(instruction, operandInfo[0].reg.value);
165 emitPopRegister(instruction, operandInfo[0].reg.value, operandInfo[0].size);
166
167 return 1;
168 }
169
170 bool x86RetHandler(Instruction* instruction)
171 {

Calls 5

emitPopRegisterFunction · 0.85
emitPushRegisterFunction · 0.85
zeroRegisterFunction · 0.85
getOperandInfoMethod · 0.80

Tested by

no test coverage detected