Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EXTRN GetStdHandle: PROC
- EXTRN WriteFile: PROC
- EXTRN lstrlen: PROC
- EXTRN ExitProcess: PROC
- .DATA
- hFile QWORD 0
- msglen DWORD 0
- BytesWritten DWORD 0
- VNapis db "Akademia Marynarki Wojennej, 165IC_A2, ",157,75h,6Bh,61h,73h,7Ah,20h,52h,79h,64h,7Ah,69h,228,73h,6Bh,69h,13, 10, 0
- .CODE
- Start PROC
- sub rsp, 28h
- ;Caly napis
- lea rcx, VNapis
- call lstrlen
- mov msglen, eax
- mov ecx, -11
- call GetStdHandle
- mov hFile, rax
- lea r9, BytesWritten
- mov r8d, msglen
- lea rdx, VNapis
- mov rcx, hFile
- call WriteFile
- ;
- ;Grupa, imie i nazwisko
- lea rcx, VNapis
- call lstrlen
- mov msglen, eax
- mov ecx, -11
- call GetStdHandle
- mov hFile, rax
- lea r9, BytesWritten
- mov r8d, msglen
- lea rdx, [VNapis+29]
- mov rcx, hFile
- call WriteFile
- ;
- ;Imie i nazwisko
- lea rcx, VNapis
- call lstrlen
- mov msglen, eax
- mov ecx, -11
- call GetStdHandle
- mov hFile, rax
- lea r9, BytesWritten
- mov r8d, msglen
- lea rdx, [VNapis+38]
- mov rcx, hFile
- call WriteFile
- ;
- call ExitProcess
- Start ENDP
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement