Function at 0x100c3880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x1013a44c]
sub esp, 0x54
push ebx
push esi
push edi
test ecx, ecx
je 0x100c3d87
cmp byte [0x101224d0], 0
je 0x100c3d87
cmp byte [0x1013a450], 0
jne 0x100c38cd
mov eax, dword [0x1013ce54]
cmp eax, dword [0x1013ce58]
je 0x100c3d87
mov dword [0x1013ce58], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x1013ce58]
sub esi, dword [0x1013ce54]
sar esi, 5
mov dword [esp + 0x14], esi
test esi, esi
je 0x100c3d87
mov eax, dword [0x1013c468]
mov edx, esi
add eax, 0xffffffc0
xor eax, 0x20f6a021
shl edx, 5
movd xmm2, dword [eax + ecx]
mov ecx, esi
mov eax, dword [0x1013c268]
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [eax + 0x20]
movss dword [esp + 0x1c], xmm2
mov ebx, dword [0x1013ce54]
sub edx, 0x20
mov edi, ecx
mov dword [esp + 0xc], edx
dec ecx
mov dword [esp + 0x10], ecx
add ebx, edx
je 0x100c3d7f
mov edx, dword [ebx + 0x18]
movaps xmm0, xmm2
mov eax, dword [0x1013c268]
movd xmm1, edx
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [eax + 0x20]
subss xmm0, xmm1
call fcn.100285d0
comiss xmm0, dword [0x10122684]
jbe 0x100c39c7
mov edi, dword [0x1013ce58]
lea esi, [ebx + 0x20]
cmp esi, edi
je 0x100c39bb
lea ecx, [ebx + 0x14]
lea edx, [esi + 0x14]
nop dword [eax]
mov eax, dword [esi]
lea ebx, [ebx + 0x20]
mov dword [ebx - 0x20], eax
lea ecx, [ecx + 0x20]
mov eax, dword [edx - 0x10]
lea edx, [edx + 0x20]
mov dword [ecx - 0x30], eax
add esi, 0x20
mov eax, dword [edx - 0x2c]
mov dword [ecx - 0x2c], eax
mov eax, dword [edx - 0x28]
mov dword [ecx - 0x28], eax
mov eax, dword [edx - 0x24]
mov dword [ecx - 0x24], eax
mov eax, dword [edx - 0x20]
mov dword [ecx - 0x20], eax
mov eax, dword [edx - 0x1c]
mov dword [ecx - 0x1c], eax
movzx eax, byte [edx - 0x18]
mov byte [ecx - 0x18], al
movzx eax, byte [edx - 0x17]
mov byte [ecx - 0x17], al
cmp esi, edi
jne 0x100c3970
mov ecx, dword [esp + 0x10]
sub dword [0x1013ce58], 0x20
jmp 0x100c3d77
cmp byte [ebx + 0x1c], 0
jne 0x100c3d7b
lea eax, [esi - 1]
cmp ecx, eax
je 0x100c39e9
cmp edi, esi
jae 0x100c3d7b
cmp edx, dword [ebx + 0x38]
je 0x100c3d7b
movss xmm6, dword [ebx + 0xc]
movss xmm7, dword [ebx + 0x10]
movss xmm2, dword [ebx]
movss xmm3, dword [ebx + 4]
subss xmm2, xmm6
movss xmm0, dword [ebx + 0x14]
subss xmm3, xmm7
movss xmm4, dword [ebx + 8]
subss xmm4, xmm0
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x30], xmm6
movaps xmm1, xmm2
movss dword [esp + 0x34], xmm7
movaps xmm0, xmm3
mulss xmm1, xmm2
mulss xmm0, xmm3
addss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm0, xmm1
call fcn.10016620
addss xmm0, dword [0x10106cc8]
movss xmm5, dword [0x10106d9c]
movaps xmm1, xmm2
mulss xmm1, xmm2
divss xmm5, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm0, xmm1
call fcn.10016620
movaps xmm1, xmm5
mov dword [esp + 0x54], 0xf7b4a3b5
mulss xmm1, xmm2
mov eax, 0x10
mov dword [esp + 0x58], 0xb2abb0e8
mov byte [esp + 0x5c], 0xc6
mulss xmm1, xmm0
addss xmm1, xmm6
movss dword [esp + 0x38], xmm1
movaps xmm1, xmm5
mulss xmm1, xmm3
mulss xmm5, xmm4
mulss xmm1, xmm0
mulss xmm5, xmm0
movaps xmm0, xmmword [0x101077e0]
addss xmm1, xmm7
xorps xmm0, xmmword [0x10107370]
addss xmm5, dword [esp + 0x24]
movups xmmword [esp + 0x44], xmm0
movss dword [esp + 0x3c], xmm1
movss dword [esp + 0x40], xmm5
xor byte [esp + eax + 0x44], 0xc6
inc eax
cmp eax, 0x19
jb 0x100c3ae7
mov ecx, dword [0x1013c244]
lea edx, [esp + 0x44]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movaps xmm0, xmmword [0x10107370]
xorps xmm0, xmmword [0x101077e0]
mov dword [esp + 0x20], eax
mov eax, 0x10
mov dword [esp + 0x54], 0xf7b4a3b5
mov dword [esp + 0x58], 0xb2abb0e8
mov byte [esp + 0x5c], 0xc6
movups xmmword [esp + 0x44], xmm0
xor byte [esp + eax + 0x44], 0xc6
inc eax
cmp eax, 0x19
jb 0x100c3b35
cmp byte [ebx + 0x1d], 0
movss xmm0, dword [0x10122684]
movss dword [esp + 0x2c], xmm0
jne 0x100c3b62
movzx edx, word [0x1012257a]
mov eax, dword [0x10122578]
jmp 0x100c3b6e
movzx edx, word [0x1012260e]
mov eax, dword [0x1012260c]
mov ecx, eax
movzx edi, dl
shr ecx, 8
movzx eax, al
movzx esi, cl
mov ecx, dword [0x1013c298]
push 1
mov dword [esp + 0x2c], eax
call dword [0x1013c38c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100c3d6d
mov ecx, dword [0x1013c268]
mov edx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0xc8], ecx
test edx, edx
js 0x100c3d6d
mov ecx, dword [0x1013c244]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
test edx, edx
je 0x100c3d14
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edx
mov dword [eax + 0x30], 0
mov dword [eax + 0x150], ecx
mov dword [eax + 0x154], 0xffffffff
mov dword [eax + 0x158], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xf4], 0
mov ecx, dword [0x1013c244]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov edx, dword [esp + 0x18]
movss xmm1, dword [esp + 0x2c]
movss xmm2, dword [esp + 0x3c]
movss xmm3, dword [esp + 0x30]
mov dword [edx + 0x15c], eax
mov eax, dword [0x1013c268]
movss xmm4, dword [esp + 0x34]
movss xmm5, dword [esp + 0x24]
movss xmm0, dword [eax + 0x10]
mulss xmm0, dword [0x10106d68]
movss dword [edx + 0xc4], xmm0
movaps xmm0, xmm1
mov eax, dword [0x1013c268]
addss xmm0, dword [eax + 0x10]
mov dword [edx + 0xd8], 0
mov dword [edx + 0x34], 0
movss dword [edx + 0xdc], xmm1
movss xmm1, dword [esp + 0x38]
movss dword [edx + 0xc8], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [edx + 0x48], xmm1
subss xmm1, xmm3
movss dword [edx + 0x4c], xmm2
subss xmm2, xmm4
movss dword [edx + 0x50], xmm0
subss xmm0, xmm5
movss dword [edx + 0x3c], xmm3
movss dword [edx + 0x40], xmm4
movss dword [edx + 0x44], xmm5
movss dword [edx + 0xb4], xmm1
movss dword [edx + 0xb8], xmm2
movss dword [edx + 0xbc], xmm0
mov dword [edx + 0xcc], 0x40000000
mov dword [edx + 0xd0], 0x40000000
mov dword [edx + 0xd4], 0
mov dword [edx + 0xec], 0x437f0000
mov dword [edx + 0xf0], 0x3f000000
mov dword [edx + 0xfc], 2
jmp 0x100c3d18
mov edx, dword [esp + 0x18]
movd xmm0, dword [esp + 0x28]
cvtdq2ps xmm0, xmm0
mov dword [edx + 0xf8], 0
mov dword [edx + 0xf4], 0
push edx
movss dword [edx + 0xe0], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [edx + 0xe4], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [edx + 0xe8], xmm0
mov ecx, dword [0x1013c298]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov byte [ebx + 0x1c], 1
mov ecx, dword [esp + 0x10]
movss xmm2, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
test ecx, ecx
jne 0x100c3914
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret