Function at 0x410340
Capabilities:
Create a process with modified i/o handles and window
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, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4104a4
push 0x10000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4104a4
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x2c]
push 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 8]
call esi
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call edi
push 0
push 1
push dword [ebp - 0x14]
call esi
xor eax, eax
mov dword [ebp - 0x56], 0
mov word [ebp - 0x52], ax
xorps xmm0, xmm0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x88]
movlpd qword [ebp - 0x84], xmm0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp - 4]
movlpd qword [ebp - 0x7c], xmm0
push 0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x5c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp + 0x1c]
mov esi, eax
test ecx, ecx
je 0x410471
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
push dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x38]
call edi
push dword [ebp - 0x18]
call edi
test esi, esi
jne 0x4104ad
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x14]
call edi
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x10000
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41052e
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
test eax, eax
je 0x410523
cmp eax, 0x10000
jae 0x4104e5
mov byte [eax + ebx], 0
mov eax, dword [ebp - 4]
test edi, edi
je 0x410500
push dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
push 0
push dword [ebp + 8]
push esi
push eax
push ebx
call edi
test eax, eax
je 0x410526
mov eax, dword [ebp - 4]
add dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push 0x10000
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4104d0
mov esi, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410530
xor esi, esi
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x14]
call edi
push ebx
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret