Function at 0x561028
Capabilities:
Create pipe
Create process on windows
Create process suspended
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 0xc
call fcn.005769bd
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x48
call fcn.005769bd
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x12
rep stosd dword es:[edi], eax
push 0x10
call fcn.005769bd
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], 0xc
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], 1
mov dword [ebp - 0x2c], esp
push 0
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
xor eax, eax
call dword [sym.imp.kernel32.dll_CreatePipe]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x56113e
push 0x84
push 0x439731d
push 6
call fcn.005769b1
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], 0x44
mov ebx, dword [ebp - 0x10]
add ebx, 0x2c
mov dword [ebp - 0x2c], ebx
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.00578360
add esp, 0x1c
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0x30
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov word [ebx], 0
mov ebx, dword [ebp - 0x10]
add ebx, 0x40
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0x44
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
push 0
mov ebx, 0x8d4
call fcn.0057c780
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 2
jg 0x5613e1
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.command.com__c
mov ecx, 2
call fcn.0046190c
add esp, 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.005769bd
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp - 0x2c]
push 0
xor eax, eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x561314
push 0x258
push 0x439731d
push 6
call fcn.005769b1
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x34]
push ebx
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.00560ff0
call fcn.00560ff0
call fcn.00560ff0
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.005769c9
add esp, 4
pop eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x5613dc
push ebx
call fcn.005769c9
add esp, 4
jmp 0x5615e6
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.cmd.exe__c
mov ecx, 2
call fcn.0046190c
add esp, 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.005769bd
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp - 0x2c]
push 0
xor eax, eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x56151e
push 0x32f
push 0x439731d
push 6
call fcn.005769b1
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x34]
push ebx
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.00560ff0
call fcn.00560ff0
call fcn.00560ff0
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.005769c9
add esp, 4
pop eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x5615e6
push ebx
call fcn.005769c9
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.kernel32.dll_CloseHandle_1]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x561612
push 0x3ae
push 0x439731d
push 6
call fcn.005769b1
add esp, 0xc
cmp dword [ebp - 0x18], 0xffffffff
je 0x561890
mov dword [ebp - 0x2c], esp
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.kernel32.dll_PeekNamedPipe]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x561660
push 0x47a
push 0x439731d
push 6
call fcn.005769b1
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x561803
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.00578e70
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x56169f
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], esp
push 0
lea eax, [ebp - 0x18]
push eax
push 0x3ff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5616be
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.kernel32.dll_ReadFile_1]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x5616e8
push 0x540
push 0x439731d
push 6
call fcn.005769b1
add esp, 0xc
push 0
push 0
push 0
push 0x80000301
push 0
push 0xa
push VariantClear
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x56170d
mov eax, 0x834e87
push eax
push 3
mov ebx, 0x19c
call fcn.00578fb0
add esp, 0x28
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x80000004
je 0x56174b
push 0x5bd
push 0x439731d
push 5
call fcn.005769b1
add esp, 0xc
push dword [ebp - 0x34]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.0046190c
add esp, 8
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x80000004
je 0x561778
cmp ecx, 0x80000005
jne 0x561788
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x561788
push ebx
call fcn.005769c9
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x56179c
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0xc], 0
je 0x5617fe
push 0x835633
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.004b92c0
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x5617d6
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0056193c
push eax
push dword [ebp + 0xc]
call fcn.00561964
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jle 0x5617fe
jmp 0x561890
jmp 0x561879
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x56183b
push 0x716
push 0x439731d
push 6
call fcn.005769b1
add esp, 0xc
cmp dword [ebp - 0x28], 0x103
je 0x561879
mov dword [ebp - 0x2c], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.kernel32.dll_CloseHandle_1]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x561874
push 0x7fe
push 0x439731d
push 6
call fcn.005769b1
add esp, 0xc
jmp 0x561890
push 0
mov ebx, 0x350
call fcn.005782f0
add esp, 4
jmp 0x561612
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5618ac
push eax
mov ebx, eax
call fcn.0045ad44
inc eax
push eax
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x5618b1
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x5618d5
push ebx
call fcn.005769c9
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x5618e9
push ebx
call fcn.005769c9
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x5618fd
push ebx
call fcn.005769c9
add esp, 4
pop ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x561922
push ebx
call fcn.005769c9
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x561932
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc