Function at 0x558250
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 0x55843c
mov ebx, eax
sub ebx, dword [ebp + 0x14]
js 0x5582e0
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.004f28b0
mov dword [ebp - 0x54], eax
test eax, eax
je 0x5582f0
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.00558218
test eax, eax
je 0x55832c
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 0x558277
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.004f2144
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 0x558334
mov dword [esp], 0x14
mov ecx, esi
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
call fcn.00558218
test eax, eax
jne 0x5582d1
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 0x558368
call fcn.004efb20
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.004fccc8
mov ecx, 0x14
mov esi, dword [ebp - 0x54]
repe cmpsb byte [esi], byte es:[edi]
jne 0x558480
mov edx, dword [ebp - 0x58]
test edx, edx
jne 0x558480
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
nop
cmp byte [eax + ebx], 0
jne 0x5583d3
inc ebx
cmp edx, ebx
jg 0x5583c8
cmp ebx, dword [ebp - 0x4c]
je 0x558480
mov edx, dword [ebp - 0x54]
cmp byte [edx + ebx], 1
jne 0x558480
inc ebx
mov eax, dword [ebp - 0x4c]
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jle 0x558472
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.004f2144
mov eax, 0xffffffff
mov edi, dword [ebp - 0x54]
mov dword [esp], edi
mov dword [ebp - 0x5c], eax
call fcn.004f2b90
mov eax, dword [ebp - 0x5c]
jmp 0x5582d6
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.004f2144
mov eax, 0xffffffff
jmp 0x5582d6
mov esi, dword [ebp - 0x54]
add esi, ebx
mov edi, dword [ebp + 8]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x558425
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.004f2144
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call fcn.004f2b90
mov eax, 0xffffffff
jmp 0x5582d6