Function at 0x49d870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], ecx
test eax, eax
push edi
mov edi, dword [ebp + 0x1c]
mov ecx, 0x547470
cmovne ecx, eax
test edi, edi
cmove edi, ecx
mov dword [esp + 0xc], esi
lea ebx, [edx - 1]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
test ecx, ecx
jne 0x49d8ee
push 0x139
push str.cryptoevpevp_lib.c
push 0x9f
mov edx, 0xa2
mov ecx, 6
call fcn.004144f0
mov ecx, dword [esp + 0x20]
add esp, 0xc
or edi, 0xffffffff
jmp 0x49d8f1
mov edi, dword [ecx + 8]
lea edx, [edi + edi]
mov eax, ebx
sub eax, edx
mov dword [esp + 0x14], eax
dec eax
cmp esi, eax
jle 0x49d930
push 0x3a
push str.crypto_rsa_rsa_oaep.c
push 0x6e
mov edx, 0xa0
mov ecx, 4
call fcn.004144f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret
lea eax, [edx + 1]
cmp ebx, eax
jge 0x49d942
push 0x40
push str.crypto_rsa_rsa_oaep.c
push 0x78
jmp 0x49d90a
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
push ecx
lea esi, [eax + 1]
mov byte [eax], 0
push ecx
mov ecx, dword [esp + 0x2c]
inc eax
add eax, edi
push 0
push eax
mov dword [esp + 0x30], esi
call fcn.00424440
add esp, 0x10
test eax, eax
je 0x49dab6
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
dec eax
push eax
mov eax, dword [esp + 0x14]
inc eax
add eax, edi
add eax, edi
push 0
push eax
call fcn.004f2670
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
add eax, edi
add esp, 0xc
sub eax, ecx
push ecx
push dword [esp + 0x20]
sub eax, edi
add eax, ebx
push eax
mov byte [eax - 1], 1
call fcn.004f0080
add esp, 0xc
mov edx, edi
mov ecx, esi
call fcn.00412f00
test eax, eax
jle 0x49dab6
sub ebx, edi
push 0x55
mov edx, str.crypto_rsa_rsa_oaep.c
mov ecx, ebx
call fcn.0042e6b0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x49d9ea
push 0x57
push str.crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x49d90a
push dword [esp + 0x18]
mov edx, ebx
push edi
push esi
mov ecx, eax
call fcn.0049e030
add esp, 0xc
test eax, eax
js 0x49daad
test ebx, ebx
jle 0x49da2f
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
inc eax
add eax, edi
mov ecx, eax
sub esi, eax
mov edx, ebx
lea esp, [esp]
mov al, byte [esi + ecx]
xor byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x49da20
mov esi, dword [esp + 0x20]
push dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc eax
add eax, edi
push ebx
push eax
mov edx, edi
lea ecx, [esp + 0x34]
call fcn.0049e030
add esp, 0xc
test eax, eax
js 0x49daad
test edi, edi
jle 0x49da63
lea ecx, [esp + 0x28]
sub ecx, esi
mov al, byte [ecx + esi]
xor byte [esi], al
lea esi, [esi + 1]
dec edi
jne 0x49da58
mov eax, dword [0x59fb4c]
test eax, eax
je 0x49da77
push 0
push dword [esp + 0x10]
call eax
add esp, 8
push dword [esp + 0xc]
call dword [0x594128]
mov eax, dword [0x59fb4c]
add esp, 4
test eax, eax
je 0x49da96
push 1
push 0
call eax
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
call fcn.0042e8b0
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret