Function at 0x4be0f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xbc
call fcn.00525ec0
mov eax, dword [0x5af1b4]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], edi
cmp eax, edi
jne 0x4be15e
mov dword [esp + 0x18], 0x574308
mov eax, dword [esp + 0x18]
cmp ecx, edi
jne 0x4be166
mov dword [esp + 0x30], eax
cmp eax, edi
jne 0x4be191
push 0x121
push str..cryptoevpevp_lib.c
push 0x9f
push 6
mov ecx, 0xa2
call fcn.00460970
add esp, 0x10
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
jmp 0x4be198
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0xc], edi
jle 0x4be48f
cmp esi, edi
jle 0x4be48f
cmp ebx, esi
jl 0x4be3c6
lea ecx, [eax + eax + 2]
cmp ebx, ecx
jl 0x4be3c6
mov esi, ebx
sub esi, eax
dec esi
push str..crypto_rsa_rsa_oaep.c
mov edi, 0x97
mov dword [esp + 0x18], esi
call fcn.004746f0
add esp, 4
push str..crypto_rsa_rsa_oaep.c
mov edi, 0x98
mov esi, ebx
mov dword [esp + 0x14], eax
call fcn.004746f0
add esp, 4
cmp dword [esp + 0x10], 0
mov esi, eax
mov dword [esp + 0x34], esi
je 0x4be47e
test esi, esi
je 0x4be47e
push ebx
push 0
push esi
call fcn.00516180
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add esp, 0xc
push eax
sub ebx, eax
push edx
add ebx, esi
push ebx
call fcn.005165f0
movzx eax, byte [esi]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
lea edi, [eax - 1]
not eax
shr eax, 0x1f
shr edi, 0x1f
and edi, eax
add esp, 0xc
lea eax, [esi + 1]
push edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
push eax
lea edx, [esp + 0x48]
lea ecx, [ebx + esi + 1]
push ebx
push edx
neg edi
mov dword [esp + 0x3c], ecx
call fcn.004be4b0
add esp, 0x10
test eax, eax
jne 0x4be3e1
xor esi, esi
test ebx, ebx
jle 0x4be28f
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x40]
sub ecx, eax
lea eax, [esp + esi + 0x40]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, ebx
jl 0x4be281
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ebx
push esi
push ecx
lea ecx, [esp + 0x50]
call fcn.004be4b0
add esp, 0x10
test eax, eax
jne 0x4be3e1
test esi, esi
jle 0x4be2d0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x4be2c5
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
push 0
lea ecx, [esp + 0x88]
push ecx
push edx
push eax
call fcn.00474180
add esp, 0x14
test eax, eax
je 0x4be3e1
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
lea edx, [esp + 0x84]
call fcn.004619a0
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
lea edx, [eax - 1]
shr edx, 0x1f
not eax
shr eax, 0x1f
and edx, eax
neg edx
and edi, edx
add esp, 4
xor ebx, ebx
cmp esi, ecx
mov dword [esp + 0x18], edi
jge 0x4be38b
mov eax, dword [esp + 0x10]
movzx ecx, byte [esi + eax]
mov eax, ecx
xor eax, 1
lea edx, [eax - 1]
shr edx, 0x1f
not eax
shr eax, 0x1f
and edx, eax
neg edx
mov eax, ebx
not eax
and eax, edx
or ebx, edx
mov edi, eax
not edi
and edi, dword [esp + 0x28]
lea edx, [ecx - 1]
shr edx, 0x1f
not ecx
and eax, esi
shr ecx, 0x1f
or edi, eax
and edx, ecx
neg edx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x18]
or edx, ebx
and edi, edx
inc esi
cmp esi, dword [esp + 0x14]
mov dword [esp + 0x18], edi
jl 0x4be331
mov ecx, dword [esp + 0x14]
test edi, ebx
je 0x4be3c6
mov eax, dword [esp + 0x28]
inc eax
sub ecx, eax
cmp dword [ebp + 0xc], ecx
mov dword [esp + 0x20], ecx
jge 0x4be464
push 0xdd
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 4
mov ecx, 0xa1
call fcn.00460970
add esp, 0x10
mov dword [esp + 0x20], 0xffffffff
push 0xea
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 4
mov ecx, 0xa1
call fcn.00460970
add esp, 0x10
mov esi, dword [esp + 0x10]
mov eax, dword [0x5be044]
test esi, esi
je 0x4be41b
test eax, eax
je 0x4be3fa
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4be41b
push 1
push 0
call eax
mov eax, dword [0x5be044]
add esp, 8
mov esi, dword [esp + 0x34]
test esi, esi
je 0x4be44b
test eax, eax
je 0x4be42f
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4be44b
push 1
push 0
call eax
add esp, 8
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x14]
add eax, ecx
push eax
push edx
call fcn.005165f0
add esp, 0xc
jmp 0x4be3e1
push 0x9a
push str..crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x4be3d2
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.00511c1b
mov esp, ebp
pop ebp
ret