Function at 0x559490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
dec eax
cmp eax, 0x28
jle 0x55967c
mov ebx, eax
sub ebx, dword [ebp + 0x14]
js 0x559520
mov dword [ebp - 0x58], 0
lea edx, [eax - 0x14]
mov dword [ebp - 0x4c], edx
mov dword [esp + 8], 0x7b
mov dword [esp + 4], str.crypto_rsa_rsa_oaep.c
add eax, edx
mov dword [esp], eax
call fcn.004f3b10
mov dword [ebp - 0x54], eax
test eax, eax
je 0x559530
mov edi, dword [ebp - 0x54]
add edi, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edi
xor eax, eax
mov ecx, ebx
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x50]
add ecx, 0x14
lea esi, [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov edx, 0x14
mov eax, esi
call fcn.00559458
test eax, eax
je 0x55956c
mov eax, 0xffffffff
add esp, 0x7c
pop ebx
pop esi
pop edi
leave
ret
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x58], 1
xor ebx, ebx
jmp 0x5594b7
mov dword [esp + 0x10], 0x7e
mov dword [esp + 0xc], str.crypto_rsa_rsa_oaep.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7a
mov dword [esp], 4
call fcn.004f33a4
mov eax, 0xffffffff
add esp, 0x7c
pop ebx
pop esi
pop edi
leave
ret
xor ebx, ebx
mov edx, dword [ebp - 0x50]
lea esi, [esi]
mov al, byte [edx + ebx]
xor byte [esi + ebx], al
inc ebx
cmp ebx, 0x14
jne 0x559574
mov dword [esp], 0x14
mov ecx, esi
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
call fcn.00559458
test eax, eax
jne 0x559511
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x50]
lea esi, [esi]
mov cl, byte [edi + eax + 0x14]
xor byte [edx + eax], cl
inc eax
cmp esi, eax
jg 0x5595a8
call fcn.004f0d80
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
lea edi, [ebp - 0x40]
mov dword [esp + 8], edi
mov eax, dword [ebp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call fcn.004fdf28
mov ecx, 0x14
mov esi, dword [ebp - 0x54]
repe cmpsb byte [esi], byte es:[edi]
jne 0x5596c0
mov edx, dword [ebp - 0x58]
test edx, edx
jne 0x5596c0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
nop
cmp byte [eax + ebx], 0
jne 0x559613
inc ebx
cmp edx, ebx
jg 0x559608
cmp ebx, dword [ebp - 0x4c]
je 0x5596c0
mov edx, dword [ebp - 0x54]
cmp byte [edx + ebx], 1
jne 0x5596c0
inc ebx
mov eax, dword [ebp - 0x4c]
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jle 0x5596b2
mov dword [esp + 0x10], 0xa6
mov dword [esp + 0xc], str.crypto_rsa_rsa_oaep.c
mov dword [esp + 8], 0x6d
mov dword [esp + 4], 0x7a
mov dword [esp], 4
call fcn.004f33a4
mov eax, 0xffffffff
mov edi, dword [ebp - 0x54]
mov dword [esp], edi
mov dword [ebp - 0x5c], eax
call fcn.004f3df0
mov eax, dword [ebp - 0x5c]
jmp 0x559516
mov dword [esp + 0x10], 0xb3
mov dword [esp + 0xc], str.crypto_rsa_rsa_oaep.c
mov dword [esp + 8], 0x79
mov dword [esp + 4], 0x7a
mov dword [esp], 4
call fcn.004f33a4
mov eax, 0xffffffff
jmp 0x559516
mov esi, dword [ebp - 0x54]
add esi, ebx
mov edi, dword [ebp + 8]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x559665
mov dword [esp + 0x10], 0xb3
mov dword [esp + 0xc], str.crypto_rsa_rsa_oaep.c
mov dword [esp + 8], 0x79
mov dword [esp + 4], 0x7a
mov dword [esp], 4
call fcn.004f33a4
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call fcn.004f3df0
mov eax, 0xffffffff
jmp 0x559516