Reverse Engineering for Beginners

(avery) #1

CHAPTER 19. MANIPULATING SPECIFIC BIT(S) CHAPTER 19. MANIPULATING SPECIFIC BIT(S)


ANDsetsZFto 1, which implies that the input value (0x12345678) ANDed with 2 results in 0:


Figure 19.7:OllyDbg:i= 1, is there that bit in the input value? No. (ZF=1)

So, there is no corresponding bit in the input value. The piece of code, whichincrementsthe counter is not to be executed:
theJZinstructionbypassing it.

Free download pdf