How it works...

Now that we've looked at some examples of how to use some of the more commonly seen instructions, let's digest this information a little:

  • MOV: This is also known as the move instruction and is used to copy the source operand into the destination operand. With this instruction, you can copy data such as integers into a register, registers into registers (the value of a register into another register, that is), the address of a memory region into a register, and the value of a register into a memory location. We will see this instruction extensively throughout this book.
  • LEA: The Load Effective Address (LEA) instruction is used to load the address of the source operand, that is, the pointer, into the destination operand. For ...

Get Binary Analysis Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.