Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         .text
  2.         .global _start
  3. _start:
  4.         movl    $3, %eax
  5.         movl    $0, %ebx
  6.         movl    %esp, %ecx
  7.         movl    $1, %edx
  8.         int     $0x80
  9.         test    %eax, %eax
  10.         jle     end
  11.         movzb   (%esp), %eax
  12.         sub     $'a', %eax
  13.         cmp     $25, %eax
  14.         ja      need_no_change
  15.         sub     $'A', %eax
  16.         movb    %eax, (%esp)    
  17. need_no_change:
  18.         movl    $4, %eax      
  19.         movl    $1, %ebx    
  20.         movl    %esp, %ecx
  21.         movl    $1, %edx  
  22.         int     $0x80
  23.         call    _start
  24. end:
  25.         movl    $1, %eax
  26.         xorl    %ebx, %ebx
  27.         int     $0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement