Function at 0x4a87c5
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.0046075b
mov edi, dword [ebp + 0x1c]
mov dword [ebp + 0x18], eax
pop ecx
test eax, eax
js 0x4a89c0
cmp edi, 0xffffffff
jne 0x4a884a
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.0045a358
dec eax
and eax, 7
push esi
mov dword [ebp - 0x18], eax
call fcn.0047b577
mov edx, eax
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x18], ebx
jne 0x4a882f
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 0x4a887c
push 0xba
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x6e
jmp 0x4a8868
cmp edi, 0xfffffffe
jne 0x4a8854
push 0xfffffffffffffffd
pop edi
jmp 0x4a8801
cmp edi, 0xfffffffd
jge 0x4a8801
push 0xae
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.004559e9
add esp, 0x14
jmp 0x4a89c0
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x10], eax
lea ecx, [eax - 2]
cmp edi, 0xfffffffd
jne 0x4a88b9
mov edi, ecx
test edi, edi
jle 0x4a88db
push 0xc5
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push edi
call fcn.004551b7
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x4a88c7
push 0xc8
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x41
jmp 0x4a8868
cmp edi, ecx
jle 0x4a888d
push 0xc1
jmp 0x4a8841
push edi
push eax
call fcn.004946a1
pop ecx
pop ecx
test eax, eax
jle 0x4a89c0
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
call fcn.00466c42
mov dword [ebp - 4], eax
test eax, eax
je 0x4a89c0
push ebx
push dword [ebp + 0x14]
push eax
call fcn.00466952
add esp, 0xc
test eax, eax
je 0x4a89c0
push 8
push 0x5cf730
push dword [ebp - 4]
call fcn.00466ad3
add esp, 0xc
test eax, eax
je 0x4a89c0
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.00466ad3
add esp, 0xc
test eax, eax
je 0x4a89c0
test edi, edi
je 0x4a894e
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00466ad3
add esp, 0xc
test eax, eax
je 0x4a89c0
mov eax, dword [ebp - 0xc]
push ebx
add eax, esi
push eax
push dword [ebp - 4]
call fcn.004668c7
add esp, 0xc
test eax, eax
je 0x4a89c0
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.0047bac1
add esp, 0x14
test eax, eax
jne 0x4a89c0
mov ecx, dword [ebp - 0x10]
sub ecx, edi
add ecx, esi
xor byte [ecx - 2], 1
dec ecx
test edi, edi
jle 0x4a89a0
mov esi, dword [ebp - 8]
mov al, byte [ebx + esi]
xor byte [ecx], al
inc ecx
inc ebx
cmp ebx, edi
jl 0x4a8992
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a89b5
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.00466c23
push 0xf7
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push edi
push dword [ebp - 8]
call fcn.00455260
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret