Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. EXTRN GetStdHandle: PROC
  2. EXTRN WriteFile: PROC
  3. EXTRN lstrlen: PROC
  4. EXTRN ExitProcess: PROC
  5.  
  6. .DATA
  7.  
  8. hFile QWORD 0
  9. msglen DWORD 0
  10. BytesWritten DWORD 0
  11.  
  12. 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
  13.  
  14. .CODE
  15. Start PROC
  16.  
  17. sub rsp, 28h
  18.  
  19.  
  20.  
  21. ;Caly napis
  22. lea rcx, VNapis
  23. call lstrlen
  24. mov msglen, eax
  25.  
  26. mov ecx, -11
  27. call GetStdHandle
  28. mov hFile, rax
  29.  
  30. lea r9, BytesWritten
  31. mov r8d, msglen
  32. lea rdx, VNapis
  33. mov rcx, hFile
  34. call WriteFile
  35. ;
  36.  
  37. ;Grupa, imie i nazwisko
  38. lea rcx, VNapis
  39. call lstrlen
  40. mov msglen, eax
  41.  
  42. mov ecx, -11
  43. call GetStdHandle
  44. mov hFile, rax
  45.  
  46. lea r9, BytesWritten
  47. mov r8d, msglen
  48. lea rdx, [VNapis+29]
  49. mov rcx, hFile
  50. call WriteFile
  51. ;
  52.  
  53.  
  54. ;Imie i nazwisko
  55. lea rcx, VNapis
  56. call lstrlen
  57. mov msglen, eax
  58.  
  59. mov ecx, -11
  60. call GetStdHandle
  61. mov hFile, rax
  62.  
  63. lea r9, BytesWritten
  64. mov r8d, msglen
  65. lea rdx, [VNapis+38]
  66. mov rcx, hFile
  67. call WriteFile
  68. ;
  69.  
  70.  
  71.  
  72. call ExitProcess
  73. Start ENDP
  74. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement