Advertisement
emin_int11

course

Jan 30th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. section .text
  2.  
  3. global _start
  4.  
  5. _start:
  6.  
  7. mov rcx,0xA
  8. lea rax,[dst_op]
  9. mov dl,[rax+flag]
  10. xor rdi,rdi
  11. xor rsi,rsi
  12. xor rax,rax
  13. xor rdx,rdx
  14. xor rbx,rbx
  15.  
  16. mov rbx,0
  17. mov rax,0x1
  18. int 0x80
  19.  
  20. section .bss
  21. struc BND
  22. userscnt: resw 0x1 ;The number of registered members
  23. flag: resb 0x1
  24. endstruc
  25. section .data
  26. knowledge: dw 'HelloWorld'
  27. align 4 ;4 byte padding :P
  28. .byte: db 0x1
  29. stdnts: db 0x20
  30. dst_op:
  31. istruc BND
  32. at userscnt, db 0x2
  33. at flag, db 0x1
  34. iend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement