Reverse Engineering for Beginners
CHAPTER 14. LOOPS CHAPTER 14. LOOPS We loadloops_2.exe.idcintoIDAand see: Figure 14.4:IDAwith .idc-script loaded We see thatESIc ...
CHAPTER 14. LOOPS CHAPTER 14. LOOPS CMP R4, #0xA BLT loc_35C MOV R0, #0 LDMFD SP!, {R4,PC} Iteration counteriis to be stored in ...
CHAPTER 14. LOOPS CHAPTER 14. LOOPS In fact, this was in myf()function: void printing_function(int i) { printf ("%d\n", i); }; S ...
CHAPTER 14. LOOPS CHAPTER 14. LOOPS stp x29, x30, [sp, -32]! ; set up stack frame: add x29, sp, 0 ; save contents of X19 registe ...
CHAPTER 14. LOOPS CHAPTER 14. LOOPS or $at, $zero ; NOP slti $v0, 0xA ; if it is less than 10, jump to loc_80 (loop body begin): ...
CHAPTER 14. LOOPS CHAPTER 14. LOOPS ; store byte at RDI+i: mov BYTE PTR [rdi+rax], cl inc rax ; i++ jmp .L2 .L5: ret Listing 14. ...
CHAPTER 14. LOOPS CHAPTER 14. LOOPS MOV r3,#0 |L0.4| ; all bytes copied? CMP r3,r2 ; the following block is executed only if "le ...
CHAPTER 14. LOOPS CHAPTER 14. LOOPS 14.3 Conclusion. Rough skeleton of loop from 2 to 9 inclusive: Listing 14.15: x86 mov [count ...
CHAPTER 14. LOOPS CHAPTER 14. LOOPS Listing 14.19: x86 MOV REG, 2 ; initialization body: ; loop body ; do something here ; use c ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING Chapter 15 Simple C-strings processing 15.1 strl ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING ; here we calculate the difference between two p ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING On the other hand, it is obvious that the compil ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING Optimizing MSVC + OllyDbg We can try this (optim ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING Let’s press F8 (step over) a few times, to get t ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING We have to press F8 enough number of times in or ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING TheSUBinstruction just got executed: Figure 15.4 ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING See also: “Signed number representations” (30 on ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING since thechartype is signed according to the C s ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING Almost the same as what we saw before, with the ...
CHAPTER 15. SIMPLE C-STRINGS PROCESSING CHAPTER 15. SIMPLE C-STRINGS PROCESSING add sp, sp, 32 ret It’s more verbose. The variab ...
«
6
7
8
9
10
11
12
13
14
15
»
Free download pdf