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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4074b9
mov eax, dword fs:[0]
push eax
sub esp, 0x6d8
mov eax, dword [0x40d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push str.Run_Ps_script_1:_file____s_
push 0x40d028
call fcn.004016f0
add esp, 0xc
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
add esp, 8
test eax, eax
jne 0x403633
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x403336
mov esi, dword [ebp + 8]
test esi, esi
je 0x403639
jmp 0x403339
lea esi, [ebp + 8]
cmp word [esi], 0
je 0x403357
call fcn.00406070
mov eax, dword [eax]
cmp dword [eax], 0
je 0x403357
mov eax, dword [eax]
push esi
call eax
add esp, 4
test eax, eax
je 0x403366
mov ecx, esi
call fcn.00401a60
test al, al
je 0x403633
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x640]
push 0x408380
call fcn.00404aa0
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403419
push 0x410
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push str._sWindowsPowerShell_v1.0PowerShell.exe
lea eax, [ebp - 0x628]
push 0x207
push eax
call fcn.00405800
add esp, 0x10
cmp word [ebp - 0x628], 0
jne 0x4033f2
xor ecx, ecx
lea eax, [ebp - 0x628]
push ecx
push eax
jmp 0x403420
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403400
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
jmp 0x403420
push 0x39
push str.C:WindowsSystem32WindowsPowerShell_v1.0PowerShell.exe
lea ecx, [ebp - 0x640]
call fcn.00404bf0
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
push 0
cmovae eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
add esp, 8
test eax, eax
je 0x40347d
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
push str.Run_Ps_script_3_failed._Ps_EXE_path_not_exist:___s_
push 0x40d028
call fcn.004016f0
add esp, 0xc
xor bl, bl
jmp 0x4035fc
push str.__ExecutionPolicy_bypass__NoProfile__NonInteractive__WindowStyle_Hidden__File
lea ecx, [ebp - 0x670]
call fcn.00404aa0
lea eax, [ebp - 0x670]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x640]
lea ecx, [ebp - 0x6e0]
call fcn.00405640
add esp, 4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x658]
call fcn.00405720
mov eax, dword [ebp - 0x6cc]
add esp, 4
cmp eax, 8
jb 0x4034dc
inc eax
push eax
push dword [ebp - 0x6e0]
call fcn.00404e80
push 0x40
lea eax, [ebp - 0x6b4]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x6c8], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x6b8], 0x44
cmp dword [ebp - 0x644], 8
lea ecx, [ebp - 0x6c8]
lea eax, [ebp - 0x658]
cmovae eax, dword [ebp - 0x658]
push ecx
lea ecx, [ebp - 0x6b8]
push ecx
push 0
push 0
push 0x8000020
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40357e
push 0x493e0
push dword [ebp - 0x6c8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x6c8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x6c4]
call esi
push str.Run_Ps_script_4:_execute_finished__________
push 0x40d028
call fcn.004016f0
add esp, 8
mov bl, 1
jmp 0x403592
push str.Run_Ps_script_5:_execute_failed_....
push 0x40d028
call fcn.004016f0
add esp, 8
xor bl, bl
mov eax, dword [ebp - 0x644]
cmp eax, 8
jb 0x4035aa
inc eax
push eax
push dword [ebp - 0x658]
call fcn.00404e80
xor eax, eax
mov dword [ebp - 0x644], 7
mov word [ebp - 0x658], ax
mov eax, dword [ebp - 0x65c]
mov dword [ebp - 0x648], 0
cmp eax, 8
jb 0x4035df
inc eax
push eax
push dword [ebp - 0x670]
call fcn.00404e80
xor eax, eax
mov dword [ebp - 0x65c], 7
mov dword [ebp - 0x660], 0
mov word [ebp - 0x670], ax
mov eax, dword [ebp - 0x62c]
cmp eax, 8
jb 0x403614
inc eax
push eax
push dword [ebp - 0x640]
call fcn.00404e80
xor eax, eax
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
jmp 0x403657
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
cmp ecx, 8
lea eax, [ebp + 8]
cmovae eax, esi
push eax
push str.Run_Ps_script_2_failed__Because_file_not_exist:___s_
push 0x40d028
call fcn.004016f0
add esp, 0xc
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x403669
inc ecx
push ecx
push dword [ebp + 8]
call fcn.00404e80
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406283
mov esp, ebp
pop ebp
ret