Function at 0x1001ec90
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012bc0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x1016c008]
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
cmp dword [0x101dff44], 0
jg 0x1001f007
mov edx, dword [0x101df848]
mov eax, dword [0x101f4838]
mov edi, dword [eax + edx]
test edi, edi
je 0x1001f007
mov eax, dword [0x101f46f4]
lea edx, [esi + 0x7b8]
mov word [ebp - 0x18], 0x6b04
movss xmm0, dword [eax + 0x10]
subss xmm0, dword [esi + 0x7e8]
movss dword [esi + 0x7ec], xmm0
mov eax, dword [0x101f46f4]
movaps xmm0, xmmword [0x10163740]
pxor xmm0, xmmword [0x10162de0]
movups xmmword [ebp - 0x28], xmm0
mov eax, dword [eax + 0x10]
mov dword [esi + 0x7e8], eax
mov ecx, dword [0x101dff90]
mov eax, dword [ecx + 0xc]
mov dword [edx], eax
lea eax, [edx + 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 4], eax
add edx, 8
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x50], edx
mov dword [edx], eax
mov eax, 0x10
xor byte [ebp + eax - 0x28], 0x6b
inc eax
cmp eax, 0x12
jb 0x1001ed61
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ed90
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10011990
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x101e9590
call fcn.100107b0
mov al, byte [eax]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 0x41], al
cmp edx, 0x10
jb 0x1001ee00
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001edf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001edf3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10128808
mov al, byte [ebp - 0x41]
add esp, 8
test al, al
je 0x1001ee7a
cmp byte [edi + 0x109], 0
lea edx, [esi + 0x7b8]
je 0x1001ee33
cmp byte [edi + 0x328], 0
jne 0x1001ee33
movss xmm0, dword [edi + 0xa4]
comiss xmm0, dword [0x101625e4]
jbe 0x1001ee33
mov dword [edx], 0xc1400000
movss xmm0, dword [edx]
lea eax, [ebp - 0x48]
comiss xmm0, dword [0x101628f8]
mov dword [ebp - 0x48], 0x42b40000
lea ecx, [esi + 0x7b8]
cmovbe eax, edx
movss xmm0, dword [eax]
maxss xmm0, dword [0x10162a38]
movss dword [esi + 0x7b8], xmm0
call fcn.100b7ac0
mov ecx, dword [ebp - 0x4c]
call fcn.100b7ac0
mov ecx, dword [ebp - 0x50]
call fcn.100b7ac0
mov ecx, dword [0x101f46ac]
lea edx, [esi + 0x7b8]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
mov edx, dword [0x101f5c70]
mov eax, dword [0x101df848]
add edx, 0xffffffbd
mov ecx, dword [esi + 0x7dc]
xor edx, 0xea42ce0f
mov dword [edx + eax], ecx
mov eax, dword [0x101f46f4]
mov ecx, dword [edi + 0x70]
cmp ecx, dword [eax + 4]
jne 0x1001eebe
lea eax, [ecx - 1]
mov dword [edi + 0x70], eax
mov eax, dword [0x101fc5c8]
test eax, eax
je 0x1001eecf
mov ecx, dword [0x101df848]
call eax
mov eax, dword [0x101f5cc4]
add eax, 0xffffffa8
xor eax, 0xea42ce24
add eax, dword [0x101df848]
movups xmm0, xmmword [eax]
movups xmmword [0x101df874], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [0x101df884], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [0x101df894], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [0x101df8a4], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [0x101df8b4], xmm0
movups xmm0, xmmword [eax + 0x50]
movups xmmword [0x101df8c4], xmm0
movss xmm0, dword [edi + 0x80]
movss dword [0x101df870], xmm0
cmp byte [esi + 0x7f0], 0
mov al, byte [edi + 0x108]
jne 0x1001ef60
test al, al
je 0x1001ef60
mov eax, dword [esi + 0x7bc]
mov dword [esi + 0x7dc], eax
mov eax, dword [esi + 0x7e8]
mov dword [esi + 0x7e0], eax
jmp 0x1001efc0
movss xmm0, dword [edi + 0xec]
comiss xmm0, dword [0x10162654]
jbe 0x1001ef93
test al, al
je 0x1001ef81
mov eax, dword [esi + 0x7bc]
mov dword [esi + 0x7dc], eax
movss xmm0, dword [esi + 0x7e8]
addss xmm0, dword [0x10162680]
jmp 0x1001efb8
movss xmm0, dword [esi + 0x7e8]
comiss xmm0, dword [esi + 0x7e0]
jbe 0x1001efc0
mov eax, dword [esi + 0x7bc]
addss xmm0, dword [0x10162734]
mov dword [esi + 0x7dc], eax
movss dword [esi + 0x7e0], xmm0
mov ecx, dword [0x101f5c50]
add ecx, 0xffffffc5
xor ecx, 0xea42ce07
add ecx, dword [0x101df848]
mov eax, dword [ecx]
mov dword [esi + 0x7c4], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x7c8], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x7cc], eax
mov eax, dword [edi + 0xec]
mov dword [esi + 0x7e4], eax
mov al, byte [edi + 0x108]
mov byte [esi + 0x7f0], 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.1012838d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret