format PE console use32 entry start include win32a inc ----data---- st

 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
format PE console
use32
entry start
include 'win32a.inc'
;----data----;
str1 db "Plz enter filename(.asm) :",13,10,0
str2 db "wa7er`z commentz cleaner(asm).",0
str3 db "File not found.",13,10,0
inp dd ?
outp dd ?
;----data----;
start:
invoke CharToOemA,str1,str1
invoke CharToOemA,str2,str2
invoke CharToOemA,str3,str3
invoke FreeConsole ,0
invoke AllocConsole ,0
invoke GetStdHandle ,-10
push EaX
pop [inp]
invoke GetStdHandle ,-11
push EaX
pop [outp]
call [FreeConsole]
call [ExitProcess]
data import
library kernel32,'KERNEL32.DLL',\
user32, 'USER32.DLL'
include 'api\kernel32.inc'
include 'api\user32.inc'
end data