Function at 0x100c1310
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ce40b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb8
mov eax, dword [0x100dd00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [0x10107d04]
mov dword [ebp - 0x2c], ecx
test al, 1
jne 0x100c148a
or eax, 1
mov dword [0x10107d04], eax
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x100d3590]
movaps xmm1, xmmword [0x100d2fa0]
movups xmmword [ebp - 0x6c], xmm0
mov byte [ebp - 0x4c], 0xaf
movaps xmm0, xmmword [0x100d2e00]
movups xmmword [ebp - 0x5c], xmm0
movups xmm0, xmmword [ebp + eax - 0x6c]
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0x6c], xmm0
add eax, 0x10
cmp eax, 0x20
jb 0x100c13a1
cmp eax, 0x21
jae 0x100c13cb
nop dword [eax]
xor byte [ebp + eax - 0x6c], 0xaf
inc eax
cmp eax, 0x21
jb 0x100c13c0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c13f0
sub ecx, edx
lea eax, [ebp - 0x6c]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10021400
mov byte [ebp - 4], 1
mov edx, dword [0x101025c4]
test edx, edx
je 0x100c1419
mov edx, dword [edx + 0x50]
jmp 0x100c141b
xor edx, edx
mov eax, dword [0x101025bc]
test eax, eax
je 0x100c1429
mov eax, dword [eax + 0x18]
jmp 0x100c142b
xor eax, eax
lea ecx, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10018bb0
mov eax, dword [ebp - 0x28]
add esp, 8
add eax, 0x3d
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
mov dword [0x10107d0c], eax
cmp edx, 0x10
jb 0x100c1480
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100c1476
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c1476
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100c49e0
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x10107d0c]
xorps xmm0, xmm0
movss xmm4, dword [ecx]
movss xmm5, dword [ecx + 4]
movss xmm6, dword [ecx + 8]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0x7b], 1
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
subss xmm3, xmm4
movss xmm1, dword [eax + 8]
subss xmm2, xmm5
subss xmm1, xmm6
movss dword [ebp - 0xb0], xmm3
movss dword [ebp - 0xac], xmm2
mulss xmm2, xmm2
mulss xmm3, xmm3
movss dword [ebp - 0xa8], xmm1
mulss xmm1, xmm1
addss xmm2, xmm3
addss xmm2, xmm1
ucomiss xmm2, xmm0
lahf
test ah, 0x44
jp 0x100c151c
mov byte [ebp - 0x7b], 0
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x80], 0
push ecx
push dword [ebx + 0x10]
mov byte [ebp - 0x7c], 1
lea ecx, [ebp - 0xc0]
movss dword [ebp - 0xc0], xmm4
movss dword [ebp - 0xbc], xmm5
movss dword [ebp - 0xb8], xmm6
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100c4565
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18