Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. xor_strings:
  2.     push ebp
  3.     mov ebp, esp
  4.    
  5.     mov eax, [ebp + 8] ;mesajul
  6.     mov ebx, [ebp + 12] ;cheia
  7.     mov edx, [ebp + 16] ;lungimea
  8.     decode_xor_strings:
  9.         xor ecx, ecx
  10.         mov cl, [ebx + edx - 1]
  11.         xor [eax + edx - 1], ecx
  12.         dec edx
  13.         cmp edx, 0
  14.         jg decode_xor_strings
  15.    
  16.     leave
  17.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement