Function at 0x100086e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x68
movsd xmm1, qword [ebx + 0x10]
movaps xmm2, xmm3
movsd xmm0, qword [0x103bb130]
movsd xmm3, qword [0x103bb088]
mulsd xmm1, xmm0
push esi
mov esi, dword [ebx + 8]
mulsd xmm2, xmm0
push edi
movaps xmm0, xmm1
mov dword [ebp - 0x24], esi
mulsd xmm0, xmm3
mov edi, ecx
mov dword [esi], 0
subsd xmm2, xmm0
movaps xmm0, xmm2
movsd qword [edi + 8], xmm2
addsd xmm0, xmm1
movsd xmm1, qword [0x103baf88]
comisd xmm1, xmm2
movsd qword [edi], xmm0
jbe 0x10008757
movsd qword [edi + 8], xmm1
movsd xmm1, qword [0x103bb118]
comisd xmm0, xmm1
jbe 0x10008769
movsd qword [edi], xmm1
movsd xmm0, qword [edi]
movaps xmm2, xmm0
subsd xmm2, qword [edi + 8]
addsd xmm0, qword [edi + 8]
mulsd xmm2, xmm3
mulsd xmm0, xmm3
movsd qword [ebp - 0x10], xmm2
call fcn.100d23f0
movaps xmm2, xmm0
movsd xmm0, qword [ebp - 0x10]
movsd qword [ebp - 0x18], xmm2
call fcn.100d23f0
movsd xmm1, qword [ebp - 0x18]
divsd xmm1, xmm0
movsd xmm0, qword [ebp - 0x10]
movsd qword [ebp - 0x18], xmm1
movsd qword [edi + 0x10], xmm1
call fcn.100d408f
movsd xmm1, qword [0x103bb0e0]
divsd xmm1, xmm0
mov ecx, dword [ebx + 0xc]
movsd xmm2, qword [ebp - 0x18]
movaps xmm0, xmm2
movsd qword [edi + 0x18], xmm1
mulsd xmm0, xmm2
movsd qword [edi + 0x20], xmm0
movaps xmm0, xmm1
mulsd xmm0, xmm1
mulsd xmm1, xmm2
movsd qword [edi + 0x28], xmm0
movsd qword [edi + 0x30], xmm1
addsd xmm1, xmm1
movsd qword [edi + 0x38], xmm1
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
test eax, eax
jle 0x10008920
xor edx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], edx
nop dword [eax + eax]
mov esi, dword [ecx + 8]
sub esp, 0x10
add esi, edx
mov eax, esp
mov ecx, edi
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x68]
push eax
call fcn.10008a20
movups xmm0, xmmword [esi + 0x20]
sub esp, 0x10
mov ecx, edi
mov eax, esp
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push eax
call fcn.10008a20
mov esi, dword [ebp - 0x24]
movsd xmm3, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x60]
movaps xmm0, xmm3
movsd xmm4, qword [ebp - 0x40]
movaps xmm2, xmm1
mov eax, dword [esi]
movaps xmm5, xmm4
movsd xmm7, qword [0x103bb500]
movsd xmm6, qword [ebp - 0x48]
xorps xmm2, xmm7
cdq
xorps xmm5, xmm7
sub eax, edx
unpcklpd xmm0, xmm1
sar eax, 1
movsd xmm1, qword [ebp - 0x50]
shl eax, 6
add eax, dword [esi + 8]
unpcklpd xmm3, xmm2
movaps xmm2, xmm1
mov ecx, dword [ebx + 0xc]
xorps xmm2, xmm7
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm3
movsd xmm3, qword [ebp - 0x58]
movaps xmm0, xmm6
unpcklpd xmm0, xmm4
movsd xmm4, qword [ebp - 0x30]
movups xmmword [eax + 0x20], xmm0
unpcklpd xmm6, xmm5
movaps xmm0, xmm3
movups xmmword [eax + 0x30], xmm6
add dword [esi], 2
mov eax, dword [esi]
movaps xmm5, xmm4
movsd xmm6, qword [ebp - 0x38]
xorps xmm5, xmm7
cdq
sub eax, edx
unpcklpd xmm0, xmm1
mov edx, dword [ebp - 0x1c]
sar eax, 1
add edx, 0x40
shl eax, 6
add eax, dword [esi + 8]
unpcklpd xmm3, xmm2
mov dword [ebp - 0x1c], edx
movups xmmword [eax], xmm0
movaps xmm0, xmm6
unpcklpd xmm6, xmm5
movups xmmword [eax + 0x10], xmm3
unpcklpd xmm0, xmm4
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x30], xmm6
add dword [esi], 2
sub dword [ebp - 0xc], 1
jne 0x10008820
mov eax, dword [ebp - 4]
test byte [ebp - 0x14], 1
je 0x10008997
mov ecx, dword [ecx + 8]
sub esp, 0x10
shl eax, 6
add ecx, eax
mov dword [ebp - 4], eax
mov eax, esp
movups xmm0, xmmword [ecx]
mov ecx, edi
movups xmmword [eax], xmm0
lea eax, [ebp - 0x68]
push eax
call fcn.10008a20
mov eax, dword [ebx + 0xc]
sub esp, 0x10
mov edx, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov eax, esp
movups xmm0, xmmword [edx + ecx + 0x20]
mov ecx, edi
movups xmmword [eax], xmm0
lea eax, [ebp - 0x48]
push eax
call fcn.10008a20
mov eax, dword [esi]
movups xmm0, xmmword [ebp - 0x68]
cdq
sub eax, edx
sar eax, 1
shl eax, 6
add eax, dword [esi + 8]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [eax + 0x30], xmm0
add dword [esi], 2
mov eax, dword [ebx + 0xc]
movsd xmm0, qword [eax + 0x18]
movsd xmm1, qword [eax + 0x10]
mulsd xmm1, qword [0x103bb088]
movsd qword [ebp - 0x10], xmm0
movsd xmm0, qword [edi]
mulsd xmm0, qword [0x103bb088]
movsd qword [ebp - 0x18], xmm1
addsd xmm0, xmm1
call fcn.100d408f
movsd qword [ebp - 0x28], xmm0
movsd xmm0, qword [edi + 8]
mulsd xmm0, qword [0x103bb088]
addsd xmm0, qword [ebp - 0x18]
call fcn.100d408f
movsd xmm1, qword [ebp - 0x28]
mulsd xmm1, xmm0
xorps xmm0, xmm0
sqrtsd xmm0, xmm1
call fcn.100d21de
mulsd xmm0, qword [0x103bb108]
mov eax, edi
pop edi
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [ebp - 0x10]
movsd qword [esi + 0x18], xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10