extern GetStdHandle
extern WriteConsoleA
extern ExitProcess
section .data
msg db "хуй пизда сковорода", 13, 10
msglen equ $ - msg
written dq 0
section .text
global main
main:
sub rsp, 40
mov ecx, -11 ; STD_OUTPUT_HANDLE
call GetStdHandle
mov rcx, rax ; hConsole
lea rdx, [msg] ; lpBuffer
mov r8d, msglen ; nNumberOfCharsToWrite
lea r9, [written] ; lpNumberOfCharsWritten
mov qword [rsp+32], 0 ; lpReserved = NULL
call WriteConsoleA
xor ecx, ecx
call ExitProcess