Function at 0x100c8680
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 0x100e0e8e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1d8
mov eax, dword [0x100f2040]
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 [0x10357b58]
xor edi, edi
mov dword [ebp - 0x134], edi
test al, 1
jne 0x100c870a
or eax, 1
mov dword [0x10357b58], eax
mov eax, dword [0x103521cc]
mov dword [0x10357b44], eax
mov dword [0x10357b48], edi
mov dword [0x10357b4c], edi
mov dword [0x10357b50], edi
mov dword [0x10357b54], 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 [0x103521b8]
add esp, 0xc
movups xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xd0], edi
movups xmmword [ebp - 0xe0], xmm0
cmp byte [ecx + eax], 0
je 0x100c87e9
movss xmm5, dword [0x103124dc]
movss xmm6, dword [0x103124e0]
movss xmm7, dword [0x103124e4]
mov eax, dword [0x10312850]
mov ecx, dword [0x10312858]
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 0x100c8a1f
mov eax, dword [0x103522e4]
add eax, 0xffffffa2
xor eax, 0xd55386d
mov eax, dword [eax + ecx]
mov ecx, dword [0x1035202c]
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 0x100c92f5
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6f8]
mov ecx, eax
call edx
mov dword [ebp - 0x108], eax
test eax, eax
je 0x100c92f5
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 0x100c89d9
mov eax, dword [0x103521bc]
mov edi, dword [edi + eax]
test edi, edi
je 0x100c89d9
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x100c89d9
cmp byte [edi + 0x109], 0
movss xmm1, dword [ebp - 0xf4]
jne 0x100c88f2
mov eax, dword [0x10352270]
add eax, 0xffffffbf
xor eax, 0xd553850
movss xmm0, dword [eax + ecx]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x100c88f2
mov eax, dword [0x103522e8]
add eax, 0xffffffa1
xor eax, 0xd55386e
mov eax, dword [eax + ecx]
mov ecx, dword [0x1035202c]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
test eax, eax
jne 0x100c89d9
movss xmm1, dword [ebp - 0xf4]
mov ecx, dword [0x103522dc]
mov eax, dword [edi + 0x60]
add ecx, 0xffffffa4
xor ecx, 0xd55386b
mov eax, dword [ecx + eax]
test eax, eax
je 0x100c89d9
movss xmm3, dword [eax + 0x1ac]
movss xmm2, dword [ebp - 0x128]
cvtps2pd xmm3, xmm3
cvtps2pd xmm0, xmm2
addsd xmm3, qword [0x100e6be8]
comisd xmm0, xmm3
movsd qword [ebp - 0x148], xmm3
jbe 0x100c89d9
subsd xmm0, xmm3
movaps xmm4, xmm1
cvtpd2ps xmm0, xmm0
subss xmm0, dword [0x100e6c34]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x100e6bd0]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm1
jb 0x100c899d
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 [0x100e6c1c]
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 [0x100e6c30]
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.10028710
addss xmm0, dword [0x100e6ab8]
movss xmm1, dword [0x100e6bb0]
mov eax, dword [esi]
mov dword [0x10357b48], eax
mov dword [0x10357b54], 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 0x100c92f5
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 0x100c8b95
mov byte [ebp - 0x19b], 0
mov ecx, dword [0x10352044]
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 0x10357b44
push 0x4600400b
push edx
mov eax, dword [eax + 0x14]
call eax
movss xmm0, dword [ebp - 0x20]
movss xmm1, dword [0x100e6c84]
mov eax, dword [esi + 4]
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0x13c]
test eax, eax
je 0x100c8ca0
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.100c8270
add esp, 0x10
jmp 0x100c8ea0
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], 0x10357b44
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 [0x10357a00]
movss dword [ebp - 0x170], xmm0
test al, 1
jne 0x100c8e7a
or eax, 1
mov dword [0x10357a00], eax
mov dword [ebp - 4], 0
mov eax, 0x10
movaps xmm0, xmmword [0x100e7bd0]
xorps xmm0, xmmword [0x100e7890]
mov dword [ebp - 0x158], 0xc0d4d1c0
mov dword [ebp - 0x154], 0xd5c0a1d8
mov dword [ebp - 0x150], 0xd7d3c0d6
mov byte [ebp - 0x14c], 0xe0
movups xmmword [ebp - 0x168], xmm0
nop dword [eax + eax]
xor byte [ebp + eax - 0x168], 0xe0
inc eax
cmp eax, 0x1d
jb 0x100c8d60
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 0x100c8d95
sub ecx, edx
lea eax, [ebp - 0x168]
push ecx
push eax
lea ecx, [ebp - 0x190]
call fcn.100304c0
mov byte [ebp - 4], 1
mov eax, dword [0x10351fec]
test eax, eax
je 0x100c8dc3
mov esi, dword [eax + 0x50]
jmp 0x100c8dc5
xor esi, esi
mov eax, dword [0x10351fe4]
test eax, eax
je 0x100c8dd6
mov edx, dword [eax + 0x18]
or edi, 4
jmp 0x100c8ddb
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.10028960
mov eax, dword [ebp - 0x16c]
add esp, 8
test eax, eax
je 0x100c8e2a
mov ecx, dword [eax + 1]
test ecx, ecx
jne 0x100c8e25
xor eax, eax
jmp 0x100c8e2a
add eax, 5
add eax, ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x17c]
mov dword [0x10357a04], eax
cmp ecx, 0xf
jbe 0x100c8e6d
mov edx, dword [ebp - 0x190]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100c8e63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100c9291
push ecx
push edx
call fcn.100d7cba
add esp, 8
mov esi, dword [ebp - 0x104]
mov dword [ebp - 4], 0xffffffff
cmp dword [0x10357a04], 0
je 0x100c8ea0
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 [0x10357a04]
add esp, 0x10
movss xmm1, dword [ebp - 0x6c]
ucomiss xmm1, dword [0x100e6bb0]
lahf
test ah, 0x44
jnp 0x100c92f5
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 [0x100e6ac4]
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 0x100c8f94
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x100c8feb
cmp eax, ecx
jne 0x100c8feb
mov edx, dword [ebp - 0x54]
cmp edx, 1
jl 0x100c8f24
cmp edx, 7
jle 0x100c8f2d
cmp edx, 0xa
jne 0x100c8feb
mov eax, dword [0x103522fc]
movaps xmm1, xmm0
mov esi, dword [ebp - 0x138]
add eax, 0xffffff9c
movss xmm2, dword [edi + 0xf0]
xor eax, 0xd553873
cmp dword [eax + esi], 0x1f
mov eax, 0
cmove edx, eax
call fcn.100c7840
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 0x100c9297
comiss xmm0, dword [esi + 0x14]
setae al
jmp 0x100c92f7
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 0x100c8fe0
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x100c8fd8
mov edx, dword [ebp - 0x54]
cmp edx, 1
jl 0x100c8fcf
cmp edx, 7
jle 0x100c92a0
cmp edx, 0xa
je 0x100c92a0
movss xmm0, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x120]
movss dword [eax + 4], xmm0
cmp byte [esi + 0x1c], 0
je 0x100c92f5
mov ecx, dword [0x10352068]
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 [0x100e6d2c]
movss xmm1, dword [ebp - 0x124]
movss xmm0, dword [ebp - 0xf4]
jbe 0x100c9037
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x100c92f5
movss xmm2, dword [0x100e6b14]
comiss xmm2, dword [edi + 0x58]
ja 0x100c92f5
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 0x100c908d
test al, al
jne 0x100c908d
test cl, cl
jne 0x100c908d
cmp esi, 0x47
je 0x100c908d
cmp esi, 0x59
jne 0x100c92f5
comiss xmm0, xmm1
jae 0x100c92f5
test edx, edx
jle 0x100c92f5
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.100c79a0
add esp, 0xc
test al, al
jne 0x100c90e7
mov ecx, dword [0x10352044]
lea edx, [ebp - 0x30]
push 0
push 0x600400b
push edx
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test eax, 0x600400b
je 0x100c92f5
mov ecx, dword [0x10352068]
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 0x100c914c
cmp esi, 0x59
je 0x100c914c
cmp byte [ebp - 0xf9], 0
jne 0x100c9132
cmp byte [ebp - 0x10c], 0
jne 0x100c9132
movss xmm3, dword [eax + 0x58]
addss xmm3, dword [edi + 0x58]
mulss xmm3, dword [0x100e6b78]
jmp 0x100c913a
movss xmm3, dword [0x100e6bb0]
movss xmm4, dword [0x100e6b20]
movss xmm0, dword [0x100e6c1c]
jmp 0x100c915f
movss xmm0, dword [0x100e6c1c]
movss xmm4, dword [0x100e6b04]
movaps xmm3, xmm0
cmp esi, ecx
jne 0x100c917f
cmp ecx, 0x55
je 0x100c917c
cmp ecx, 0x57
je 0x100c917c
cmp edx, 0x4c
jne 0x100c917f
movss xmm3, dword [0x100e6bf4]
jmp 0x100c917f
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.10028710
movss xmm2, dword [0x100e6bb0]
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 [0x100e6b00]
mulss xmm1, dword [0x100e6c1c]
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 [0x100e6bb0]
comiss xmm1, xmm0
movss dword [ebp - 0xf8], xmm0
ja 0x100c92f5
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 0x100c8af0
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 0x100c92f7
mov eax, dword [0x103522fc]
mov ecx, dword [ebp - 0x138]
add eax, 0xffffff9c
movss xmm1, dword [ebp - 0xf8]
xor eax, 0xd553873
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.100c7840
mov eax, dword [ebp - 0x120]
cmp edi, 4
mov dword [eax + 8], edx
movss dword [eax + 4], xmm0
mov dword [eax], ecx
jmp 0x100c8f82
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.100d778c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret