Function at 0x405ecc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push esi
push edi
push ebx
sub esp, 0xb4
mov edi, dword [ebp + 0x30]
mov esi, dword [ebp + 0x28]
movss xmm3, dword [ecx]
mov ecx, dword [ecx]
movaps xmm5, xmm3
movss xmm1, dword [eax]
mov eax, dword [eax]
movaps xmm0, xmm1
mov ebx, dword [ebp + 0x2c]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
movss xmm4, dword [edx]
mov edx, dword [edx]
movaps xmm2, xmm4
mov dword [ebx], edx
mov edx, dword [ecx]
mov dword [esp + 0xa8], edx
mov dword [esi + 4], edx
mov edx, dword [eax]
mov dword [ebx + 4], edx
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0xa4], edx
subss xmm2, dword [eax]
subss xmm0, dword [ecx]
subss xmm5, dword [ebx]
movaps xmm6, xmm2
movaps xmm7, xmm5
movss dword [esp + 0xac], xmm0
mulss xmm0, xmm0
mulss xmm6, xmm2
mulss xmm7, xmm5
addss xmm0, xmm6
mov edx, dword [ebx]
addss xmm0, xmm7
mov dword [edi + 4], edx
mov edi, dword [ebp + 0x20]
movss xmm7, dword [0x45f8f0]
sqrtss xmm0, xmm0
movss xmm6, dword [edi]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
comiss xmm7, xmm6
jbe 0x405f98
mov eax, dword [ebp + 0x24]
mov dword [eax], 2
add esp, 0xb4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x2c
movss xmm7, dword [0x45f8f4]
comiss xmm7, xmm0
jbe 0x405fbd
mov eax, dword [ebp + 0x24]
mov dword [eax], 2
add esp, 0xb4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x2c
movaps xmm7, xmm0
divss xmm7, xmm6
cvttss2si edi, xmm7
cmp edi, 2
jg 0x405fe5
mov eax, dword [ebp + 0x24]
mov dword [eax], 2
add esp, 0xb4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x2c
cmp edi, 0x1387
jle 0x406005
movaps xmm6, xmm0
mov edi, 0x1388
divss xmm6, dword [0x45f8f8]
movss dword [esp + 0x58], xmm6
jmp 0x40601f
cvtsi2ss xmm6, edi
movaps xmm7, xmm0
cmp edi, 4
divss xmm7, xmm6
movss dword [esp + 0x58], xmm7
jl 0x40653b
mov ebx, dword [ebp + 0x30]
and ebx, 0xf
mov dword [esp + 0x54], ebx
je 0x406042
test byte [esp + 0x54], 3
jne 0x40653b
neg ebx
add ebx, 0x10
shr ebx, 2
mov dword [esp + 0x54], ebx
lea ebx, [ebx + 4]
cmp edi, ebx
jl 0x40653b
mov dword [esp + 0x4c], edx
mov edx, edi
mov ebx, dword [esp + 0x54]
sub edx, ebx
and edx, 3
neg edx
add edx, edi
mov dword [esp + 0x50], edx
test ebx, ebx
mov edx, dword [esp + 0x4c]
jbe 0x40610d
mov dword [esp + 0x4c], edx
xor ebx, ebx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x54]
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
mov esi, esi
pxor xmm6, xmm6
cvtsi2ss xmm6, ebx
mulss xmm6, dword [esp + 0x58]
movss xmm7, dword [esp + 0xac]
mulss xmm7, xmm6
xorps xmm7, xmmword [0x45f530]
divss xmm7, xmm0
addss xmm7, xmm1
movss dword [esi + ebx*4], xmm7
movaps xmm7, xmm2
mulss xmm7, xmm6
mulss xmm6, xmm5
xorps xmm7, xmmword [0x45f530]
xorps xmm6, xmmword [0x45f530]
divss xmm7, xmm0
divss xmm6, xmm0
addss xmm7, xmm4
addss xmm6, xmm3
movss dword [ecx + ebx*4], xmm7
movss dword [edx + ebx*4], xmm6
inc ebx
cmp ebx, eax
jb 0x406090
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0xa4], ecx
push 4
pop ecx
mov dword [esp], edi
movss dword [esp + 0x30], xmm0
lea ebx, [edx + 1]
movd xmm0, edx
lea edi, [edx + 2]
movd xmm6, ecx
lea ecx, [edx + 3]
pshufd xmm7, xmm6, 0
movd xmm6, ebx
mov ebx, dword [ebp + 0x2c]
movdqa xmmword [esp + 0x60], xmm7
movd xmm7, ecx
punpcklqdq xmm0, xmm6
movd xmm6, edi
punpcklqdq xmm6, xmm7
lea edx, [ebx + edx*4]
shufps xmm0, xmm6, 0x88
test dl, 0xf
movaps xmmword [esp + 0x10], xmm0
mov edi, dword [esp]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0xa4]
movss xmm0, dword [esp + 0x30]
je 0x4062d0
movss xmm6, dword [esp + 0x58]
movaps xmm7, xmm1
shufps xmm6, xmm6, 0
movaps xmmword [esp], xmm6
movaps xmm6, xmm0
shufps xmm6, xmm6, 0
movaps xmmword [esp + 0x20], xmm6
movaps xmm6, xmm4
movaps xmmword [esp + 0x80], xmm3
shufps xmm6, xmm6, 0
movaps xmmword [esp + 0x90], xmm6
movaps xmm6, xmm3
shufps xmm6, xmm6, 0
movaps xmmword [esp + 0x80], xmm6
movss xmm6, dword [esp + 0xac]
xorps xmm6, xmmword [0x45f530]
movss dword [esp + 0x48], xmm6
movaps xmm6, xmm2
xorps xmm6, xmmword [0x45f530]
movss dword [esp + 0x44], xmm6
movaps xmm6, xmm5
xorps xmm6, xmmword [0x45f530]
shufps xmm7, xmm7, 0
movss dword [esp + 0x40], xmm6
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x5c], xmm3
movss dword [esp + 0x3c], xmm4
movss dword [esp + 0xa0], xmm1
mov dword [esp + 0x4c], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
movaps xmmword [esp + 0x70], xmm7
movss dword [esp + 0x34], xmm5
movss xmm6, dword [esp + 0x40]
movss xmm1, dword [esp + 0x44]
movss xmm2, dword [esp + 0x48]
movaps xmm3, xmmword [esp + 0x20]
movaps xmm4, xmmword [esp]
movaps xmm0, xmmword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ecx, dword [ebp + 0x30]
mov ebx, dword [ebp + 0x2c]
lea esi, [esi]
cvtdq2ps xmm5, xmm0
mulps xmm5, xmm4
movaps xmm7, xmm2
shufps xmm7, xmm7, 0
mulps xmm7, xmm5
divps xmm7, xmm3
paddd xmm0, xmmword [esp + 0x60]
addps xmm7, xmmword [esp + 0x70]
movups xmmword [esi + edx*4], xmm7
movaps xmm7, xmm1
shufps xmm7, xmm7, 0
mulps xmm7, xmm5
divps xmm7, xmm3
addps xmm7, xmmword [esp + 0x90]
movups xmmword [ebx + edx*4], xmm7
movaps xmm7, xmm6
shufps xmm7, xmm7, 0
mulps xmm5, xmm7
divps xmm5, xmm3
addps xmm5, xmmword [esp + 0x80]
movaps xmmword [ecx + edx*4], xmm5
add edx, 4
cmp edx, eax
jb 0x406270
jmp 0x40641b
movss xmm6, dword [esp + 0x58]
movaps xmm7, xmm1
shufps xmm6, xmm6, 0
movaps xmmword [esp + 0x20], xmm6
movaps xmm6, xmm0
shufps xmm6, xmm6, 0
movaps xmmword [esp], xmm6
movaps xmm6, xmm4
movaps xmmword [esp + 0x80], xmm3
shufps xmm6, xmm6, 0
movaps xmmword [esp + 0x90], xmm6
movaps xmm6, xmm3
shufps xmm6, xmm6, 0
movaps xmmword [esp + 0x80], xmm6
movss xmm6, dword [esp + 0xac]
xorps xmm6, xmmword [0x45f530]
movss dword [esp + 0x40], xmm6
movaps xmm6, xmm2
xorps xmm6, xmmword [0x45f530]
movss dword [esp + 0x44], xmm6
movaps xmm6, xmm5
xorps xmm6, xmmword [0x45f530]
shufps xmm7, xmm7, 0
movss dword [esp + 0x48], xmm6
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x5c], xmm3
movss dword [esp + 0x3c], xmm4
movss dword [esp + 0xa0], xmm1
mov dword [esp + 0x4c], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
movaps xmmword [esp + 0x70], xmm7
movss dword [esp + 0x34], xmm5
movss xmm6, dword [esp + 0x48]
movss xmm1, dword [esp + 0x44]
movss xmm2, dword [esp + 0x40]
movaps xmm3, xmmword [esp]
movaps xmm4, xmmword [esp + 0x20]
movaps xmm0, xmmword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ecx, dword [ebp + 0x30]
mov ebx, dword [ebp + 0x2c]
lea esi, [esi]
cvtdq2ps xmm5, xmm0
mulps xmm5, xmm4
movaps xmm7, xmm2
shufps xmm7, xmm7, 0
mulps xmm7, xmm5
divps xmm7, xmm3
paddd xmm0, xmmword [esp + 0x60]
addps xmm7, xmmword [esp + 0x70]
movups xmmword [esi + edx*4], xmm7
movaps xmm7, xmm1
shufps xmm7, xmm7, 0
mulps xmm7, xmm5
divps xmm7, xmm3
addps xmm7, xmmword [esp + 0x90]
movaps xmmword [ebx + edx*4], xmm7
movaps xmm7, xmm6
shufps xmm7, xmm7, 0
mulps xmm5, xmm7
divps xmm5, xmm3
addps xmm5, xmmword [esp + 0x80]
movaps xmmword [ecx + edx*4], xmm5
add edx, 4
cmp edx, eax
jb 0x4063c0
mov dword [esp + 0x50], eax
movss xmm0, dword [esp + 0x30]
movss xmm5, dword [esp + 0x34]
movss xmm2, dword [esp + 0x38]
movss xmm3, dword [esp + 0x5c]
movss xmm4, dword [esp + 0x3c]
movss xmm1, dword [esp + 0xa0]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
cmp edi, dword [esp + 0x50]
jbe 0x406514
movss dword [esp + 0x5c], xmm3
movss dword [esp + 0xa0], xmm1
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
movss xmm1, dword [esp + 0x58]
movss xmm3, dword [esp + 0xac]
mov eax, dword [esp + 0x50]
mov ecx, dword [ebp + 0x30]
mov ebx, dword [ebp + 0x2c]
nop
lea esi, [esi]
pxor xmm6, xmm6
movaps xmm7, xmm3
cvtsi2ss xmm6, eax
mulss xmm6, xmm1
mulss xmm7, xmm6
xorps xmm7, xmmword [0x45f530]
divss xmm7, xmm0
addss xmm7, dword [esp + 0xa0]
movss dword [esi + eax*4], xmm7
movaps xmm7, xmm2
mulss xmm7, xmm6
mulss xmm6, xmm5
xorps xmm7, xmmword [0x45f530]
xorps xmm6, xmmword [0x45f530]
divss xmm7, xmm0
divss xmm6, xmm0
addss xmm7, xmm4
addss xmm6, dword [esp + 0x5c]
movss dword [ebx + eax*4], xmm7
movss dword [ecx + eax*4], xmm6
inc eax
cmp eax, edi
jb 0x4064a0
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
inc edi
mov ebx, dword [ebp + 0x24]
mov dword [esi + edi*4 - 4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebx], edi
mov dword [eax + edi*4 - 4], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ecx + edi*4 - 4], edx
add esp, 0xb4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x2c
mov dword [esp + 0x50], 0
jmp 0x406458