Function at 0x10016be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008cfcd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100a4040]
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 - 4], 1
mov ecx, dword [0x100bea18]
push 0x2c
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, eax
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x10016ca5
push 0x2c
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
cmova esi, dword [ebp + 8]
push esi
push edi
call fcn.10076830
and dword [edi], 0xff000000
lea edx, [ebp - 0x14]
xor eax, eax
mov byte [edi + 3], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x24], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov ecx, dword [0x100bea18]
push 1
mov dword [ebp - 0x14], 0xffffffff
push esi
mov eax, dword [ecx]
push edx
call dword [eax + 0x28]
mov edx, dword [edi]
mov ecx, dword [ebp - 0x14]
and edx, 0xff000000
and ecx, 0xffffff
or edx, ecx
mov dword [edi], edx
mov byte [edi + 3], al
sar eax, 8
mov word [edi + 0x12], ax
jmp 0x10016ca7
xor edi, edi
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x20]
and dword [edi], 0xff000000
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x24], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea eax, [ebp + 8]
mov byte [edi + 3], 0
cmp dword [ebp + 0x34], 0xf
cmova ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0xf
push ecx
cmova eax, dword [ebp + 8]
push 0
push ecx
push eax
mov ecx, edi
call fcn.10078aa0
mov ecx, dword [0x100bea14]
cmp dword [ebp + 0x1c], 0xf
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 0x14c]
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push eax
call edx
cmp dword [ebp + 0x1c], 0xf
lea edx, [ebp + 8]
movaps xmm0, xmmword [0x1009ad10]
mov esi, eax
cmova edx, dword [ebp + 8]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x46475643
mov word [ebp - 0x18], 0x28
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x14
jb 0x10016d32
push edx
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x17], 0
push eax
call fcn.10002690
mov ecx, dword [ebp + 0x1c]
add esp, 8
cmp ecx, 0xf
jbe 0x10016d80
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10016d76
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016db8
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0xf
jbe 0x10016dc8
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10016dbe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016dbe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov eax, esi
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.1008a073
mov esp, ebp
pop ebp
ret