Function at 0x100467d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x100e0458]
xor eax, esp
mov dword [esp + 0x284], eax
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x1e8]
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x1c]
push 0
push edx
push edi
push eax
push dword [ebp + 0x10]
mov dword [esp + 0x40], ecx
push ecx
push dword [ebp + 8]
call fcn.100481f0
add esp, 0x1c
mov dword [esp + 0x1e0], 0
lea eax, [esp + 0x1f0]
mov dword [esp + 0x1ec], 2
xorps xmm0, xmm0
mov dword [esp + 0x1e4], 0
xorps xmm3, xmm3
movaps xmmword [esp + 0xf0], xmm0
push dword [ebp + 0x18]
lea ecx, [esp + 0x64]
movss dword [esp + 0x1c], xmm3
push eax
mov dword [esp + 0x108], 0
call fcn.100479e0
mov ecx, eax
test ecx, ecx
jne 0x10046baa
movss xmm4, dword [esp + 0x18]
xor esi, esi
mov eax, dword [esp + 0x1e8]
movaps xmm7, xmm4
movaps xmm5, xmm4
movss dword [esp + 0x28], xmm7
movaps xmm6, xmm4
movss dword [esp + 0x1c], xmm5
movss dword [esp + 0x14], xmm4
movss dword [esp + 0x20], xmm6
movss dword [esp + 0x10], xmm4
cmp dword [eax + 0x20], esi
jbe 0x100469f0
nop dword [eax]
nop word [eax + eax]
movss xmm0, dword [eax + esi*4 + 0x10]
push dword [eax + esi*4]
mov ecx, dword [esp + 0x1f4]
lea eax, [esp + 0x54]
push eax
movss dword [esp + 0x2c], xmm0
call dword [esp + 0x278]
movss xmm2, dword [esp + 0x24]
lea ecx, [esp + 0x1f0]
movss xmm3, dword [0x10095380]
movups xmm1, xmmword [eax]
mov eax, dword [esp + 0x1e8]
movaps xmm0, xmm1
mulss xmm0, xmm2
mov eax, dword [eax + esi*4]
addss xmm0, dword [esp + 0x18]
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
shufps xmm1, xmm1, 0xaa
mulss xmm0, xmm2
mulss xmm1, xmm2
addss xmm0, dword [esp + 0x1c]
movss xmm2, dword [eax + 8]
addss xmm1, dword [esp + 0x20]
xorps xmm2, xmm3
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [eax]
movss dword [esp + 0x20], xmm1
xorps xmm0, xmm3
movss xmm1, dword [eax + 4]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
movss dword [esp + 0x34], xmm0
xorps xmm1, xmm3
movss dword [esp + 0x3c], xmm2
push eax
movss dword [esp + 0x3c], xmm1
mov dword [esp + 0x44], 0
call fcn.10048ad0
movss xmm0, dword [esp + 0x40]
inc esi
movss xmm1, dword [esp + 0x24]
mulss xmm0, xmm1
mov eax, dword [esp + 0x1e8]
addss xmm0, dword [esp + 0x28]
movaps xmm7, xmm0
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x44]
mulss xmm0, xmm1
addss xmm0, dword [esp + 0x14]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x48]
mulss xmm0, xmm1
addss xmm0, dword [esp + 0x10]
movss dword [esp + 0x10], xmm0
cmp esi, dword [eax + 0x20]
jb 0x100468c0
movss xmm4, dword [esp + 0x18]
movss xmm5, dword [esp + 0x1c]
movss xmm6, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
movaps xmm3, xmm5
movaps xmm0, xmm4
movaps xmm2, xmm5
movaps xmm1, xmm5
subss xmm5, dword [esp + 0x14]
mulss xmm0, dword [eax + 0x10]
mulss xmm3, dword [eax + 0x14]
mulss xmm2, dword [eax + 0x24]
addss xmm3, xmm0
mulss xmm1, dword [eax + 4]
movaps xmm0, xmm6
mulss xmm0, dword [eax + 0x18]
addss xmm3, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [eax + 0x20]
addss xmm2, xmm0
movaps xmm0, xmm6
mulss xmm0, dword [eax + 0x28]
addss xmm3, dword [eax + 0x34]
addss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [eax]
subss xmm4, xmm7
addss xmm2, dword [eax + 0x38]
addss xmm1, xmm0
movaps xmm0, xmm6
mulss xmm0, dword [eax + 8]
subss xmm6, dword [esp + 0x10]
addss xmm1, xmm0
movaps xmm0, xmm7
addss xmm1, dword [eax + 0x30]
movss dword [edi + 0x10], xmm1
movaps xmm1, xmm7
movss dword [edi + 0x14], xmm3
movss xmm3, dword [esp + 0x14]
movss dword [edi + 0x18], xmm2
movaps xmm2, xmm7
mov dword [edi + 0x1c], 0
mulss xmm0, dword [eax + 0x10]
mulss xmm3, dword [eax + 0x14]
mulss xmm2, dword [eax + 0x20]
mulss xmm1, dword [eax]
addss xmm3, xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [eax + 0x18]
addss xmm3, xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [eax + 0x24]
addss xmm2, xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [eax + 0x28]
addss xmm3, dword [eax + 0x34]
addss xmm2, xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [eax + 4]
addss xmm2, dword [eax + 0x38]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [eax + 8]
addss xmm1, xmm0
addss xmm1, dword [eax + 0x30]
movss dword [edi + 0x20], xmm1
movss dword [edi + 0x24], xmm3
movss dword [edi + 0x28], xmm2
mov dword [edi + 0x2c], 0
movss dword [edi + 0x30], xmm4
movss dword [edi + 0x34], xmm5
movss dword [edi + 0x38], xmm6
mov dword [edi + 0x3c], 0
movss xmm2, dword [edi + 0x30]
movaps xmm0, xmm2
mulss xmm5, xmm5
mulss xmm0, xmm2
mulss xmm6, xmm6
addss xmm5, xmm0
xorps xmm0, xmm0
addss xmm5, xmm6
sqrtss xmm0, xmm5
comiss xmm0, dword [0x10095af0]
movss dword [edi + 0x40], xmm0
movss xmm1, dword [0x100da100]
ja 0x10046b70
movaps xmm0, xmm1
divss xmm1, xmm0
mov al, 1
movaps xmm0, xmm1
mulss xmm2, xmm1
mulss xmm0, dword [edi + 0x34]
mulss xmm1, dword [edi + 0x38]
movss dword [edi + 0x30], xmm2
movss dword [edi + 0x34], xmm0
movss dword [edi + 0x38], xmm1
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.100651a4
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp ecx, 1
mov ecx, dword [esp + 0x28c]
setne al
inc eax
mov dword [edi], eax
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100651a4
mov esp, ebp
pop ebp
ret