forked from Adastra-thw/ExploitSerie
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathASMJumps.asm
More file actions
35 lines (28 loc) · 769 Bytes
/
Copy pathASMJumps.asm
File metadata and controls
35 lines (28 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.386
.model flat, stdcall
option casemap :none
include C:\masm32\include\windows.inc
include C:\masm32\include\masm32.inc
include C:\masm32\include\kernel32.inc
includelib \masm32\lib\masm32.lib
includelib \masm32\lib\kernel32.lib
.data
SampleString db "Simple String",0
TempString db 2 DUP(0)
.code
start:
;El valor se almacena en el register EAX
invoke szLen, addr SampleString
PrintNextChar:
;Copiar a TempString byte a byte en orden inverso con saltos condicionales.
xor ebx,ebx
mov bl, SampleString[eax-1]
mov TempString, bl
;Print to the Screen
push eax
invoke StdOut, addr TempString
pop eax
dec eax
jne PrintNextChar
invoke ExitProcess, 0
end start