Function at 0x1000161a
Capabilities:
Create thread
Encode data using xor

Disassembly:
push 0x74
mov eax, 0x10003d0f
call fcn.1000395e
mov dword [ebp - 0x7c], 0xe
xor eax, eax
mov dword [ebp - 0x78], 0xc6c9f5f5
mov dword [ebp - 0x74], 0xdec4cfc3
mov dword [ebp - 0x70], 0xf5cec3f5
mov word [ebp - 0x6c], 0xaaf5
xor byte [ebp + eax - 0x78], 0xaa
inc eax
cmp eax, dword [ebp - 0x7c]
jb 0x1000164a
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x54]
call fcn.10001d00
and dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x68], 0xa
mov dword [ebp - 0x64], 0x849d989b
mov dword [ebp - 0x60], 0x849a849a
mov word [ebp - 0x5c], 0xaa9b
xor byte [ebp + eax - 0x64], 0xaa
inc eax
cmp eax, dword [ebp - 0x68]
jb 0x10001682
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10001d00
xor ebx, ebx
inc ebx
push 0x18
mov byte [ebp - 4], bl
call fcn.10002b24
mov edx, eax
xor eax, eax
push 6
pop ecx
mov dword [ebp - 0x14], edx
mov edi, edx
mov dword [esp], 0x53b
sub esp, 0x18
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
mov dword [0x1000642c], edx
mov ecx, esp
push eax
call fcn.10001d8e
call fcn.100014af
test al, al
jne 0x100016df
xor bl, bl
jmp 0x100017ea
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
xorps xmm0, xmm0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movups xmmword [ebp - 0x24], xmm0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x80]
call fcn.10001d8e
mov byte [ebp - 4], 3
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 0x10
lea ecx, [ebp - 0x24]
push dword [ebp - 0x70]
cmovae eax, dword [ebp - 0x80]
push eax
call fcn.10001249
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.10001cdd
mov eax, dword [0x10006408]
xor esi, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov cl, byte [ebp + esi - 0x14]
mov byte [ebp - 0x55], cl
cmp eax, dword [ebp - 0x1c]
je 0x1000174a
mov byte [eax], cl
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1000175a
lea ecx, [ebp - 0x55]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.100028cf
mov eax, dword [ebp - 0x20]
inc esi
cmp esi, 4
jb 0x10001733
mov ecx, dword [0x1000642c]
lea eax, [ebp - 0x24]
push eax
call fcn.100012dc
test al, al
jne 0x10001777
xor bl, bl
jmp 0x100017ce
push 8
call fcn.10002b24
mov ecx, eax
mov eax, dword [0x1000642c]
mov dword [ebp - 0x14], ecx
mov dword [ecx], eax
mov dword [ecx + 4], 0x1000156c
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
xor eax, eax
push eax
push ecx
push 0x10002abf
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x60], eax
test eax, eax
je 0x10001809
mov byte [ebp - 4], 5
cmp dword [ebp - 0x5c], 0
je 0x10001802
push dword [ebp - 0x5c]
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
pop ecx
pop ecx
test eax, eax
jne 0x10001802
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x100017ea
mov edx, dword [ebp - 0x1c]
sub edx, ecx
call fcn.10002419
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x3c]
call fcn.10001cdd
lea ecx, [ebp - 0x54]
call fcn.10001cdd
mov al, bl
call fcn.1000391c
ret
push ebx
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
and dword [ebp - 0x5c], 0
push 6
jmp 0x10001803