Function at 0x46f1b8
Capabilities:
Create pipe
Create process on windows
Create process suspended
Create reverse shell
Create two anonymous pipes
Read file on windows
Read pipe
Terminate process
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46f996
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
push ebp
push 0x46f961
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x38], 0
mov eax, 0xc
call fcn.0040272c
mov dword [ebp - 0x10], eax
mov eax, dword [0x4733cc]
cmp dword [eax], 2
jne 0x46f268
mov eax, 0x14
call fcn.0040272c
mov dword [ebp - 0x14], eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
jmp 0x46f275
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 4], edx
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0xffffffff
mov dword [ebp - 0xc], 0x400
mov eax, dword [ebp - 0xc]
call fcn.004086ac
mov dword [ebp - 8], eax
xor ecx, ecx
push ebp
push 0x46f8ae
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x38], 2
push 0
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x46f2e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00403e7c
call fcn.00403f28
call fcn.00403f28
jmp 0x46f96b
push 0
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x46f326
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
call fcn.00403e7c
call fcn.00403f28
call fcn.00403f28
jmp 0x46f96b
xor ecx, ecx
push ebp
push 0x46f877
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x38], 4
lea eax, [ebp - 0x84]
push eax
call sub.kernel32.dll_GetStartupInfoA_1
mov dword [ebp - 0x58], 0x101
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x64]
mov ax, word [eax*4 + 0x472f80]
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00404950
mov ebx, eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x65]
mov eax, dword [eax*4 + 0x472fb0]
mov edx, dword [ebp - 4]
or eax, dword [edx + 0x60]
push eax
push 0xffffffffffffffff
push 0
push 0
push ebx
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x46f40e
lea eax, [ebp - 0x98]
mov edx, ebx
call fcn.00404690
lea eax, [ebp - 0x98]
mov edx, 0x46f9ac
call fcn.00404760
mov ecx, dword [ebp - 0x98]
mov dl, 1
mov eax, dword [0x46eab0]
call fcn.0040c0b4
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x5c], esi
mov eax, esi
call fcn.00403e7c
call fcn.00403f28
call fcn.00403f28
call fcn.00403f28
jmp 0x46f96b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0046f184
mov dword [ebp - 0x28], 0x103
xor ecx, ecx
push ebp
push 0x46f83e
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x38], 6
lea eax, [ebp - 0x38]
call fcn.004044a0
mov eax, dword [ebp - 4]
mov byte [eax + 0x78], 0
mov byte [ebp - 0x3e], 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x94]
push eax
call sub.kernel32.dll_GetExitCodeProcess
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp dword [ebp - 0x2c], 0
je 0x46f5a8
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x30]
jae 0x46f499
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0040276c
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00402fbc
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_ReadFile_1
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x38]
call fcn.00404538
xor ebx, ebx
jmp 0x46f563
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx]
sub al, 1
jb 0x46f4e3
sub al, 9
je 0x46f4e6
sub al, 3
je 0x46f4e6
jmp 0x46f543
inc ebx
jmp 0x46f563
inc ebx
cmp byte [ebp - 0x3e], 0
je 0x46f4f7
mov eax, dword [ebp - 8]
cmp byte [eax + ebx - 1], 0xa
je 0x46f563
cmp ebx, dword [ebp - 0x2c]
jae 0x46f51f
mov eax, dword [ebp - 8]
cmp byte [eax + ebx - 1], 0xd
jne 0x46f51f
mov eax, dword [ebp - 8]
cmp byte [eax + ebx], 0xa
jne 0x46f51f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x85], 0
jmp 0x46f52c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x85], 1
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0046fa38
lea eax, [ebp - 0x34]
call fcn.004044a0
jmp 0x46f563
lea eax, [ebp - 0x9c]
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx]
call fcn.00404680
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x34]
call fcn.00404760
inc ebx
cmp ebx, dword [ebp - 0x2c]
jae 0x46f575
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x46f4cf
mov eax, dword [ebp - 8]
cmp byte [eax + ebx - 1], 0xd
sete byte [ebp - 0x3e]
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.00404538
cmp dword [ebp - 0x38], 0
je 0x46f769
mov cl, 1
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0046fa38
jmp 0x46f769
xor eax, eax
push ebp
push 0x46f762
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x46f738
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xa0]
call fcn.00404758
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x3c]
jae 0x46f5ea
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00402fbc
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0xa4]
mov eax, 0x46f9c4
call fcn.00404a94
cdq
push edx
push eax
mov ebx, dword [ebp - 0x3c]
dec ebx
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x46f62e
cmp eax, dword [esp]
pop edx
pop eax
je 0x46f66e
lea ecx, [ebp - 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0xa8]
mov eax, 0x46f9d0
call fcn.00404a94
cdq
push edx
push eax
mov eax, dword [ebp - 0x3c]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x46f666
cmp eax, dword [esp]
pop edx
pop eax
je 0x46f66e
xor eax, eax
jmp 0x46f670
mov al, 1
mov byte [ebp - 0x3d], al
mov esi, ebx
test esi, esi
jb 0x46f6a2
inc esi
xor ebx, ebx
lea ecx, [ebp - 0xac]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xac]
mov al, byte [eax + ebx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
inc ebx
dec esi
jne 0x46f67c
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
cmp byte [eax + 0x4c], 0
je 0x46f72b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x78], 0
je 0x46f6f1
lea ecx, [ebp - 0xb0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 0x38]
call fcn.00404760
jmp 0x46f701
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp byte [ebp - 0x3d], 0
je 0x46f71e
xor ecx, ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0046fa38
lea eax, [ebp - 0x38]
call fcn.004044a0
jmp 0x46f72b
mov cl, 1
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0046fa38
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x46f754
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x46f5bb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f769
ret
push 1
call sub.kernel32.dll_Sleep_1
cmp dword [ebp - 0x28], 0x103
je 0x46f78b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x38], 8
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x70], edx
jmp 0x46f7e3
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x46f7a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x38], 9
jmp 0x46f7e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x38]
cmp eax, dword [ecx + 0x48]
jge 0x46f7b5
test eax, eax
jg 0x46f7ca
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
cmp edx, dword [eax + 0x4c]
jge 0x46f7d6
test edx, edx
jle 0x46f7d6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov byte [eax + 0x38], 0xa
jmp 0x46f7e3
cmp dword [ebp - 0x28], 0x103
je 0x46f44b
cmp dword [ebp - 0x38], 0
je 0x46f7f6
mov cl, 1
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0046fa38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f845
cmp dword [ebp - 0x28], 0x103
jne 0x46f81a
push 0
mov eax, dword [ebp - 0x94]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0046f1b0
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x94]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f99d
lea eax, [ebp - 0xb0]
mov edx, 7
call fcn.004044c4
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004044c4
ret