Function at 0x100c5670
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 0x100e038e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1d8
mov eax, dword [0x100f0040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x120], edx
mov esi, ecx
mov dword [ebp - 0x104], esi
mov eax, dword [0x10127168]
xor edi, edi
mov dword [ebp - 0x134], edi
test al, 1
jne 0x100c56fa
or eax, 1
mov dword [0x10127168], eax
mov eax, dword [0x101219dc]
mov dword [0x10127154], eax
mov dword [0x10127158], edi
mov dword [0x1012715c], edi
mov dword [0x10127160], edi
mov dword [0x10127164], edi
push 0x30
xorps xmm0, xmm0
mov dword [ebp - 0x100], 4
lea eax, [ebp - 0x74]
movss dword [ebp - 0xf4], xmm0
push 0
push eax
movss dword [ebp - 0x11c], xmm0
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x78], edi
xorps xmm0, xmm0
lea eax, [ebp - 0xcc]
movups xmmword [ebp - 0x98], xmm0
push 0x30
push 0
push eax
movups xmmword [ebp - 0x88], xmm0
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esi]
xorps xmm0, xmm0
mov eax, dword [0x101219c8]
add esp, 0xc
movups xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xd0], edi
movups xmmword [ebp - 0xe0], xmm0
cmp byte [ecx + eax], 0
je 0x100c57d9
movss xmm5, dword [0x100f00d0]
movss xmm6, dword [0x100f00d4]
movss xmm7, dword [0x100f00d8]
mov eax, dword [0x100f0444]
mov ecx, dword [0x100f044c]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x108], ecx
movss dword [ebp - 0x118], xmm5
movss dword [ebp - 0x114], xmm6
movss dword [ebp - 0x110], xmm7
jmp 0x100c5a0f
mov eax, dword [0x10121af0]
add eax, 0xffffffa3
xor eax, 0x5addf92a
mov eax, dword [eax + ecx]
mov ecx, dword [0x1012183c]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
mov dword [ebp - 0x138], eax
test eax, eax
je 0x100c62e5
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6f8]
mov ecx, eax
call edx
mov dword [ebp - 0x108], eax
test eax, eax
je 0x100c62e5
mov edi, dword [ebp - 0x104]
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov edi, dword [edi]
push eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x28c]
mov ecx, edi
call edx
cmp dword [edi + 0x39e1], 0
je 0x100c59c9
mov eax, dword [0x101219cc]
mov edi, dword [edi + eax]
test edi, edi
je 0x100c59c9
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x100c59c9
cmp byte [edi + 0x109], 0
movss xmm1, dword [ebp - 0xf4]
jne 0x100c58e2
mov eax, dword [0x10121a80]
add eax, 0xffffffbf
xor eax, 0x5addf90e
movss xmm0, dword [eax + ecx]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x100c58e2
mov eax, dword [0x10121af4]
add eax, 0xffffffa2
xor eax, 0x5addf92b
mov eax, dword [eax + ecx]
mov ecx, dword [0x1012183c]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
test eax, eax
jne 0x100c59c9
movss xmm1, dword [ebp - 0xf4]
mov ecx, dword [0x10121ae8]
mov eax, dword [edi + 0x60]
add ecx, 0xffffffa5
xor ecx, 0x5addf928
mov eax, dword [ecx + eax]
test eax, eax
je 0x100c59c9
movss xmm3, dword [eax + 0x1ac]
movss xmm2, dword [ebp - 0x128]
cvtps2pd xmm3, xmm3
cvtps2pd xmm0, xmm2
addsd xmm3, qword [0x100e5a30]
comisd xmm0, xmm3
movsd qword [ebp - 0x148], xmm3
jbe 0x100c59c9
subsd xmm0, xmm3
movaps xmm4, xmm1
cvtpd2ps xmm0, xmm0
subss xmm0, dword [0x100e5a7c]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x100e5a18]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm1
jb 0x100c598d
sub esp, 8
mov dword [esp + 4], 0x3f800000
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_fminf]
movss xmm2, dword [ebp - 0x128]
add esp, 8
movsd xmm3, qword [ebp - 0x148]
fstp dword [ebp - 0x124]
movss xmm4, dword [ebp - 0x124]
movaps xmm1, xmm4
mulss xmm1, xmm4
cvtps2pd xmm2, xmm2
movaps xmm0, xmm1
addss xmm1, xmm1
mulss xmm0, dword [0x100e5a64]
subsd xmm3, xmm2
mulss xmm1, xmm4
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm3
addsd xmm0, xmm2
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x128], xmm0
movq xmm0, qword [ebp - 0x130]
mov eax, dword [ebp - 0x128]
mov edi, dword [ebp - 0x134]
mov esi, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x108]
movq qword [ebp - 0x118], xmm0
movss xmm6, dword [ebp - 0x114]
movss xmm5, dword [ebp - 0x118]
mov dword [ebp - 0x110], eax
movss xmm7, dword [ebp - 0x110]
movd xmm0, dword [ecx + 0xec]
movss xmm1, dword [0x100e5a78]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [esi + 8]
movss dword [ebp - 0xf8], xmm0
subss xmm2, xmm5
movss xmm0, dword [ecx + 0xf8]
divss xmm1, xmm0
movss xmm3, dword [esi + 0xc]
maxss xmm1, dword [ebp - 0xf4]
movss xmm4, dword [esi + 0x10]
subss xmm3, xmm6
movss dword [ebp - 0x124], xmm0
subss xmm4, xmm7
movaps xmm0, xmm2
mulss xmm0, xmm2
movss dword [ebp - 0x144], xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm4
addss xmm0, xmm1
call fcn.10027f10
addss xmm0, dword [0x100e5920]
movss xmm1, dword [0x100e59f8]
mov eax, dword [esi]
mov dword [0x10127158], eax
mov dword [0x10127164], 0
divss xmm1, xmm0
movss xmm0, dword [ebp - 0xf8]
comiss xmm0, dword [ebp - 0xf4]
mulss xmm2, xmm1
mulss xmm3, xmm1
mulss xmm4, xmm1
movss dword [ebp - 0x20], xmm2
movss dword [ebp - 0x1c], xmm3
movss dword [ebp - 0x18], xmm4
jbe 0x100c62e5
movss xmm0, dword [ecx + 0x104]
subss xmm0, dword [ebp - 0x11c]
mov dword [ebp - 0x1c4], 0
mov byte [ebp - 0x19b], 1
mulss xmm2, xmm0
mulss xmm3, xmm0
mulss xmm4, xmm0
addss xmm2, xmm5
addss xmm3, xmm6
movss dword [ebp - 0x10c], xmm0
addss xmm4, xmm7
movss dword [ebp - 0x13c], xmm2
subss xmm2, xmm5
movaps xmm0, xmm3
movss dword [ebp - 0x34], xmm3
subss xmm0, xmm6
movaps xmm1, xmm4
movss dword [ebp - 0x38], xmm4
movss dword [ebp - 0x1d0], xmm2
subss xmm1, xmm7
mulss xmm2, xmm2
movss dword [ebp - 0x1cc], xmm0
mulss xmm0, xmm0
movss dword [ebp - 0x1c8], xmm1
mulss xmm1, xmm1
addss xmm2, xmm0
addss xmm2, xmm1
ucomiss xmm2, dword [ebp - 0xf4]
lahf
test ah, 0x44
jp 0x100c5b85
mov byte [ebp - 0x19b], 0
mov ecx, dword [0x10121854]
lea edx, [ebp - 0x98]
push edx
mov dword [ebp - 0x1a0], 0
lea edx, [ebp - 0x1e0]
mov byte [ebp - 0x19c], 1
movss dword [ebp - 0x1e0], xmm5
movss dword [ebp - 0x1dc], xmm6
movss dword [ebp - 0x1d8], xmm7
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1b0], 0
mov eax, dword [ecx]
push 0x10127154
push 0x4600400b
push edx
mov eax, dword [eax + 0x14]
call eax
movss xmm0, dword [ebp - 0x20]
movss xmm1, dword [0x100e5acc]
mov eax, dword [esi + 4]
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0x13c]
test eax, eax
je 0x100c5c90
movss dword [ebp - 0x130], xmm0
lea edx, [ebp - 0x130]
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, xmm1
push ecx
push eax
lea eax, [ebp - 0x98]
addss xmm0, dword [ebp - 0x34]
push eax
push ecx
lea ecx, [ebp - 0x118]
movss dword [ebp - 0x12c], xmm0
movss xmm0, dword [ebp - 0x18]
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0x38]
movss dword [ebp - 0x128], xmm0
call fcn.100c5260
add esp, 0x10
jmp 0x100c5e90
movss dword [ebp - 0x178], xmm0
lea eax, [ebp - 0x98]
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, xmm1
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x24], 0xc2700000
mov dword [ebp - 0x40], 0x10127154
addss xmm0, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x118]
movss dword [ebp - 0x174], xmm0
movss xmm0, dword [ebp - 0x18]
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov eax, dword [0x10127064]
movss dword [ebp - 0x170], xmm0
test al, 1
jne 0x100c5e6a
or eax, 1
mov dword [0x10127064], eax
mov dword [ebp - 4], 0
mov eax, 0x10
movaps xmm0, xmmword [0x100e6520]
xorps xmm0, xmmword [0x100e6650]
mov dword [ebp - 0x158], 0xf6e2e7f6
mov dword [ebp - 0x154], 0xe3f697ee
mov dword [ebp - 0x150], 0xe1e5f6e0
mov byte [ebp - 0x14c], 0xd6
movups xmmword [ebp - 0x168], xmm0
nop dword [eax + eax]
xor byte [ebp + eax - 0x168], 0xd6
inc eax
cmp eax, 0x1d
jb 0x100c5d50
xorps xmm0, xmm0
mov dword [ebp - 0x180], 0
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x17c], 0
movups xmmword [ebp - 0x190], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c5d85
sub ecx, edx
lea eax, [ebp - 0x168]
push ecx
push eax
lea ecx, [ebp - 0x190]
call fcn.1002ebb0
mov byte [ebp - 4], 1
mov eax, dword [0x101217fc]
test eax, eax
je 0x100c5db3
mov esi, dword [eax + 0x50]
jmp 0x100c5db5
xor esi, esi
mov eax, dword [0x101217f4]
test eax, eax
je 0x100c5dc6
mov edx, dword [eax + 0x18]
or edi, 4
jmp 0x100c5dcb
or edi, 8
xor edx, edx
mov eax, edi
mov ecx, edi
and ecx, 0xfffffff7
test al, 8
lea eax, [ebp - 0x190]
cmove ecx, edi
mov edi, ecx
and edi, 0xfffffffb
test cl, 4
push eax
cmove edi, ecx
lea ecx, [ebp - 0x16c]
push edx
mov edx, esi
mov dword [ebp - 0x134], edi
call fcn.10028160
mov eax, dword [ebp - 0x16c]
add esp, 8
test eax, eax
je 0x100c5e1a
mov ecx, dword [eax + 1]
test ecx, ecx
jne 0x100c5e15
xor eax, eax
jmp 0x100c5e1a
add eax, 5
add eax, ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x17c]
mov dword [0x10127068], eax
cmp ecx, 0xf
jbe 0x100c5e5d
mov edx, dword [ebp - 0x190]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100c5e53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100c6281
push ecx
push edx
call fcn.100d7387
add esp, 8
mov esi, dword [ebp - 0x104]
mov dword [ebp - 4], 0xffffffff
cmp dword [0x10127068], 0
je 0x100c5e90
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
push dword [ebp - 0x24]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0x4600400b
call dword [0x10127068]
add esp, 0x10
movss xmm1, dword [ebp - 0x6c]
ucomiss xmm1, dword [0x100e59f8]
lahf
test ah, 0x44
jnp 0x100c62e5
mulss xmm1, dword [ebp - 0x10c]
mov edi, dword [ebp - 0x108]
addss xmm1, dword [ebp - 0x11c]
movss xmm0, dword [edi + 0x108]
movss dword [ebp - 0x10c], xmm1
mulss xmm1, dword [0x100e592c]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_powf
mulss xmm0, dword [ebp - 0xf8]
mov ecx, dword [esi + 4]
movss dword [ebp - 0xf8], xmm0
test ecx, ecx
je 0x100c5f84
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x100c5fdb
cmp eax, ecx
jne 0x100c5fdb
mov edx, dword [ebp - 0x54]
cmp edx, 1
jl 0x100c5f14
cmp edx, 7
jle 0x100c5f1d
cmp edx, 0xa
jne 0x100c5fdb
mov eax, dword [0x10121b08]
movaps xmm1, xmm0
mov esi, dword [ebp - 0x138]
add eax, 0xffffff9d
movss xmm2, dword [edi + 0xf0]
xor eax, 0x5addf930
cmp dword [eax + esi], 0x1f
mov eax, 0
cmove edx, eax
call fcn.100c4770
mov ecx, dword [ebp - 0x120]
cmp dword [ebp - 0x100], 4
mov esi, dword [ebp - 0x104]
setne al
mov byte [ecx + 0xc], al
mov dword [ecx + 8], edx
movss dword [ecx + 4], xmm0
mov eax, dword [esi + 4]
mov dword [ecx], eax
jne 0x100c6287
comiss xmm0, dword [esi + 0x14]
setae al
jmp 0x100c62e7
mov edi, dword [ebp - 0x100]
cmp edi, 4
mov ecx, dword [ebp - 0x120]
setne al
mov byte [ecx + 0xc], al
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x100c5fd0
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x100c5fc8
mov edx, dword [ebp - 0x54]
cmp edx, 1
jl 0x100c5fbf
cmp edx, 7
jle 0x100c6290
cmp edx, 0xa
je 0x100c6290
movss xmm0, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x120]
movss dword [eax + 4], xmm0
cmp byte [esi + 0x1c], 0
je 0x100c62e5
mov ecx, dword [0x10121878]
movsx edx, word [ebp - 0x58]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
movss xmm0, dword [ebp - 0x10c]
mov edi, eax
comiss xmm0, dword [0x100e5b70]
movss xmm1, dword [ebp - 0x124]
movss xmm0, dword [ebp - 0xf4]
jbe 0x100c6027
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x100c62e5
movss xmm2, dword [0x100e5960]
comiss xmm2, dword [edi + 0x58]
ja 0x100c62e5
mov al, byte [ebp - 0x56]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x100]
movzx esi, word [edi + 0x60]
shr al, 7
shr ecx, 3
and al, 1
and ecx, 0xffffff01
mov byte [ebp - 0xf9], al
mov dword [ebp - 0x10c], ecx
test edx, edx
jne 0x100c607d
test al, al
jne 0x100c607d
test cl, cl
jne 0x100c607d
cmp esi, 0x47
je 0x100c607d
cmp esi, 0x59
jne 0x100c62e5
comiss xmm0, xmm1
jae 0x100c62e5
test edx, edx
jle 0x100c62e5
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x8c]
call fcn.100c48d0
add esp, 0xc
test al, al
jne 0x100c60d7
mov ecx, dword [0x10121854]
lea edx, [ebp - 0x30]
push 0
push 0x600400b
push edx
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test eax, 0x600400b
je 0x100c62e5
mov ecx, dword [0x10121878]
movsx edx, word [ebp - 0xb0]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
movzx edx, word [eax + 0x60]
mov ecx, edx
cmp esi, 0x47
je 0x100c613c
cmp esi, 0x59
je 0x100c613c
cmp byte [ebp - 0xf9], 0
jne 0x100c6122
cmp byte [ebp - 0x10c], 0
jne 0x100c6122
movss xmm3, dword [eax + 0x58]
addss xmm3, dword [edi + 0x58]
mulss xmm3, dword [0x100e59c0]
jmp 0x100c612a
movss xmm3, dword [0x100e59f8]
movss xmm4, dword [0x100e596c]
movss xmm0, dword [0x100e5a64]
jmp 0x100c614f
movss xmm0, dword [0x100e5a64]
movss xmm4, dword [0x100e5954]
movaps xmm3, xmm0
cmp esi, ecx
jne 0x100c616f
cmp ecx, 0x55
je 0x100c616c
cmp ecx, 0x57
je 0x100c616c
cmp edx, 0x4c
jne 0x100c616f
movss xmm3, dword [0x100e5a3c]
jmp 0x100c616f
movaps xmm3, xmm0
movss xmm5, dword [ebp - 0xe4]
movss xmm6, dword [ebp - 0xe0]
movaps xmm2, xmm5
subss xmm2, dword [ebp - 0x8c]
movss xmm7, dword [ebp - 0xdc]
movaps xmm0, xmm6
subss xmm0, dword [ebp - 0x88]
movaps xmm1, xmm7
subss xmm1, dword [ebp - 0x84]
mulss xmm2, xmm2
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.10027f10
movss xmm2, dword [0x100e59f8]
divss xmm2, xmm3
mulss xmm4, dword [ebp - 0xf8]
maxss xmm2, dword [ebp - 0xf4]
movss dword [ebp - 0x11c], xmm0
mulss xmm0, xmm0
movaps xmm1, xmm2
mulss xmm2, dword [0x100e5950]
mulss xmm1, dword [0x100e5a64]
mulss xmm0, xmm2
mulss xmm1, dword [ebp - 0x144]
addss xmm1, xmm4
addss xmm1, xmm0
movss xmm0, dword [ebp - 0xf8]
maxss xmm1, dword [ebp - 0xf4]
subss xmm0, xmm1
movss xmm1, dword [0x100e59f8]
comiss xmm1, xmm0
movss dword [ebp - 0xf8], xmm0
ja 0x100c62e5
dec dword [ebp - 0x100]
movss xmm4, dword [ebp - 0x18]
movss xmm3, dword [ebp - 0x1c]
movss xmm2, dword [ebp - 0x20]
mov edi, dword [ebp - 0x134]
mov esi, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x108]
movss dword [ebp - 0x118], xmm5
movss dword [ebp - 0x114], xmm6
movss dword [ebp - 0x110], xmm7
jmp 0x100c5ae0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
comiss xmm0, dword [esi + 0x18]
setae al
jmp 0x100c62e7
mov eax, dword [0x10121b08]
mov ecx, dword [ebp - 0x138]
add eax, 0xffffff9d
movss xmm1, dword [ebp - 0xf8]
xor eax, 0x5addf930
cmp dword [eax + ecx], 0x1f
mov eax, 0
mov ecx, dword [ebp - 0x4c]
cmove edx, eax
mov eax, dword [ebp - 0x108]
movss xmm2, dword [eax + 0xf0]
call fcn.100c4770
mov eax, dword [ebp - 0x120]
cmp edi, 4
mov dword [eax + 8], edx
movss dword [eax + 4], xmm0
mov dword [eax], ecx
jmp 0x100c5f72
xor al, al
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.100d6f0c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret