O'Reilly logo
  • Tim Lomas thinks this is interesting:

. Read the data from memory to a register (LDR).
2. Add one to the register (ADD).
3. Write the register to memory (STR).

On x86, such an operation would require only one instruction (either INC or ADD) because it can directly access memory. The MOVS instruction can read and write memory at the same time.


01: 1B 68         LDR      R3, [R3]


Cover of Practical Reverse Engineering: x86, x64, ARM, Windows Kernel, Reversing Tools, and Obfuscation


basic memory assembler instructions