Function at 0x46fbb5
Capabilities:
Create pipe
Create process on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x90
xor eax, eax
mov dword [0x51e49c], 0
mov eax, dword [ebp + 0x18]
mov dword [0x51e4a0], eax
mov eax, 0xc
xchg edx, eax
lea eax, [ebp - 0x3c]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x3c]
mov dword [eax + 4], edx
xor eax, eax
inc eax
xchg edx, eax
lea eax, [ebp - 0x3c]
mov dword [eax + 8], edx
mov eax, 0
mov dword [ebp - 0x20], 0
mov eax, 0
mov dword [ebp - 0x24], 0
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, 0
mov dword [ebp - 0x1c], 0
mov eax, 0
mov dword [ebp - 0x28], 0
mov eax, 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x10], 0
push 0x44
push 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.MSVCRT.DLL_memset]
add esp, 0xc
mov eax, 0x44
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x2c], edx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x38], edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x3c], edx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x40], edx
push 0
push 0
push 3
lea eax, [ebp - 0x3c]
push eax
push 2
push 0x40000000
push str.nul:
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
cmp eax, 0
je 0x46fd97
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x46fd40
push 0
mov eax, pe_nt_image_headers32
or eax, 0x8000000
push eax
push 3
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x80000000
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x46fd3e
mov eax, 0xffffffff
jmp 0x470323
jmp 0x46fd87
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
xor al, 1
cmp eax, 0
je 0x46fd67
mov eax, 0xffffffff
jmp 0x470323
push 0
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x46fd87
mov eax, 0xffffffff
jmp 0x470323
mov eax, dword [ebp - 0x18]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x38], edx
mov eax, dword [ebp + 0x20]
cmp eax, 0
je 0x46fe3f
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x46fdc2
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x20]
call fcn.0046fb4e
mov dword [ebp - 0x24], eax
jmp 0x46fe2d
mov eax, 0
xchg edx, eax
mov eax, dword [ebp + 0x20]
mov dword [eax], edx
push 0x1000
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov edx, eax
mov eax, dword [ebp + 0x20]
mov dword [eax + 4], edx
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
xor al, 1
cmp eax, 0
je 0x46fe0d
mov eax, 0xffffffff
jmp 0x470323
push 0
push 1
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x46fe2d
mov eax, 0xffffffff
jmp 0x470323
mov eax, dword [ebp - 0x24]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x3c], edx
jmp 0x46fe5b
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x46fe5b
mov eax, dword [ebp - 0x30]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp + 0x24]
cmp eax, 0
je 0x46ff03
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x46fe86
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x24]
call fcn.0046fb4e
mov dword [ebp - 0x2c], eax
jmp 0x46fef1
mov eax, 0
xchg edx, eax
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
push 0x1000
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov edx, eax
mov eax, dword [ebp + 0x24]
mov dword [eax + 4], edx
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
xor al, 1
cmp eax, 0
je 0x46fed1
mov eax, 0xffffffff
jmp 0x470323
push 0
push 1
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x46fef1
mov eax, 0xffffffff
jmp 0x470323
mov eax, dword [ebp - 0x2c]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x40], edx
jmp 0x46ff1f
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x46ff1f
mov eax, dword [ebp - 0x30]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x40], edx
mov eax, dword [ebp + 0x1c]
cmp eax, 0
jne 0x46ff41
mov eax, dword [ebp + 0x20]
cmp eax, 0
jne 0x46ff41
mov eax, dword [ebp + 0x24]
cmp eax, 0
jne 0x46ff41
xor eax, eax
jmp 0x46ff44
xor eax, eax
inc eax
cmp eax, 0
je 0x46ff71
xor eax, eax
inc eax
mov dword [ebp + 0xc], 1
xor eax, eax
inc eax
mov dword [ebp - 0x10], 1
mov eax, 0x100
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x46ffb5
mov eax, dword [ebp + 0x1c]
cmp eax, 0
jne 0x46ff99
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x38], edx
xor eax, eax
inc eax
mov dword [ebp - 0x10], 1
mov eax, 0x100
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 0x10]
xor al, 1
cmp eax, 0
je 0x46ffe0
lea eax, [ebp - 0x90]
mov eax, dword [eax + 0x2c]
or eax, 1
mov edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x10]
xchg edx, eax
lea eax, [ebp - 0x3c]
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x47005c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, eax
mov eax, 1
add eax, edx
shl eax, 1
mov dword [ebp - 0x94], eax
mov eax, 0xe
mov edx, dword [ebp - 0x94]
add eax, edx
push eax
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
push 0xe
push 0x526f78
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
push dword [ebp - 0x94]
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add eax, 0xe
push eax
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
jmp 0x470062
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push 0
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
xor al, 1
cmp eax, 0
je 0x47018f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov eax, 2
cmp eax, edx
jne 0x47016f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, eax
mov eax, 1
add eax, edx
shl eax, 1
mov dword [ebp - 0x94], eax
mov eax, 0xe
mov edx, dword [ebp - 0x94]
add eax, edx
push eax
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
push 0xe
push str.cmd__c
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
push dword [ebp - 0x94]
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add eax, 0xe
push eax
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp + 0x18], 1
xor eax, eax
inc eax
mov dword [0x51e4a0], 1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push 0
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
xor al, 1
cmp eax, 0
je 0x47016d
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x470163
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0xffffffff
jmp 0x470323
jmp 0x47018f
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x470185
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0xffffffff
jmp 0x470323
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x4701a5
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x1c]
cmp eax, 0
je 0x47020f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
push 0
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x98], eax
mov eax, 0
mov edx, dword [ebp - 0x98]
cmp eax, edx
jne 0x470206
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
cmp eax, 0
je 0x470242
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x470239
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call fcn.0046fa8c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
cmp eax, 0
je 0x4702a8
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x47026c
push dword [ebp + 0x24]
push dword [ebp - 0x28]
call fcn.0046fa8c
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x47028d
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0
jle 0x47028d
jmp 0x470291
xor eax, eax
jmp 0x470294
xor eax, eax
inc eax
cmp eax, 0
je 0x4702a8
xor eax, eax
inc eax
mov dword [0x51e49c], 1
mov eax, dword [ebp + 0x14]
cmp eax, 0
jne 0x4702c0
mov eax, dword [ebp + 0xc]
cmp eax, 0
jne 0x4702c0
xor eax, eax
jmp 0x4702c3
xor eax, eax
inc eax
cmp eax, 0
je 0x4702ea
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
jmp 0x4702f6
lea eax, [ebp - 0x4c]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x4c]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x4c]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc]
jmp 0x470323
leave
ret 0x20