Function at 0x527630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 4], ecx
cmp esi, 1
jne 0x527664
push dword [ebp + 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00527570
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x30]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp + 0x30]
push ecx
mov ecx, dword [ebp + 0x1c]
push 1
push dword [ebp + 0x24]
push ecx
push ecx
lea ecx, [ebp + 0x18]
push ecx
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.00524cd0
movd xmm1, dword [ebp - 0x34]
add esp, 0x2c
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x619e1c]
movss dword [ebp - 0xc], xmm1
movd xmm1, dword [ebp - 0x30]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x619e1c]
movss dword [ebp - 0x10], xmm1
cmp esi, 2
jne 0x52783c
mov eax, dword [ebp - 0x28]
xor edx, edx
xor ecx, ecx
test eax, eax
je 0x5276dd
cmp eax, 0x4000
mov esi, 8
cmovne ecx, esi
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add eax, ecx
sub dword [esi + 0x20], eax
mov esi, edi
cmp dword [ebp - 0x28], 0x2000
mov eax, dword [ebp + 0xc]
cmovg esi, dword [ebp + 0xc]
cmovg eax, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esi
test ecx, ecx
je 0x527756
push 1
cmp dword [ebp - 0x14], edx
je 0x527749
movss xmm0, dword [eax + 4]
movss xmm1, dword [esi + 4]
mulss xmm1, dword [eax]
xor eax, eax
mulss xmm0, dword [esi]
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm1
seta al
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call fcn.0052fd90
mov edx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x527756
push dword [ebp - 4]
call fcn.00537170
add esp, 8
mov edx, eax
push dword [ebp - 0x18]
lea eax, [edx + edx]
mov esi, 1
push dword [ebp + 0x2c]
sub esi, eax
push ecx
mov dword [esp], 0x3f800000
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x1c]
push 2
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00527040
mov ecx, esi
movss xmm3, dword [ebp - 0xc]
neg ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add esp, 0x2c
movd xmm0, ecx
mov ecx, dword [ebp - 0x20]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 4]
movss dword [ecx], xmm0
movd xmm0, esi
mov esi, dword [ebp + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax]
mov eax, dword [ebp + 8]
movss dword [ecx + 4], xmm0
cmp dword [eax + 4], 0
mov ecx, dword [ebp + 0xc]
je 0x527a72
movaps xmm0, xmm3
mulss xmm0, dword [ecx]
movss dword [ecx], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [ecx + 4]
movss dword [ecx + 4], xmm0
movss xmm0, dword [ebp - 0x10]
movaps xmm2, xmm0
mulss xmm0, dword [edi + 4]
mulss xmm2, dword [edi]
movss dword [edi + 4], xmm0
movss dword [edi], xmm2
movss xmm1, dword [ecx]
movaps xmm0, xmm1
subss xmm0, xmm2
movss dword [ecx], xmm0
addss xmm1, dword [edi]
movss dword [edi], xmm1
movss xmm1, dword [ecx + 4]
movaps xmm0, xmm1
subss xmm0, dword [edi + 4]
movss dword [ecx + 4], xmm0
addss xmm1, dword [edi + 4]
movss dword [edi + 4], xmm1
jmp 0x527970
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 0x2c]
cdq
sub eax, edx
mov edx, dword [ebp + 0x18]
sar eax, 1
cmp edx, eax
mov ecx, eax
cmovl ecx, edx
test ecx, ecx
jns 0x527859
xor eax, eax
jmp 0x52785e
cmp edx, eax
cmovl eax, edx
sub edx, eax
mov dword [ebp - 8], eax
mov dword [ebp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x20]
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov dword [edx + 0x20], ecx
cmp eax, dword [ebp + 0x14]
jl 0x5278ed
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push ecx
mov dword [esp], 0x3f800000
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
push esi
push dword [ebp + 0xc]
push edx
call fcn.00527040
mov dword [ebp - 4], eax
add esp, 0x2c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
sub edx, dword [ebp - 0x14]
add edx, dword [ebp - 8]
cmp edx, 0x18
jle 0x5278c7
cmp dword [ebp - 0x28], 0
je 0x5278c7
mov ecx, dword [ebp + 0x14]
add ecx, 0xffffffe8
add ecx, edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x30]
movss xmm0, dword [ebp - 0x10]
sar edx, cl
push edx
mov edx, dword [ebp + 0x24]
push 0
push ecx
movss dword [esp], xmm0
push 0
push edx
push 0
push ecx
push dword [ebp + 0x14]
push esi
push edi
jmp 0x527959
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x30]
sar eax, cl
push eax
push 0
push ecx
movss dword [esp], xmm1
push 0
push dword [ebp + 0x24]
push 0
push ecx
push dword [ebp + 0x14]
push esi
push edi
push edx
call fcn.00527040
mov ecx, dword [ebp - 8]
add esp, 0x2c
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
sub edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x14]
cmp edx, 0x18
jle 0x527939
cmp dword [ebp - 0x28], 0x4000
je 0x527939
add ecx, 0xffffffe8
add ecx, edx
push dword [ebp + 0x30]
mov edx, dword [ebp + 0x24]
push dword [ebp + 0x2c]
push ecx
mov dword [esp], 0x3f800000
push dword [ebp + 0x28]
push edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
push esi
push dword [ebp + 0xc]
push eax
call fcn.00527040
mov ecx, dword [ebp + 0xc]
add esp, 0x2c
or dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movss xmm3, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x527a72
cmp esi, 2
je 0x527993
push dword [eax + 0x2c]
push esi
push ecx
movss dword [esp], xmm3
push edi
push ecx
call fcn.005282d0
add esp, 0x14
cmp dword [ebp - 0x38], 0
je 0x527a72
xor ecx, ecx
test esi, esi
jle 0x527a72
movaps xmm2, xmmword [0x560cb0]
cmp esi, 2
jb 0x527a1b
cmp esi, 0x10
jb 0x5279fe
mov edx, esi
lea eax, [edi + 0x20]
and edx, 0xfffffff0
movups xmm0, xmmword [eax - 0x20]
add ecx, 0x10
lea eax, [eax + 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
xorps xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp ecx, edx
jl 0x5279c0
mov eax, esi
and al, 0xf
cmp al, 2
jb 0x527a17
mov eax, esi
and eax, 0xfffffffe
movsd xmm1, qword [edi + ecx*4]
xorps xmm1, xmm2
movsd qword [edi + ecx*4], xmm1
add ecx, 2
cmp ecx, eax
jl 0x527a03
cmp ecx, esi
jge 0x527a72
mov eax, esi
sub eax, ecx
cmp eax, 4
jl 0x527a60
mov edx, esi
lea eax, [edi + 8]
sub edx, ecx
lea eax, [eax + ecx*4]
sub edx, 4
shr edx, 2
inc edx
lea ecx, [ecx + edx*4]
nop dword [eax + eax]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x18]
xorps xmm0, xmm2
movups xmmword [eax - 0x18], xmm0
sub edx, 1
jne 0x527a40
cmp ecx, esi
jge 0x527a72
nop word [eax + eax]
movss xmm0, dword [edi + ecx*4]
xorps xmm0, xmm2
movss dword [edi + ecx*4], xmm0
inc ecx
cmp ecx, esi
jl 0x527a60
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret