Function at 0x519a10
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
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a69dd
mov eax, dword fs:[0]
push eax
mov eax, 0x2094
call fcn.0059f510
mov eax, dword [0x5f300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x201c], edx
mov edi, ecx
mov dword [ebp - 0x2024], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2044], edi
mov dword [ebp - 0x2040], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push 0
lea eax, [ebp - 0x205c]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push eax
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2040], 1
push eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x205c], 0xc
push eax
mov dword [ebp - 0x2058], 0
mov dword [ebp - 0x2054], 1
mov dword [ebp - 0x2028], 0
mov dword [ebp - 0x2014], 0
call esi
push 0
lea eax, [ebp - 0x205c]
mov dword [ebp - 0x2024], 0
push eax
lea eax, [ebp - 0x2024]
mov dword [ebp - 0x202c], 0
push eax
lea eax, [ebp - 0x202c]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 0x2014]
call esi
push 0
push 1
push dword [ebp - 0x2024]
call esi
mov edx, dword [ebp - 0x201c]
xor eax, eax
mov word [ebp - 0x206a], ax
mov ecx, edx
mov word [ebp - 0x2070], ax
mov eax, dword [ebp - 0x202c]
mov dword [ebp - 0x2068], eax
mov eax, dword [ebp - 0x2028]
lea esi, [ecx + 2]
mov dword [ebp - 0x2064], eax
mov dword [ebp - 0x2060], eax
xor eax, eax
mov dword [ebp - 0x209c], 0
mov dword [ebp - 0x2098], 0
mov dword [ebp - 0x2094], 0
mov dword [ebp - 0x2090], 0
mov dword [ebp - 0x208c], 0
mov dword [ebp - 0x2088], 0
mov dword [ebp - 0x2084], 0
mov dword [ebp - 0x2080], 0
mov dword [ebp - 0x207c], 0
mov dword [ebp - 0x2078], 0
mov dword [ebp - 0x206e], 0
mov dword [ebp - 0x20a0], 0x44
mov dword [ebp - 0x2074], 0x101
mov dword [ebp - 0x203c], eax
mov dword [ebp - 0x2038], eax
mov dword [ebp - 0x2034], eax
mov dword [ebp - 0x2030], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x519bf6
push dword [ebp - 0x2044]
sub ecx, esi
mov dword [ebp - 0x2050], 0
sar ecx, 1
inc ecx
mov dword [ebp - 0x204c], 0
mov dword [ebp - 0x2048], 0
lea eax, [edx + ecx*2]
push eax
push edx
lea ecx, [ebp - 0x2050]
call fcn.00436f60
mov dword [ebp - 4], 1
test ebx, ebx
je 0x519c4b
cmp word [ebx], 0
jne 0x519c4d
xor ebx, ebx
lea eax, [ebp - 0x203c]
push eax
lea eax, [ebp - 0x20a0]
push eax
push ebx
push 0
push 0x200
push 1
push 0
push 0
push dword [ebp - 0x2050]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x519e0c
mov eax, dword [ebp - 0x203c]
test eax, eax
je 0x519e0c
cmp dword [ebp - 0x2038], 0
je 0x519e0c
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp - 0x2020]
mov dword [ebp - 0x2018], 0
push eax
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x2020], 0
push eax
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x519dfc
cmp dword [ebp - 0x2020], 0
jbe 0x519dfc
push 0
lea eax, [ebp - 0x2018]
push eax
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x201c], eax
test eax, eax
je 0x519dfc
lea esp, [esp]
mov eax, dword [ebp - 0x2018]
test eax, eax
je 0x519df6
lea ebx, [ebp - 0x2010]
mov ecx, edi
add ebx, eax
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x519d52
mov ecx, dword [edi]
mov esi, dword [edi + 0x10]
lea edx, [esi + ecx]
mov ecx, edi
jb 0x519d5e
mov ecx, dword [edi]
add ecx, esi
mov esi, edi
sub edx, ecx
cmp eax, 0x10
jb 0x519d6b
mov esi, dword [edi]
lea eax, [ebp - 0x2010]
sub ecx, esi
sub ebx, eax
push ebx
push eax
push edx
push ecx
mov ecx, edi
call fcn.0051aa20
push 0
lea eax, [ebp - 0x2020]
mov dword [ebp - 0x2018], 0
push eax
lea eax, [ebp - 0x2018]
push eax
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x519de8
cmp dword [ebp - 0x2020], 0
je 0x519de8
push 0
lea eax, [ebp - 0x2018]
push eax
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x201c], eax
jmp 0x519dee
mov eax, dword [ebp - 0x201c]
test eax, eax
jne 0x519d30
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x203c]
call ebx
push dword [ebp - 0x2038]
call ebx
push dword [ebp - 0x2014]
call ebx
push dword [ebp - 0x2028]
call ebx
push dword [ebp - 0x202c]
call ebx
push dword [ebp - 0x2024]
call ebx
lea ecx, [ebp - 0x2050]
call fcn.00414470
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059df64
mov esp, ebp
pop ebp
ret