Function at 0x1004ec60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c600e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100db040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
xor esi, esi
movq qword [ebp - 0x1c], xmm0
xor edi, edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov eax, dword [0x1020308c]
test eax, eax
je 0x1004ecc4
mov eax, dword [eax + 0x18]
lea ecx, [esi + 1]
jmp 0x1004eccb
mov ecx, 2
xor eax, eax
mov dword [ebp - 0x20], ecx
test cl, 2
je 0x1004ecd9
and ecx, 0xfffffffd
mov dword [ebp - 0x20], ecx
test cl, 1
je 0x1004ece4
and ecx, 0xfffffffe
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x1004eefb
movaps xmm0, xmmword [0x100d0760]
xor eax, eax
movaps xmm2, xmmword [0x100d0390]
movups xmmword [ebp - 0x8c], xmm0
mov word [ebp - 0x5c], 0x1f5c
movaps xmm0, xmmword [0x100d07a0]
movups xmmword [ebp - 0x7c], xmm0
movaps xmm0, xmmword [0x100d09f0]
movups xmmword [ebp - 0x6c], xmm0
nop
movups xmm0, xmmword [ebp + eax - 0x8c]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ebp + eax - 0x8c], xmm1
add eax, 0x10
cmp eax, 0x30
jb 0x1004ed20
cmp eax, 0x32
jae 0x1004ed51
xor byte [ebp + eax - 0x8c], 0x1f
inc eax
cmp eax, 0x32
jb 0x1004ed43
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004ed70
sub ecx, edx
lea eax, [ebp - 0x8c]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.10026a60
mov edx, dword [0x10203094]
test edx, edx
je 0x1004ed98
mov edx, dword [edx + 0x50]
jmp 0x1004ed9a
xor edx, edx
mov esi, dword [0x1020308c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], edx
test esi, esi
je 0x1004edb2
mov esi, dword [esi + 0x18]
or eax, 8
jmp 0x1004edb7
or eax, 0x10
xor esi, esi
test al, 0x10
je 0x1004edbe
and eax, 0xffffffef
test al, 8
je 0x1004edc5
and eax, 0xfffffff7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
or eax, 0x20
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x58]
movq qword [ebp - 0x30], xmm0
push eax
push esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.1004e580
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1004ee6c
mov edx, eax
mov dword [ebp - 0x40], eax
mov edi, eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x28]
je 0x1004ee26
mov dword [ecx], eax
add dword [ebp - 0x2c], 4
jmp 0x1004ee39
lea eax, [ebp - 0x20]
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.1009ae80
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x58]
sub esi, edx
dec eax
add eax, esi
lea esi, [edi + 1]
push ecx
push esi
mov edx, eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x3c]
call fcn.1004e580
add esp, 8
mov eax, dword [eax]
mov edx, eax
mov dword [ebp - 0x20], eax
mov edi, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1004ee16
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x1004eee0
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004eed3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004eed3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100c180b
mov eax, dword [ebp - 0x24]
add esp, 8
cmp esi, eax
je 0x1004eefb
mov edi, dword [ebp - 0x24]
push dword [esi]
call fcn.1004ef50
add esi, 4
cmp esi, edi
jne 0x1004eee7
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x1004ef2e
sub edi, esi
mov eax, esi
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x1004ef24
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004ef24
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.100c180b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c138b
mov esp, ebp
pop ebp
ret