Function at 0x52cd30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.005c8080
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x10], edi
push ecx
cmovne edx, eax
mov dword [esp + 0x24], edx
call fcn.004ab140
mov esi, dword [esp + 0x44]
mov ebp, eax
add esp, 4
test ebp, ebp
js 0x52d027
cmp esi, 0xffffffff
jne 0x52cde6
mov esi, ebp
mov eax, dword [esp + 0x2c]
push dword [eax + 0x14]
call fcn.004c01a0
push dword [esp + 0x30]
lea ebx, [eax - 1]
and ebx, 7
mov dword [esp + 0x2c], ebx
call fcn.00553950
add esp, 8
mov ecx, eax
test ebx, ebx
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x30]
jne 0x52cdb6
mov byte [ebx], 0
inc ebx
dec ecx
mov dword [esp + 0x18], ecx
lea eax, [ebp + 2]
cmp ecx, eax
jge 0x52ce23
call fcn.004a93e0
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0x6e
push 4
call fcn.004a94f0
add esp, 0x18
jmp 0x52d027
cmp esi, 0xfffffffe
jne 0x52cdf2
mov esi, 0xfffffffd
jmp 0x52cd7d
cmp esi, 0xfffffffd
jge 0x52cd7d
call fcn.004a93e0
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0x88
push 4
call fcn.004a94f0
add esp, 0x18
jmp 0x52d027
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x14], eax
lea ecx, [eax - 2]
cmp esi, 0xfffffffd
jne 0x52ce37
mov esi, ecx
jmp 0x52ce3b
cmp esi, ecx
jg 0x52cdbd
test esi, esi
jle 0x52ce9e
push 0
push 0x66ed1f
push esi
call fcn.004a4e90
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x52ce7f
call fcn.004a93e0
push str.RSA_padding_add_PKCS1_PSS_mgf1
push edi
push 0x66ed1f
call fcn.004a94e0
push edi
push 0xc0100
push 4
call fcn.004a94f0
add esp, 0x18
jmp 0x52d027
mov eax, dword [esp + 0x2c]
push 0
push esi
push edi
push dword [eax + 4]
call fcn.004bd710
add esp, 0x10
test eax, eax
jle 0x52d027
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x3c], eax
call fcn.004af0b0
mov dword [esp + 0x10], eax
test eax, eax
je 0x52d027
push 0
push dword [esp + 0x3c]
push eax
call fcn.004aea40
add esp, 0xc
test eax, eax
je 0x52d027
push 8
push 0x62cd2c
push dword [esp + 0x18]
call fcn.004aea80
add esp, 0xc
test eax, eax
je 0x52d027
push ebp
push dword [esp + 0x38]
push dword [esp + 0x18]
call fcn.004aea80
add esp, 0xc
test eax, eax
je 0x52d027
test esi, esi
je 0x52cf19
push esi
push edi
push dword [esp + 0x18]
call fcn.004aea80
add esp, 0xc
test eax, eax
je 0x52d027
mov eax, dword [esp + 0x3c]
push 0
add eax, ebx
push eax
push dword [esp + 0x18]
call fcn.004ae920
add esp, 0xc
test eax, eax
je 0x52d027
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x20]
push ebp
lea eax, [ecx + ebx]
push eax
push ecx
push ebx
call fcn.00554d80
add esp, 0x14
test eax, eax
jne 0x52d027
mov ecx, dword [esp + 0x14]
sub ecx, esi
add ecx, ebx
xor byte [ecx - 2], 1
lea eax, [ecx - 2]
dec ecx
test esi, esi
jle 0x52cffe
xor edx, edx
cmp esi, 0x40
jb 0x52cff0
lea ebp, [eax + esi]
lea eax, [esi - 1]
add eax, edi
cmp ecx, eax
ja 0x52cf84
cmp ebp, edi
jae 0x52cff0
mov eax, esi
and eax, 0x8000003f
jns 0x52cf92
dec eax
or eax, 0xffffffc0
inc eax
mov ebp, esi
sub ebp, eax
lea eax, [edi + 0x20]
nop dword [eax]
movups xmm0, xmmword [ecx]
add edx, 0x40
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax - 0x60]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
movups xmm1, xmmword [eax - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [ecx + 0x10], xmm1
movups xmm1, xmmword [ecx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
movups xmm0, xmmword [ecx + 0x30]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp edx, ebp
jl 0x52cfa0
cmp edx, esi
jge 0x52cffe
nop
mov al, byte [edx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, esi
jl 0x52cff0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x52d016
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebx], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 1
mov byte [eax + ebx - 1], 0xbc
push dword [esp + 0x10]
call fcn.004af020
push 0
push 0x66ed1f
push esi
push edi
call fcn.004a4f70
mov eax, dword [esp + 0x30]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret