Function at 0x409990
Capabilities:
Create pipe
Create process on windows
Create reverse shell

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [edi + 8]
push eax
call fcn.004012a3
add esp, 4
mov dword [ebp - 0x34], 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], 1
lea ebx, [edi + 0x9c]
mov dword [ebp - 0x30], 0
lea esi, [edi + 0x98]
push 0
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x409a1e
cmp dword [0x463c14], eax
je 0x409a0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_CreatePipe:__d_n
call fcn.004011ea
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
push dword [0x463ecc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str..pipe_ncat__d__d
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0041ea20
add esp, 0x14
cmp dword [0x463c18], 1
jle 0x409a58
lea eax, [ebp - 0x24]
push eax
push str.Creating_named_pipe___s__n
call fcn.004011ea
add esp, 8
lea eax, [ebp - 0x34]
push eax
push 0x3e8
push 0x1000
push 0x1000
push 1
push 0
push 0x40000001
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [edi + 0xa0], eax
test eax, eax
jne 0x409ac6
cmp dword [0x463c14], eax
je 0x409aa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_CreateNamedPipe:__d_n
call fcn.004011ea
add esp, 8
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx]
call esi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
push 0
push 0x40000080
push 3
lea eax, [ebp - 0x34]
push eax
push 0
push 0x40000000
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0xa4], eax
test eax, eax
jne 0x409b18
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx]
call esi
push dword [edi + 0xa0]
call esi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
inc dword [0x463ecc]
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebx]
call esi
push 0
push 1
push dword [edi + 0xa0]
call esi
push 0x44
lea eax, [ebp - 0x88]
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [edi + 0x98]
add esp, 0xc
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0xa4]
mov dword [ebp - 0x88], 0x44
push 0xfffffffffffffff4
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp - 0x28]
xorps xmm0, xmm0
or dword [ebp - 0x5c], 0x100
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
movdqu xmmword [ebp - 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x409c16
cmp dword [0x463c14], eax
je 0x409be0
push eax
push eax
lea eax, [ebp - 0x28]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
push dword [ebp - 0x28]
push str.Error_in_CreateProcess:__s_nCommand_was:__s_n
call fcn.004011ea
add esp, 0xc
push dword [edi + 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx]
call esi
push dword [edi + 0xa0]
call esi
push dword [edi + 0xa4]
call esi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
pop ebx
call fcn.0044590e
mov esp, ebp
pop ebp
ret