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, 0x10c
mov ebx, ecx
call sym.___main
mov byte [ebp - 0xd9], 0
mov byte [ebp - 0xda], 0
cmp dword [ebx], 2
jne 0x4014de
lea eax, [ebp - 0x51]
mov ecx, eax
call fcn.00401860
mov byte [ebp - 0xd9], 1
mov eax, dword [ebx + 4]
add eax, 4
mov edx, dword [eax]
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x51]
mov dword [esp + 4], ecx
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
mov byte [ebp - 0xda], 1
mov dword [esp + 4], str._cheese
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call dbg.bool std::operator!=<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)
test al, al
je 0x4014e7
mov byte [ebp - 0xdb], 1
jmp 0x4014ee
mov byte [ebp - 0xdb], 0
cmp byte [ebp - 0xda], 0
je 0x401501
lea eax, [ebp - 0x6c]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
cmp byte [ebp - 0xd9], 0
je 0x401515
nop
lea eax, [ebp - 0x51]
mov ecx, eax
call sym.std::allocator_char_::allocator__
cmp byte [ebp - 0xdb], 0
je 0x40156e
mov eax, dword [ebx + 4]
mov ebx, dword [eax]
mov dword [esp + 4], str.Usage:
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 + 4], ebx
mov dword [esp], eax
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 + 4], str.__cheese
mov dword [esp], eax
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], 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, 1
jmp 0x401708
mov dword [ebp - 0x1c], str.E:PayloadBase_payloadexecute.ps1
lea eax, [ebp - 0x1d]
mov ecx, eax
call fcn.00401860
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 - 0x84]
mov dword [esp + 8], 0x4060d3
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 - 0xc8]
mov eax, 0
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc8], 0x44
lea eax, [ebp - 0x84]
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 - 0xd8]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0xc8]
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 0x4016bd
mov eax, dword [ebp - 0xd8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xd8]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xd4]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov ebx, 0
jmp 0x4016fb
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, 1
lea eax, [ebp - 0x84]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov eax, ebx
jmp 0x401790
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop edi
pop ebp
lea esp, [ecx - 4]
ret