Писал сразу в тред, компелить не пробовал.
Добавь инклуды какие нужно.
format PE GUI 4.0
entry start
include 'win32a.inc'
section '.data' data readable writeable
fgay db 'You are a fucking gay!', 0
fgay_len = $-fgay-1
section '.code' code readable executable
start:
cld
mov ecx, fgay_len
lea edi, [fgay]
mov al, ' '
next:
repne scasb
jecxz exit
cmp byte [edi], ' '
jne next
move:
lea esi, [edi+1]
rep movsb
jmp start
exit:
invoke MessageBox, 0, fgay, fgay, MB_OK
invoke ExitProcess, 0
data import
library kernel32, 'kernel32.dll', user32, 'user32.dll'
include 'api/kernel32.inc'
include 'api/user32.inc'
end data