Function at 0x100c6cf0
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 0x1031ae12
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x1043900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
test eax, eax
jne 0x100c6d43
or eax, 0xffffffff
jmp 0x100c6d6a
mov eax, dword fs:[0x2c]
mov ecx, dword [0x104c14e0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10611898]
cmp eax, dword [ecx + 4]
jg 0x100c6d88
mov eax, dword [0x106116f4]
mov ecx, dword [ebp - 0x54]
mov eax, dword [eax + ecx]
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.102bb91c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x10611898
call fcn.102bba07
add esp, 4
cmp dword [0x10611898], 0xffffffff
jne 0x100c6d5f
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
push 0xd
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x50], 1
call fcn.1001a120
mov esi, 0x103f66c4
jmp 0x100c6dd6
mov al, byte [esi]
lea ecx, [ebp - 0x2c]
xor al, 0xa5
mov byte [ebp - 0x48], al
push dword [ebp - 0x48]
call fcn.1001a280
add esi, 2
cmp esi, 0x103f66da
jne 0x100c6dd6
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
cmovae eax, edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x100c6ec7
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x100c6ec7
sub edx, dword [ebp - 0x4c]
cmp edx, 0xffffffff
je 0x100c6ec7
jmp 0x100c6e35
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, edi
setae cl
add edx, eax
lea eax, [ebp - 0x2c]
test cl, cl
je 0x100c6e60
sub edx, edi
mov eax, esi
sub eax, edx
mov edi, 1
cmp eax, edi
cmovb edi, eax
mov eax, dword [ebp - 0x48]
jmp 0x100c6e75
sub edx, eax
mov edi, 1
mov eax, esi
sub eax, edx
cmp eax, edi
cmovb edi, eax
lea eax, [ebp - 0x2c]
jmp 0x100c6e75
lea ecx, [eax + edx]
sub esi, edi
mov eax, esi
sub eax, edx
inc eax
push eax
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x48], edi
cmovae eax, edi
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x100c6ec7
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x100c6ec7
sub edx, dword [ebp - 0x4c]
cmp edx, 0xffffffff
jne 0x100c6e35
jmp 0x100c6ec7
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, edi
cmp byte [0x104ab1e0], 0
mov dword [ebp - 0x4c], eax
jne 0x100c6f50
mov byte [0x104ab1e0], 1
xor edi, edi
jmp 0x100c6ef0
xor edx, edx
mov eax, edi
xor eax, dword [0x104ab1f8]
xor edx, dword [0x104ab1fc]
xor eax, 0x1de26cd5
xor edx, 0xd28f2c5
mov dword [ebp - 0x48], eax
mov esi, dword [ebp - 0x48]
mov ecx, edx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor esi, eax
mov ecx, edx
mov eax, esi
shrd eax, ecx, 7
shr ecx, 7
xor esi, eax
xor edx, ecx
mov dword [ebp - 0x48], esi
mov ecx, esi
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [edi + 0x104ab1e1]
xor cl, byte [ebp - 0x48]
mov byte [edi + 0x104ab1e1], cl
inc edi
cmp edi, 0x13
jb 0x100c6ef0
jmp 0x100c6f50
push ecx
push 0x104ab1f3
push 0x104ab1e1
lea ecx, [ebp - 0x44]
call fcn.1001a620
mov dword [ebp - 0x50], 7
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
push 0
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.10171b70
lea ecx, [ebp - 0x44]
mov dword [0x106116f4], eax
call fcn.10019dd0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x100c6fc9
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100c6fbd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c6fbd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
jmp 0x100c6fc9
push 0x10611898
call fcn.102bb9b6
add esp, 4
jmp 0x100c6d5f