Function at 0x4a84c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x74]
test ecx, ecx
cmove eax, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0043ea10
test eax, eax
mov edi, eax
js 0x4a860d
cmp ebx, 0xffffffff
je 0x4a8790
cmp ebx, 0xfffffffe
je 0x4a850c
jl 0x4a8636
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0041e0d0
mov dword [esp], ebp
sub eax, 1
mov dword [esp + 0x14], eax
and dword [esp + 0x14], 7
call fcn.0041ec70
mov edx, dword [esp + 0x14]
test edx, edx
mov ebp, eax
jne 0x4a8546
mov eax, dword [esp + 0x64]
sub ebp, 1
mov byte [eax], 0
add eax, 1
mov dword [esp + 0x64], eax
cmp ebx, 0xfffffffe
je 0x4a8620
lea eax, [edi + ebx + 1]
cmp ebp, eax
jle 0x4a85e1
test ebx, ebx
jle 0x4a862f
mov dword [esp + 8], 0xf2
mov dword [esp + 4], str.external_openssl_crypto_rsa_rsa_pss.c
mov dword [esp], ebx
call fcn.004273e0
test eax, eax
mov esi, eax
je 0x4a87a0
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00433480
test eax, eax
jle 0x4a8797
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.004629a0
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.00462a80
test eax, eax
jne 0x4a8664
xor ebx, ebx
test esi, esi
je 0x4a860f
mov dword [esp], esi
call fcn.004276d0
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0xed
mov dword [esp + 0xc], str.external_openssl_crypto_rsa_rsa_pss.c
mov dword [esp + 8], 0x6e
mov dword [esp + 4], 0x94
mov dword [esp], 4
call fcn.00429800
xor ebx, ebx
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, ebp
sub ebx, edi
sub ebx, 2
test ebx, ebx
jg 0x4a8563
xor esi, esi
jmp 0x4a8599
mov dword [esp + 0x10], 0xdc
mov dword [esp + 0xc], str.external_openssl_crypto_rsa_rsa_pss.c
mov dword [esp + 8], 0x88
mov dword [esp + 4], 0x94
mov dword [esp], 4
call fcn.00429800
jmp 0x4a860d
lea eax, [esp + 0x28]
mov dword [esp + 8], 8
mov dword [esp + 4], 0x4e8fee
mov dword [esp], eax
call fcn.00462d70
test eax, eax
je 0x4a85c9
mov eax, dword [esp + 0x68]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.00462d70
test eax, eax
je 0x4a85c9
test ebx, ebx
je 0x4a86c8
lea eax, [esp + 0x28]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00462d70
test eax, eax
je 0x4a85c9
mov eax, ebp
sub eax, edi
sub eax, 1
mov dword [esp + 0x18], eax
add eax, dword [esp + 0x64]
mov dword [esp + 8], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 4], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.00462d80
test eax, eax
je 0x4a85c9
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.00462e20
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.0043fad0
test eax, eax
jne 0x4a85c9
mov edx, dword [esp + 0x64]
mov eax, ebp
sub eax, ebx
sub eax, edi
lea edx, [edx + eax - 2]
xor eax, eax
xor byte [edx], 1
test ebx, ebx
jle 0x4a875d
movzx ecx, byte [esi + eax]
xor byte [edx + eax + 1], cl
add eax, 1
cmp eax, ebx
jne 0x4a874e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a877b
mov edx, dword [esp + 0x64]
mov ecx, 8
mov eax, 0xff
sub ecx, dword [esp + 0x14]
sar eax, cl
and byte [edx], al
mov eax, dword [esp + 0x64]
mov ebx, 1
mov byte [eax + ebp - 1], 0xbc
jmp 0x4a85cb
mov ebx, eax
jmp 0x4a850c
xor ebx, ebx
jmp 0x4a85cf
mov dword [esp + 0x10], 0xf5
mov dword [esp + 0xc], str.external_openssl_crypto_rsa_rsa_pss.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x94
mov dword [esp], 4
call fcn.00429800
jmp 0x4a860d