Part 29 - ASM Debugging 3 [Moving Data Between Memory And Registers]

For a complete table of contents of all the lessons please click below as it will give you a brief of each lesson in addition to the topics it will cover. https://github.com/mytechnotalent/Reverse-Engineering-Tutorial

Let’s debug!

Part 29 - ASM Debugging 3 [Moving Data Between Memory And Registers] - 图1

Specifically we will move the value of inside the constant integer of 10 decimal into ECX.

Part 29 - ASM Debugging 3 [Moving Data Between Memory And Registers] - 图2

We open GDB in quiet mode and break on _start and run by following the commands above.

Part 29 - ASM Debugging 3 [Moving Data Between Memory And Registers] - 图3

As we can see when we info registers the value of ECX is 0.

Part 29 - ASM Debugging 3 [Moving Data Between Memory And Registers] - 图4

After we step into twice, we now see the value of ECX as 10 decimal of 0xa hex.

I look forward to seeing you all next week when we dive into hacking our third assembly program!