Function at 0x10002f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x10033008]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [ebp + 8]
movsd xmm0, qword [0x1002b240]
push esi
mov esi, dword [ebp + 0xc]
movss xmm1, dword [eax + 8]
subss xmm1, dword [eax]
push edi
mov edi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mulss xmm1, dword [0x1002b1fc]
movss dword [esp + 0x14], xmm1
movss xmm1, dword [eax + 0xc]
subss xmm1, dword [eax + 4]
mulss xmm1, dword [0x1002b1fc]
movss dword [esp + 0xc], xmm1
call fcn.100240c0
xorps xmm4, xmm4
cvtsd2ss xmm4, xmm0
movsd xmm0, qword [0x1002b260]
mulss xmm4, dword [esp + 0xc]
movss dword [esp + 0x10], xmm4
call fcn.10023fc0
movss xmm3, dword [esp + 0x10]
lea eax, [edi + 0x40]
movss xmm2, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
xorps xmm5, xmm5
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0x3f800000
cvtsd2ss xmm5, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x1002b294]
mulss xmm5, xmm2
movss dword [esp + 0x28], xmm0
subss xmm5, xmm3
cmp ecx, eax
je 0x1000302f
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
movss xmm4, dword [esp + 0x14]
lea eax, [esp + 0x30]
movss xmm6, dword [0x1002b370]
movaps xmm1, xmm4
push fcn.10001010
push 0x10011f00
push 6
xorps xmm1, xmm6
movss dword [esp + 0x70], xmm2
movaps xmm0, xmm2
movss dword [esp + 0x6c], xmm1
xorps xmm0, xmm6
movss dword [esp + 0x74], xmm3
xorps xmm5, xmm6
mov dword [esp + 0x78], 0x3f800000
push 8
push eax
movss dword [esp + 0x84], xmm4
movss dword [esp + 0x88], xmm2
movss dword [esp + 0x8c], xmm3
mov dword [esp + 0x90], 0x3f800000
movss dword [esp + 0x94], xmm4
movss dword [esp + 0x98], xmm0
movss dword [esp + 0x9c], xmm3
mov dword [esp + 0xa0], 0x3f800000
movss dword [esp + 0xa4], xmm1
movss dword [esp + 0xa8], xmm0
movss dword [esp + 0xac], xmm3
mov dword [esp + 0xb0], 0x3f800000
movss dword [esp + 0xb4], xmm1
mov dword [esp + 0xb8], 0
movss dword [esp + 0xbc], xmm5
mov dword [esp + 0xc0], 0x3f800000
movss dword [esp + 0xc4], xmm4
mov dword [esp + 0xc8], 0
movss dword [esp + 0xcc], xmm5
mov dword [esp + 0xd0], 0x3f800000
call fcn.1001715b
movss xmm4, dword [esp + 0x10]
lea eax, [esp + 0x60]
movss xmm5, dword [0x1002b370]
xor edi, edi
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.10001800
movss xmm0, dword [eax + 8]
movaps xmm2, xmm4
subss xmm0, dword [esi + 0x48]
subss xmm2, dword [esi + 0x48]
divss xmm2, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x44]
mulss xmm0, xmm2
addss xmm0, dword [esi + 0x44]
xorps xmm0, xmm5
movss dword [esp + edi*8 + 0x34], xmm0
movss xmm0, dword [eax]
add eax, 0x10
subss xmm0, dword [esi + 0x40]
mulss xmm0, xmm2
addss xmm0, dword [esi + 0x40]
movss dword [esp + edi*8 + 0x30], xmm0
inc edi
cmp edi, 6
jl 0x10003158
mov eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x1c]
sub eax, 0
je 0x10003260
sub eax, 1
je 0x1000322a
sub eax, 1
jne 0x10003271
movss xmm0, dword [esp + 0x48]
movss dword [esi], xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [esi + 4], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [esi + 8], xmm0
movss xmm0, dword [esp + 0x44]
movss dword [esi + 0xc], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [esi + 0x10], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [esi + 0x14], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [esi + 0x1c], xmm0
jmp 0x10003271
movups xmm0, xmmword [esp + 0x50]
movups xmmword [esi], xmm0
movss xmm0, dword [esp + 0x38]
movss dword [esi + 0x10], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esi + 0x14], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [esi + 0x1c], xmm0
jmp 0x10003271
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x40]
movups xmmword [esi + 0x10], xmm0
movss xmm0, dword [esi]
xorps xmm4, xmm4
movss xmm2, dword [esp + 0x14]
movss xmm1, dword [esp + 0xc]
addss xmm0, xmm2
movss xmm3, dword [0x1002b2cc]
movss dword [esi], xmm0
movss xmm0, dword [esi + 4]
addss xmm0, xmm1
movss dword [esi + 4], xmm0
movss xmm0, dword [esi + 8]
addss xmm0, xmm2
movss dword [esi + 8], xmm0
movss xmm0, dword [esi + 0xc]
addss xmm0, xmm1
movss dword [esi + 0xc], xmm0
movss xmm0, dword [esi + 0x10]
addss xmm0, xmm2
movss dword [esi + 0x10], xmm0
movaps xmm0, xmm1
addss xmm0, dword [esi + 0x14]
movss dword [esi + 0x14], xmm0
movss xmm0, dword [esi + 0x18]
addss xmm0, xmm2
movss xmm2, dword [0x1002b1fc]
movss dword [esi + 0x18], xmm0
movss xmm0, dword [esi + 0x1c]
addss xmm0, xmm1
movss dword [esi + 0x1c], xmm0
movss xmm1, dword [esi]
comiss xmm1, xmm4
jb 0x1000330b
movaps xmm0, xmm2
jmp 0x1000330e
movaps xmm0, xmm3
addss xmm0, xmm1
movss xmm1, dword [esi + 4]
comiss xmm1, xmm4
cvttss2si ecx, xmm0
jb 0x10003325
movaps xmm0, xmm2
jmp 0x10003328
movaps xmm0, xmm3
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
movss xmm1, dword [esi + 8]
comiss xmm1, xmm4
jb 0x10003356
movaps xmm0, xmm2
jmp 0x10003359
movaps xmm0, xmm3
addss xmm0, xmm1
movss xmm1, dword [esi + 0xc]
comiss xmm1, xmm4
cvttss2si ecx, xmm0
jb 0x10003370
movaps xmm0, xmm2
jmp 0x10003373
movaps xmm0, xmm3
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esi + 8], xmm0
movss dword [esi + 0xc], xmm1
movss xmm1, dword [esi + 0x18]
comiss xmm1, xmm4
jb 0x100033a2
movaps xmm0, xmm2
jmp 0x100033a5
movaps xmm0, xmm3
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 0x1c]
comiss xmm0, xmm4
jb 0x100033bc
movaps xmm1, xmm2
jmp 0x100033bf
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esi + 0x18], xmm0
movss dword [esi + 0x1c], xmm1
movss xmm0, dword [esi + 0x10]
comiss xmm0, xmm4
jb 0x100033ee
movaps xmm1, xmm2
jmp 0x100033f1
movaps xmm1, xmm3
addss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esi + 0x14]
comiss xmm0, xmm4
jae 0x10003406
movaps xmm2, xmm3
addss xmm0, xmm2
push fcn.10001010
push 6
push 8
cvttss2si eax, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
lea eax, [esp + 0x3c]
cvtdq2ps xmm1, xmm1
push eax
movss dword [esi + 0x10], xmm0
movss dword [esi + 0x14], xmm1
call fcn.100171c4
mov ecx, dword [esp + 0xdc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.100170fb
mov esp, ebp
pop ebp
ret 0xc