0

I have those opcodes on 64 bits:

48 8D 35 45 CE FF FF >>> lea rsi, [rip - 0x31bb].

How can I get the 0x31bb value from those opcodes and how can I know if I have a + sign or a - sign beetween operands ( rip - 0x31bb or rip + 0x31bb ) ?

0

You can get that value from the last 4 bytes of the opcode.

45 CE FF FF

You need to reverse the order of bytes and the the value is written as 2's complement. Since the highest bit is 1 it will be negative.

(0xFFFFCE45) in 2's = -0x31BB

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.