-
Notifications
You must be signed in to change notification settings - Fork 0
/
cApp_4.asm
61 lines (46 loc) · 874 Bytes
/
cApp_4.asm
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.686
.model flat, stdcall
option casemap:none
include asesh.inc
.data
szTitle db "Asesh", 0h
.data?
dwNumb1 dd ?
.code
start:
push offset szTitle
call SetConsoleTitle
call main
mainLoop:
push 01Bh
call GetAsyncKeyState
cmp eax, 0h
jne exitMainLoop
push 064h
call Sleep
jmp mainLoop
exitMainLoop:
ret
main proc
comment/push ebp
mov ebp, esp
sub esp, 0FFh
mov dword ptr [ebp - 4h], offset szTitle
mov eax, [ebp - 4h]
print str$(eax)
add esp, 0FFh
mov esp, ebp
pop ebp /
comment /local dwNumber1:DWORD, dwNumber2:DWORD, dwNumber3:DWORD
call GetCurrentThreadId
print str$(eax)
print chr$(0Ah)
call GetCurrentProcessId
print str$(eax) /
local dwNumber:DWORD
lea eax, dwNumber
mov eax, 5h
print str$(dwNumber)
ret
main endp
end start