Function at 0x4017e0
Capabilities:
Create pipe
Create process on windows
Create process suspended
Create reverse shell
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, 0x10a8
call fcn.004031f0
sub esp, eax
lea edi, [ebp - 0x1050]
lea ebx, [ebp - 0x106c]
mov esi, ecx
mov eax, dword [esp + eax]
mov ecx, 0x11
mov dword [ebp - 0x1090], edx
mov dword [ebp - 0x108c], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1088]
mov dword [ebp - 0x1068], 0
mov edi, dword [sym.imp.kernel32.dll_CreatePipe]
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x105c], 0
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x106c], 0xc
mov dword [ebp - 0x1064], 1
mov dword [esp + 4], eax
lea eax, [ebp - 0x107c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp], eax
call edi
lea eax, [ebp - 0x1078]
sub esp, 0x10
mov dword [esp + 4], eax
lea eax, [ebp - 0x1084]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp], eax
call edi
lea eax, [ebp - 0x1074]
sub esp, 0x10
mov dword [esp + 4], eax
lea eax, [ebp - 0x1080]
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x100c]
mov dword [esp + 0xc], 0
mov dword [esp], eax
call edi
mov edi, dword [sym.imp.kernel32.dll_SetHandleInformation]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x1088]
mov dword [esp], eax
call edi
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x1084]
mov dword [esp], eax
call edi
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x1080]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x107c]
mov edx, dword [ebp - 0x1090]
mov dword [ebp - 0x1050], 0x44
sub esp, 0xc
lea edi, [ebp - 0x1070]
or dword [ebp - 0x1024], 0x100
mov dword [ebp - 0x1018], eax
mov eax, dword [ebp - 0x1078]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1074]
mov dword [ebp - 0x1010], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 4], str.findstr.exe__s
call fcn.00401020
lea eax, [ebp - 0x1060]
mov dword [esp + 4], ebx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x1050]
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_CreateProcessA]
mov eax, dword [ebp - 0x107c]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 0x28
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1078]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1074]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1088]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [ebp - 0x1088]
sub esp, 0x14
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1084]
mov ecx, 0x418004
mov edx, 0x428020
sub esp, 4
call fcn.004016e0
mov eax, dword [ebp - 0x1080]
mov ecx, 0x418000
mov edx, 0x418020
call fcn.004016e0
mov eax, dword [ebp - 0x1084]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1080]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1060]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x1060]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x1060]
sub esp, 8
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x105c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
call fcn.00402480
mov esi, dword [ebp - 0x108c]
mov dword [eax], 0x40612e
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x1070]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 8]
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
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret