Function at 0x100c7880
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 0x100e4bae
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1d8
mov eax, dword [0x100f5008]
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 - 0x13c], edx
mov edi, ecx
mov dword [ebp - 0x10c], edi
mov eax, dword [0x1012950c]
mov dword [ebp - 0x110], 0
test al, 1
jne 0x100c791c
or eax, 1
mov dword [0x1012950c], eax
mov eax, dword [0x10123538]
mov dword [0x101294e0], eax
mov dword [0x101294e4], 0
mov dword [0x101294e8], 0
mov dword [0x101294ec], 0
mov dword [0x101294f0], 0
push 0x30
xorps xmm0, xmm0
mov dword [ebp - 0x128], 4
lea eax, [ebp - 0x8c]
movss dword [ebp - 0x118], xmm0
push 0
push eax
movss dword [ebp - 0x138], xmm0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x90], 0
xorps xmm0, xmm0
lea eax, [ebp - 0xe4]
movups xmmword [ebp - 0xb0], xmm0
push 0x30
push 0
push eax
movups xmmword [ebp - 0xa0], xmm0
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi]
xorps xmm0, xmm0
mov eax, dword [0x10123524]
add esp, 0xc
movups xmmword [ebp - 0x108], xmm0
mov dword [ebp - 0xe8], 0
movups xmmword [ebp - 0xf8], xmm0
mov al, byte [ecx + eax]
test al, al
je 0x100c7a22
movss xmm4, dword [0x100f5030]
movss xmm5, dword [0x100f5034]
movss xmm6, dword [0x100f5038]
mov eax, dword [0x100f5380]
mov ecx, dword [0x100f5388]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x124], ecx
movss dword [ebp - 0x134], xmm4
movss dword [ebp - 0x130], xmm5
movss dword [ebp - 0x12c], xmm6
jmp 0x100c7c52
mov eax, dword [0x10123670]
add eax, 0xffffff9f
xor eax, 0x920a4914
mov eax, dword [eax + ecx]
mov ecx, dword [0x10123350]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
mov dword [ebp - 0x144], eax
test eax, eax
je 0x100c855d
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6f8]
mov ecx, eax
call edx
mov dword [ebp - 0x124], eax
test eax, eax
je 0x100c855d
mov esi, dword [edi]
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov ecx, dword [esi]
push eax
mov edx, dword [ecx + 0x28c]
mov ecx, esi
call edx
cmp dword [esi + 0x39e1], 0
je 0x100c7c18
mov eax, dword [0x10123528]
mov edi, dword [esi + eax]
test edi, edi
je 0x100c7c12
mov ecx, dword [edi + 0x60]
test ecx, ecx
je 0x100c7c12
cmp byte [edi + 0x109], 0
jne 0x100c7b19
mov eax, dword [0x101235ec]
add eax, 0xffffffc0
xor eax, 0x920a48f2
movss xmm0, dword [eax + ecx]
ucomiss xmm0, dword [ebp - 0x118]
lahf
test ah, 0x44
jp 0x100c7b19
mov eax, dword [0x10123674]
add eax, 0xffffff9e
xor eax, 0x920a4915
mov eax, dword [eax + ecx]
mov ecx, dword [0x10123350]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
test eax, eax
jne 0x100c7c12
mov esi, dword [edi + 0x60]
mov ecx, esi
mov eax, dword [0x10123548]
push str.head_0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov ecx, esi
call dword [0x1012354c]
movss xmm2, dword [ebp - 0x24]
addss xmm2, dword [0x100e9be8]
movss xmm3, dword [ebp - 0x14c]
comiss xmm3, xmm2
movss dword [ebp - 0x24], xmm2
jbe 0x100c7c12
movss xmm4, dword [ebp - 0x118]
movaps xmm0, xmm3
subss xmm0, xmm2
subss xmm0, dword [0x100e9c40]
mulss xmm0, dword [0x100e9b20]
comiss xmm0, xmm4
jb 0x100c7be0
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 xmm3, dword [ebp - 0x14c]
add esp, 8
movss xmm2, dword [ebp - 0x24]
fstp dword [ebp - 0x140]
movss xmm4, dword [ebp - 0x140]
movaps xmm0, xmm4
subss xmm2, xmm3
mulss xmm0, xmm4
movaps xmm1, xmm0
addss xmm0, xmm0
mulss xmm1, dword [0x100e9c20]
mulss xmm0, xmm4
subss xmm1, xmm0
mulss xmm1, xmm2
addss xmm1, xmm3
movss dword [ebp - 0x14c], xmm1
mov edi, dword [ebp - 0x10c]
movq xmm0, qword [ebp - 0x154]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x124]
movq qword [ebp - 0x134], xmm0
movss xmm5, dword [ebp - 0x130]
movss xmm4, dword [ebp - 0x134]
mov dword [ebp - 0x12c], eax
movss xmm6, dword [ebp - 0x12c]
movd xmm0, dword [ecx + 0xec]
lea esi, [ebp - 0x184]
movss xmm1, dword [ecx + 0xf8]
lea eax, [ebp - 0x188]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x188], 0
movss xmm2, dword [edi + 8]
movss dword [ebp - 0x114], xmm0
subss xmm2, xmm4
movss xmm0, dword [0x100e9c3c]
divss xmm0, xmm1
movss xmm3, dword [edi + 0xc]
comiss xmm0, dword [ebp - 0x118]
movss xmm7, dword [edi + 0x10]
subss xmm3, xmm5
movss dword [ebp - 0x184], xmm0
subss xmm7, xmm6
movss dword [ebp - 0x140], xmm1
cmovbe esi, eax
movaps xmm1, xmm2
mulss xmm1, xmm2
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm7
addss xmm0, xmm1
call fcn.1001da00
addss xmm0, dword [0x100e9ab8]
mov eax, dword [edi]
mov dword [0x101294e4], eax
mov dword [0x101294f0], 0
divss xmm2, xmm0
divss xmm3, xmm0
divss xmm7, xmm0
movss xmm0, dword [ebp - 0x114]
comiss xmm0, dword [ebp - 0x118]
movss dword [ebp - 0x20], xmm2
movss dword [ebp - 0x1c], xmm3
movss dword [ebp - 0x18], xmm7
jbe 0x100c855d
nop
movss xmm0, dword [ecx + 0x104]
subss xmm0, dword [ebp - 0x138]
mov dword [ebp - 0x1c4], 0
mov byte [ebp - 0x19b], 1
mulss xmm2, xmm0
mulss xmm3, xmm0
mulss xmm7, xmm0
addss xmm2, xmm4
addss xmm3, xmm5
movss dword [ebp - 0x120], xmm0
addss xmm7, xmm6
movss dword [ebp - 0x148], xmm2
subss xmm2, xmm4
movaps xmm0, xmm3
movss dword [ebp - 0x4c], xmm3
subss xmm0, xmm5
movaps xmm1, xmm7
movss dword [ebp - 0x50], xmm7
movss dword [ebp - 0x1d0], xmm2
subss xmm1, xmm6
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 - 0x118]
lahf
test ah, 0x44
jp 0x100c7dd5
mov byte [ebp - 0x19b], 0
mov ecx, dword [0x10123368]
lea edx, [ebp - 0xb0]
push edx
mov dword [ebp - 0x1a0], 0
lea edx, [ebp - 0x1e0]
mov byte [ebp - 0x19c], 1
movss dword [ebp - 0x1e0], xmm4
movss dword [ebp - 0x1dc], xmm5
movss dword [ebp - 0x1d8], xmm6
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 0x101294e0
push 0x4600400b
push edx
mov eax, dword [eax + 0x14]
call eax
mov eax, dword [edi + 4]
test eax, eax
je 0x100c7ed4
movss xmm1, dword [0x100e9ca8]
lea edx, [ebp - 0x38]
movss xmm0, dword [ebp - 0x20]
mulss xmm0, xmm1
push ecx
push eax
lea eax, [ebp - 0xb0]
addss xmm0, dword [ebp - 0x148]
push eax
push ecx
lea ecx, [ebp - 0x134]
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0x4c]
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [ebp - 0x18]
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0x50]
movss dword [ebp - 0x30], xmm0
call fcn.100c7470
add esp, 0x10
jmp 0x100c80f8
movss xmm3, dword [0x100e9ca8]
lea eax, [ebp - 0xb0]
movss xmm1, dword [ebp - 0x1c]
movss xmm2, dword [ebp - 0x20]
movss xmm0, dword [ebp - 0x18]
mulss xmm1, xmm3
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x2c]
mulss xmm2, xmm3
mov dword [ebp - 0x3c], 0xc2700000
addss xmm1, dword [ebp - 0x4c]
mulss xmm0, xmm3
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x134]
addss xmm2, dword [ebp - 0x148]
mov dword [ebp - 0x54], 0x101294e0
addss xmm0, dword [ebp - 0x50]
mov dword [ebp - 0x50], eax
mov eax, dword [0x10129380]
movss dword [ebp - 0x2c], xmm2
movss dword [ebp - 0x28], xmm1
movss dword [ebp - 0x24], xmm0
test al, 1
jne 0x100c80d2
or eax, 1
mov dword [0x10129380], eax
mov dword [ebp - 4], 0
mov eax, 0x10
movaps xmm0, xmmword [0x100ea3d0]
pxor xmm0, xmmword [0x100ea1c0]
mov dword [ebp - 0x170], 0x8c989d8c
mov dword [ebp - 0x16c], 0x998ced94
mov dword [ebp - 0x168], 0x9b9f8c9a
mov byte [ebp - 0x164], 0xac
movups xmmword [ebp - 0x180], xmm0
nop word [eax + eax]
xor byte [ebp + eax - 0x180], 0xac
inc eax
cmp eax, 0x1d
jb 0x100c7fa0
xorps xmm0, xmm0
mov dword [ebp - 0x150], 0
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x14c], 0
movups xmmword [ebp - 0x160], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c7fd5
sub ecx, edx
lea eax, [ebp - 0x180]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.10026020
mov byte [ebp - 4], 1
mov eax, dword [0x10123304]
test eax, eax
je 0x100c8003
mov edi, dword [eax + 0x50]
jmp 0x100c8005
xor edi, edi
mov eax, dword [0x101232fc]
mov ecx, dword [ebp - 0x110]
test eax, eax
je 0x100c801c
mov edx, dword [eax + 0x18]
or ecx, 4
jmp 0x100c8021
or ecx, 8
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x110], ecx
and ecx, 0xfffffff7
test al, 8
cmove ecx, eax
mov dword [ebp - 0x110], ecx
and dword [ebp - 0x110], 0xfffffffb
test cl, 4
mov eax, dword [ebp - 0x110]
cmove eax, ecx
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x160]
push eax
push edx
mov edx, edi
call fcn.1001dc50
mov eax, dword [ebp - 0x18c]
add esp, 8
test eax, eax
je 0x100c8082
mov ecx, dword [eax + 1]
test ecx, ecx
jne 0x100c807d
xor eax, eax
jmp 0x100c8082
add eax, 5
add eax, ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14c]
mov dword [0x10129384], eax
cmp ecx, 0x10
jb 0x100c80c5
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100c80bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100c84f3
push ecx
push edx
call fcn.100d9f61
add esp, 8
mov edi, dword [ebp - 0x10c]
mov dword [ebp - 4], 0xffffffff
cmp dword [0x10129384], 0
je 0x100c80f8
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
push dword [ebp - 0x3c]
push dword [ebp - 0x58]
push dword [ebp - 0x54]
push 0x4600400b
call dword [0x10129384]
add esp, 0x10
movss xmm1, dword [ebp - 0x84]
ucomiss xmm1, dword [0x100e9bc4]
lahf
test ah, 0x44
jnp 0x100c855d
mulss xmm1, dword [ebp - 0x120]
mov eax, dword [ebp - 0x124]
addss xmm1, dword [ebp - 0x138]
movss xmm0, dword [eax + 0x108]
movss dword [ebp - 0x120], xmm1
mulss xmm1, dword [0x100e9ac8]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_powf
mulss xmm0, dword [ebp - 0x114]
mov ecx, dword [edi + 4]
movss dword [ebp - 0x114], xmm0
test ecx, ecx
je 0x100c81f4
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x100c8251
cmp eax, ecx
jne 0x100c8251
mov edx, dword [ebp - 0x6c]
cmp edx, 1
jl 0x100c817f
cmp edx, 7
jle 0x100c8188
cmp edx, 0xa
jne 0x100c8251
mov eax, dword [0x10123688]
mov edi, 4
mov esi, dword [ebp - 0x144]
add eax, 0xffffff99
xor eax, 0x920a491a
movaps xmm1, xmm0
cmp dword [eax + esi], 0x1f
mov eax, dword [ebp - 0x124]
cmove edx, edi
movss xmm2, dword [eax + 0xf0]
call fcn.100c6a40
mov esi, dword [ebp - 0x13c]
cmp dword [ebp - 0x128], edi
mov ecx, dword [ebp - 0x10c]
setne al
mov byte [esi + 0xc], al
mov dword [esi + 8], edx
movss dword [esi + 4], xmm0
mov eax, dword [ecx + 4]
mov dword [esi], eax
jne 0x100c84f9
comiss xmm0, dword [ecx + 0x14]
setae al
jmp 0x100c855f
mov edi, dword [ebp - 0x128]
cmp edi, 4
mov ecx, dword [ebp - 0x13c]
setne al
mov byte [ecx + 0xc], al
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x100c8240
mov eax, dword [ecx]
mov eax, dword [eax + 0x260]
call eax
test al, al
je 0x100c8238
mov edx, dword [ebp - 0x6c]
cmp edx, 1
jl 0x100c822f
cmp edx, 7
jle 0x100c8502
cmp edx, 0xa
je 0x100c8502
movss xmm0, dword [ebp - 0x114]
mov eax, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x10c]
movss dword [eax + 4], xmm0
cmp byte [edi + 0x1c], 0
je 0x100c855d
mov ecx, dword [0x1012338c]
movsx edx, word [ebp - 0x70]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
movss xmm0, dword [ebp - 0x120]
mov edx, eax
comiss xmm0, dword [0x100e9d6c]
mov dword [ebp - 0x54], edx
movss xmm1, dword [ebp - 0x140]
movss xmm0, dword [ebp - 0x118]
jbe 0x100c82a0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x100c855d
movss xmm2, dword [0x100e9b0c]
comiss xmm2, dword [edx + 0x58]
ja 0x100c855d
mov al, byte [ebp - 0x6e]
mov ecx, dword [ebp - 0x80]
movzx edi, word [edx + 0x60]
mov edx, dword [ebp - 0x128]
shr al, 7
shr ecx, 3
and al, 1
and ecx, 0xffffff01
mov byte [ebp - 0x119], al
mov dword [ebp - 0x120], ecx
test edx, edx
jne 0x100c82f6
test al, al
jne 0x100c82f6
test cl, cl
jne 0x100c82f6
cmp edi, 0x47
je 0x100c82f6
cmp edi, 0x59
jne 0x100c855d
comiss xmm0, xmm1
jae 0x100c855d
test edx, edx
jle 0x100c855d
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0xa4]
call fcn.100c6ba0
add esp, 0xc
test al, al
jne 0x100c8350
mov ecx, dword [0x10123368]
lea edx, [ebp - 0x48]
push 0
push 0x600400b
push edx
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test eax, 0x600400b
je 0x100c855d
mov ecx, dword [0x1012338c]
movsx edx, word [ebp - 0xc8]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
movzx edx, word [eax + 0x60]
mov ecx, edx
cmp edi, 0x47
je 0x100c83b8
cmp edi, 0x59
je 0x100c83b8
cmp byte [ebp - 0x119], 0
jne 0x100c839e
cmp byte [ebp - 0x120], 0
jne 0x100c839e
movss xmm3, dword [eax + 0x58]
mov eax, dword [ebp - 0x54]
addss xmm3, dword [eax + 0x58]
mulss xmm3, dword [0x100e9b6c]
jmp 0x100c83a6
movss xmm3, dword [0x100e9bc4]
movss xmm7, dword [0x100e9b1c]
movss xmm0, dword [0x100e9c20]
jmp 0x100c83cb
movss xmm0, dword [0x100e9c20]
movss xmm7, dword [0x100e9af4]
movaps xmm3, xmm0
cmp edi, ecx
jne 0x100c83eb
cmp ecx, 0x55
je 0x100c83e8
cmp ecx, 0x57
je 0x100c83e8
cmp edx, 0x4c
jne 0x100c83eb
movss xmm3, dword [0x100e9c14]
jmp 0x100c83eb
movaps xmm3, xmm0
movss xmm4, dword [ebp - 0xfc]
movss xmm5, dword [ebp - 0xf8]
movaps xmm2, xmm4
subss xmm2, dword [ebp - 0xa4]
movss xmm6, dword [ebp - 0xf4]
movaps xmm0, xmm5
subss xmm0, dword [ebp - 0xa0]
movaps xmm1, xmm6
subss xmm1, dword [ebp - 0x9c]
mulss xmm2, xmm2
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.1001da00
movss xmm2, dword [0x100e9bc4]
divss xmm2, xmm3
mulss xmm7, dword [ebp - 0x114]
maxss xmm2, dword [ebp - 0x118]
movss dword [ebp - 0x138], xmm0
mulss xmm0, xmm0
movaps xmm1, xmm2
mulss xmm2, dword [0x100e9af0]
mulss xmm1, dword [0x100e9c20]
mulss xmm0, xmm2
mulss xmm1, dword [esi]
addss xmm1, xmm7
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x114]
maxss xmm1, dword [ebp - 0x118]
subss xmm0, xmm1
movss xmm1, dword [0x100e9bc4]
comiss xmm1, xmm0
movss dword [ebp - 0x114], xmm0
ja 0x100c855d
dec dword [ebp - 0x128]
movss xmm7, dword [ebp - 0x18]
movss xmm3, dword [ebp - 0x1c]
movss xmm2, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x124]
movss dword [ebp - 0x134], xmm4
movss dword [ebp - 0x130], xmm5
movss dword [ebp - 0x12c], xmm6
jmp 0x100c7d30
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
comiss xmm0, dword [ecx + 0x18]
setae al
jmp 0x100c855f
mov eax, dword [0x10123688]
mov ecx, 4
mov esi, dword [ebp - 0x144]
add eax, 0xffffff99
movss xmm1, dword [ebp - 0x114]
xor eax, 0x920a491a
cmp dword [eax + esi], 0x1f
mov eax, dword [ebp - 0x124]
cmove edx, ecx
mov ecx, dword [ebp - 0x64]
movss xmm2, dword [eax + 0xf0]
call fcn.100c6a40
mov eax, dword [ebp - 0x13c]
cmp edi, 4
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10c]
mov dword [eax + 8], edx
movss dword [eax + 4], xmm0
jmp 0x100c81e2
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.100d9ae6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret