-
Notifications
You must be signed in to change notification settings - Fork 0
/
86X_RTAE_EXTCALLS.ASM
43 lines (38 loc) · 1.1 KB
/
86X_RTAE_EXTCALLS.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
format PE console 3.1; at $10000
entry start
include 'win32a.inc'
section 'xprmnt' code data readable executable writeable shareable discardable notpageable
start:
db $FB dup (90h) ; edit code here
jmp start
b db 200h dup (0)
invoke Sleep, 1000
invoke ExitProcess, 256
invoke GetTickCount
invoke printf, xmpstr
invoke putchar, xmpstr
invoke puts, xmpstr
invoke system, xmpstr
invoke strlen, xmpstr
invoke memset, b, 64, 5
invoke memcpy, b, xmpstr, 10
ret
xmpstr db 'example string'
section 'extn' import data readable writeable
library kernel,'KERNEL32.DLL',\
msvcrt,'msvcrt.dll'
import kernel,\
Sleep,'Sleep',\
ExitProcess,'ExitProcess',\
GetModuleHandle,'GetModuleHandleA',\
GetTickCount,'GetTickCount';,\
;SetConsoleCP,'SetConsoleCP',\
;SetConsoleOutputCP,'SetConsoleOutputCP'
import msvcrt,\
printf,'printf',\
putchar,'putchar',\
puts,'puts',\
system,'system',\
strlen,'strlen',\
memset,'memset',\
memcpy,'memcpy'