Function at 0x4ae0fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
push esi
cmovne eax, dword [ebp + 0x18]
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
call fcn.00466091
mov edi, dword [ebp + 0x1c]
mov dword [ebp + 0x18], eax
pop ecx
test eax, eax
js 0x4ae2f6
cmp edi, 0xffffffff
jne 0x4ae180
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.0045fc8e
dec eax
and eax, 7
push esi
mov dword [ebp - 0x18], eax
call fcn.00480eb0
mov edx, eax
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x18], ebx
jne 0x4ae165
mov byte [esi], bl
inc esi
dec edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x14], esi
lea eax, [ecx + 2]
cmp edx, eax
jge 0x4ae1b2
push 0xba
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x6e
jmp 0x4ae19e
cmp edi, 0xfffffffe
jne 0x4ae18a
push 0xfffffffffffffffd
pop edi
jmp 0x4ae137
cmp edi, 0xfffffffd
jge 0x4ae137
push 0xae
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.0045b321
add esp, 0x14
jmp 0x4ae2f6
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x10], eax
lea ecx, [eax - 2]
cmp edi, 0xfffffffd
jne 0x4ae1ef
mov edi, ecx
test edi, edi
jle 0x4ae211
push 0xc5
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push edi
call fcn.0045aaec
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x4ae1fd
push 0xc8
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x41
jmp 0x4ae19e
cmp edi, ecx
jle 0x4ae1c3
push 0xc1
jmp 0x4ae177
push edi
push eax
call fcn.00499fd7
pop ecx
pop ecx
test eax, eax
jle 0x4ae2f6
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
call fcn.0046c578
mov dword [ebp - 4], eax
test eax, eax
je 0x4ae2f6
push ebx
push dword [ebp + 0x14]
push eax
call fcn.0046c288
add esp, 0xc
test eax, eax
je 0x4ae2f6
push 8
push 0x5d7100
push dword [ebp - 4]
call fcn.0046c409
add esp, 0xc
test eax, eax
je 0x4ae2f6
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.0046c409
add esp, 0xc
test eax, eax
je 0x4ae2f6
test edi, edi
je 0x4ae284
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0046c409
add esp, 0xc
test eax, eax
je 0x4ae2f6
mov eax, dword [ebp - 0xc]
push ebx
add eax, esi
push eax
push dword [ebp - 4]
call fcn.0046c1fd
add esp, 0xc
test eax, eax
je 0x4ae2f6
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
push dword [ebp + 0x18]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.004813fa
add esp, 0x14
test eax, eax
jne 0x4ae2f6
mov ecx, dword [ebp - 0x10]
sub ecx, edi
add ecx, esi
xor byte [ecx - 2], 1
dec ecx
test edi, edi
jle 0x4ae2d6
mov esi, dword [ebp - 8]
mov al, byte [ebx + esi]
xor byte [ecx], al
inc ecx
inc ebx
cmp ebx, edi
jl 0x4ae2c8
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4ae2eb
push 8
pop ecx
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
inc ebx
mov byte [eax + esi - 1], 0xbc
push dword [ebp - 4]
call fcn.0046c559
push 0xf7
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push edi
push dword [ebp - 8]
call fcn.0045ab95
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret