Function at 0x4ae006
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.00465f96
mov edi, dword [ebp + 0x1c]
mov dword [ebp + 0x18], eax
pop ecx
test eax, eax
js 0x4ae201
cmp edi, 0xffffffff
jne 0x4ae08b
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.0045fb93
dec eax
and eax, 7
push esi
mov dword [ebp - 0x18], eax
call fcn.00480db5
mov edx, eax
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x18], ebx
jne 0x4ae070
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 0x4ae0bd
push 0xba
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x6e
jmp 0x4ae0a9
cmp edi, 0xfffffffe
jne 0x4ae095
push 0xfffffffffffffffd
pop edi
jmp 0x4ae042
cmp edi, 0xfffffffd
jge 0x4ae042
push 0xae
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.0045b227
add esp, 0x14
jmp 0x4ae201
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x10], eax
lea ecx, [eax - 2]
cmp edi, 0xfffffffd
jne 0x4ae0fa
mov edi, ecx
test edi, edi
jle 0x4ae11c
push 0xc5
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push edi
call fcn.0045a9f5
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x4ae108
push 0xc8
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x41
jmp 0x4ae0a9
cmp edi, ecx
jle 0x4ae0ce
push 0xc1
jmp 0x4ae082
push edi
push eax
call fcn.00499ede
pop ecx
pop ecx
test eax, eax
jle 0x4ae201
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
call fcn.0046c47d
mov dword [ebp - 4], eax
test eax, eax
je 0x4ae201
push ebx
push dword [ebp + 0x14]
push eax
call fcn.0046c18d
add esp, 0xc
test eax, eax
je 0x4ae201
push 8
push 0x5d70f0
push dword [ebp - 4]
call fcn.0046c30e
add esp, 0xc
test eax, eax
je 0x4ae201
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.0046c30e
add esp, 0xc
test eax, eax
je 0x4ae201
test edi, edi
je 0x4ae18f
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0046c30e
add esp, 0xc
test eax, eax
je 0x4ae201
mov eax, dword [ebp - 0xc]
push ebx
add eax, esi
push eax
push dword [ebp - 4]
call fcn.0046c102
add esp, 0xc
test eax, eax
je 0x4ae201
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.004812ff
add esp, 0x14
test eax, eax
jne 0x4ae201
mov ecx, dword [ebp - 0x10]
sub ecx, edi
add ecx, esi
xor byte [ecx - 2], 1
dec ecx
test edi, edi
jle 0x4ae1e1
mov esi, dword [ebp - 8]
mov al, byte [ebx + esi]
xor byte [ecx], al
inc ecx
inc ebx
cmp ebx, edi
jl 0x4ae1d3
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4ae1f6
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.0046c45e
push 0xf7
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push edi
push dword [ebp - 8]
call fcn.0045aa9e
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret