Advertisement
Guest User

Untitled

a guest
Apr 5th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ExitProcess PROTO
  2. MessageBoxA PROTO
  3.  
  4. .data
  5.  source db "ABCDEFGH"
  6.  dest db 9 dup(0)
  7.  title1 db "Result", 13, 10, 0
  8.  .code
  9.  main proc
  10.    sub rsp,40
  11.    
  12.    mov al,source
  13.    mov dest,al
  14.    mov al,source+1
  15.    mov dest+1,al
  16.    mov al,source+2
  17.    mov dest+2,al
  18.    mov al,'2'
  19.    mov dest+3,al
  20.    mov al,source+4
  21.    mov dest+4,al
  22.    mov al,source+5
  23.    mov dest+5,al
  24.    mov al,source+6
  25.    mov dest+6,al
  26.    mov al,'2'
  27.    mov dest+7,al
  28.    
  29.    xor r9, r9        ; BoxType = 0
  30.    lea r8, title1        ; lpCaption
  31.    lea rdx, dest       ; lpText
  32.    xor rcx, rcx        ; hWnd = NULL
  33.    call MessageBoxA
  34.    
  35.    mov rcx,0
  36.    call ExitProcess
  37. main endp
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement