Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .686
- .model flat
- public _szyfruj
- extern _malloc : PROC
- .data
- .code
- _szyfruj PROC
- push ebp
- mov ebp, esp
- push ebx
- push edx
- push ecx
- push esi
- mov esi, [ebp+8]
- mov eax, 52525252h
- szyfruj:
- mov cl, [esi]
- test cl, cl
- jz koniec
- xor cl, al
- mov byte ptr [esi], cl
- mov ebx, eax
- and ebx, 80000000h ;bity 31
- mov edx, eax
- and edx, 40000000h ;bity 30
- shl edx, 1
- xor ebx, edx ; w ebx suma modulo2 2 najstarszych bitow
- rol ebx, 1
- shl eax, 1
- add eax, ebx
- add esi, 1
- jmp szyfruj
- koniec:
- pop esi
- pop ecx
- pop edx
- pop ebx
- pop ebp
- ret
- _szyfruj ENDP
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement