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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x30bc
call fcn.00403bb0
sub esp, eax
lea edi, [ebp - 0x3050]
mov eax, dword [esp + eax]
mov dword [ebp - 0x3084], ecx
mov ecx, 0x11
mov ebx, eax
mov dword [ebp - 0x3088], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3060], 0
mov dword [ebp - 0x305c], 0
mov esi, dword [sym.imp.kernel32.dll_CreatePipe]
mov dword [ebp - 0x3098], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3058], 0
mov dword [ebp - 0x3090], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3054], 0
mov dword [ebp - 0x309c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x306c], 0xc
mov dword [ebp - 0x30a0], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x307c]
mov dword [ebp - 0x3064], 1
lea edi, [ebp - 0x306c]
mov dword [ebp - 0x3068], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x3074]
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp], eax
call esi
lea eax, [ebp - 0x3078]
sub esp, 0x10
mov dword [esp + 4], eax
lea eax, [ebp - 0x3080]
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp], eax
call esi
mov esi, dword [sym.imp.kernel32.dll_SetHandleInformation]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x3074]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x3078]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x3080]
lea esi, [ebp - 0x300c]
or dword [ebp - 0x3024], 0x100
mov dword [ebp - 0x3050], 0x44
sub esp, 0xc
mov dword [ebp - 0x3018], eax
mov eax, dword [ebp - 0x307c]
mov dword [ebp - 0x3010], 0
mov dword [ebp - 0x3014], eax
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x200c]
mov dword [esp], ebx
mov dword [esp + 4], str.find.exe__s
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x3060]
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x3050]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x3080]
sub esp, 0x28
mov dword [esp], eax
mov dword [ebp - 0x3094], edi
call edi
mov eax, dword [ebp - 0x307c]
sub esp, 4
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0x3084]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x3088]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x3078]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [ebp - 0x3078]
sub esp, 0x14
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x3074]
sub esp, 4
mov dword [ebp - 0x308c], eax
mov eax, dword [sym.imp.msvcrt.dll_calloc]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [ebp - 0x30a4], eax
call eax
mov edi, eax
jmp 0x4019a6
mov edx, dword [ebp - 0x3070]
test edx, edx
je 0x4019da
lea ecx, [edx + ebx]
mov dword [ebp - 0x3088], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x3084], ecx
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_realloc]
mov edx, dword [ebp - 0x3088]
mov dword [esp + 4], esi
add ebx, eax
mov edi, eax
mov dword [esp], ebx
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
mov ebx, dword [ebp - 0x3084]
lea eax, [ebp - 0x3070]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x308c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x401960
mov eax, dword [ebp - 0x3074]
mov dword [ebp - 0x308c], edi
mov dword [esp], eax
mov edi, dword [ebp - 0x3094]
call edi
sub esp, 4
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x3060]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x3060]
sub esp, 8
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x305c]
sub esp, 4
mov dword [esp], eax
call edi
mov dword [ebp - 0x3094], 0
sub esp, 4
cmp dword [ebp - 0x3090], ebx
jne 0x401a68
mov eax, dword [ebp - 0x3090]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3098]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x308c]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x3094], eax
lea eax, [ebx*4 + 1]
mov dword [esp], 1
xor edi, edi
mov dword [esp + 4], eax
mov esi, dword [ebp - 0x30a4]
call esi
mov dword [ebp - 0x3084], eax
mov eax, dword [ebp - 0x3090]
mov dword [esp], 1
lea eax, [eax*4 + 1]
mov dword [esp + 4], eax
call esi
mov dword [ebp - 0x3088], eax
mov eax, dword [ebp - 0x308c]
lea edx, [ebx + eax]
test ebx, ebx
jle 0x401b02
mov ebx, edi
mov esi, edx
mov edi, eax
jmp 0x401acc
add edi, 1
mov byte [ecx], al
add ebx, 1
cmp esi, edi
je 0x401b02
mov edx, dword [ebp - 0x3084]
movzx eax, byte [edi]
lea ecx, [edx + ebx]
test al, al
je 0x401ae4
cmp al, 0xd
je 0x401ae4
test al, al
jns 0x401ac0
mov dword [esp + 8], eax
add edi, 1
add ebx, 4
mov dword [esp + 4], str.x_02x
mov dword [esp], ecx
call fcn.00401020
cmp esi, edi
jne 0x401acc
mov ebx, dword [ebp - 0x3098]
mov eax, dword [ebp - 0x3090]
xor esi, esi
lea edi, [ebx + eax]
test eax, eax
jle 0x401b62
mov eax, ebx
mov ebx, esi
mov esi, eax
jmp 0x401b2c
add esi, 1
mov byte [ecx], al
add ebx, 1
cmp edi, esi
je 0x401b62
mov edx, dword [ebp - 0x3088]
movzx eax, byte [esi]
lea ecx, [edx + ebx]
test al, al
je 0x401b44
cmp al, 0xd
je 0x401b44
test al, al
jns 0x401b20
mov dword [esp + 8], eax
add esi, 1
add ebx, 4
mov dword [esp + 4], str.x_02x
mov dword [esp], ecx
call fcn.00401020
cmp edi, esi
jne 0x401b2c
call fcn.00402e40
mov esi, dword [ebp - 0x30a0]
mov ebx, dword [ebp - 0x3084]
mov dword [eax], 0x40614e
mov dword [eax + 4], esi
mov dword [esp + 0xc], ebx
mov edi, dword [ebp - 0x3088]
mov dword [esp + 4], str._n_Expected:_n_s_n_But_got:_n_s_n_n
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x3094]
mov dword [esp], eax
call fcn.00401250
mov dword [esp], ebx
mov ebx, dword [sym.imp.msvcrt.dll_free]
call ebx
mov dword [esp], edi
call ebx
call fcn.00402e40
mov dword [eax + 4], esi
mov dword [eax], 0x40614e
mov eax, dword [ebp - 0x300c]
mov dword [esp + 0xc], eax
mov esi, dword [ebp - 0x309c]
mov dword [esp + 4], str.Expected_exitcode__d__got__ld_n
cmp esi, eax
mov dword [esp + 8], esi
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401250
mov eax, dword [ebp - 0x308c]
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp eax