Function at 0x10016000
Capabilities:
Create thread
Encode data using xor
Get common file path
Read file on windows

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 0x10019681
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x558
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, str.ARPD
call fcn.10013e60
mov edx, eax
mov dword [ebp - 0x528], 0
mov ecx, edx
mov dword [ebp - 0x524], 7
xor eax, eax
mov word [ebp - 0x538], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016070
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x538]
call fcn.10007570
lea edx, [ebp - 0x538]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x550]
call fcn.10013bd0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x524]
cmp edx, 8
jb 0x100160ea
mov ecx, dword [ebp - 0x538]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100160e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100160e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
mov esi, dword [ebp - 0x53c]
lea edi, [ebp - 0x550]
mov edx, dword [ebp - 0x550]
xor eax, eax
cmp esi, 0x10
mov word [ebp - 0x538], ax
mov dword [ebp - 0x528], 0
cmovae edi, edx
mov dword [ebp - 0x524], 7
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x554], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10016130
sub ecx, dword [ebp - 0x554]
je 0x1001641f
push 0x104
lea eax, [ebp - 0x120]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x1001bb30
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
add esp, 8
test eax, eax
je 0x10016408
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x520]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x520]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100161b0
sub ecx, edx
je 0x100163f0
lea eax, [ebp - 0x520]
push 0x1001bfd0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
mov dword [ebp - 0x554], esi
test esi, esi
je 0x100163f0
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
mov dword [ebp - 0x568], esi
test esi, esi
je 0x100163f0
push esi
call fcn.100175d7
mov edi, eax
add esp, 4
mov dword [ebp - 0x558], edi
test edi, edi
je 0x100163f0
push 0
push 0
push dword [ebp - 0x554]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push dword [ebp - 0x554]
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [ebp - 0x554]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
xor eax, eax
test esi, esi
je 0x100163f0
cmp esi, 0x40
jb 0x100162c9
movaps xmm2, xmmword [0x1001c1e0]
mov ecx, esi
and ecx, 0x3f
mov edx, esi
sub edx, ecx
nop word [eax + eax]
movups xmm0, xmmword [edi + eax]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + eax], xmm1
movups xmm0, xmmword [edi + eax + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + eax + 0x10], xmm1
movups xmm0, xmmword [edi + eax + 0x20]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + eax + 0x20], xmm1
movups xmm0, xmmword [edi + eax + 0x30]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + eax + 0x30], xmm1
add eax, 0x40
cmp eax, edx
jb 0x10016280
cmp eax, esi
jae 0x100162d9
nop dword [eax]
xor byte [eax + edi], 0x60
inc eax
cmp eax, esi
jb 0x100162d0
test esi, esi
jle 0x100163f0
push 0x818
call fcn.1001712d
add esp, 4
mov edi, eax
push 0x810
lea ecx, [edi + 8]
mov dword [edi + 0x80c], 0
push 0
push ecx
mov dword [edi + 0x810], 0
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x558]
add esp, 0xc
mov eax, dword [ebp - 0x568]
add eax, ecx
mov dword [edi + 4], 0x50
mov dword [edi], 0x7f
push dword [ebp - 0x558]
mov dword [ebp - 0x564], 0
push eax
push ecx
lea ecx, [ebp - 0x564]
mov dword [ebp - 0x560], 0
mov dword [ebp - 0x55c], 0
call fcn.10016470
lea eax, [ebp - 0x564]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x808]
call fcn.10011e80
push 0
push 0
push edi
push fcn.10015960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x564]
test edx, edx
je 0x100163f0
mov ecx, dword [ebp - 0x55c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100163c8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100160da
push ecx
push edx
call fcn.100174a3
add esp, 8
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x560], 0
mov dword [ebp - 0x55c], 0
push 0x1001bb30
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
add esp, 8
test eax, eax
jne 0x10016183
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x53c]
mov edx, dword [ebp - 0x550]
cmp esi, 0x10
jb 0x10016451
lea ecx, [esi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016447
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016447
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100174a3
add esp, 8
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.10016f21
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret