Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
The `cmp`, often integer comparison, compare the values then sets a condition flag which jump instructions rely on to make jump decisions. `cmp` works by subtraction (cmp a, b == b-a)
Use `info registers` in gdb to peek at registers.
So if cmp is setting the condition flags based on eax – [rbp-0x70], it must be setting the zero flag (ZF) in case they’re equal, which the jne instruction relies on to decide whether to jump or not, correct?
Correct.
Thanks 👍
CONTRIBUTE TO THIS THREAD