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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0xc
call fcn.005fffc4
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.005fffc4
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.005fffc4
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
push 0xc
call fcn.005fffc4
add esp, 4
mov dword [ebp - 0x24], eax
mov edi, eax
mov esi, 0x763bf0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
push 0x760402
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004cce90
add esp, 8
cmp eax, 0
jne 0x560f18
mov eax, 0x760402
jmp 0x56170f
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 0xc
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 1
mov dword [ebp - 0x30], esp
push 0
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_CreatePipe]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x560f7a
push 6
call fcn.005fffca
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 0x44
mov ebx, dword [ebp - 0x10]
add ebx, 0x2c
mov dword [ebp - 0x30], ebx
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.006082d0
add esp, 0x1c
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0x30
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov word [ebx], 0
mov ebx, dword [ebp - 0x10]
add ebx, 0x40
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0x44
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
push 0
mov ebx, 0x8d4
call fcn.00608c90
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
jg 0x561213
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.command.com__c
mov ecx, 2
call fcn.004c5686
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.005fffc4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 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 - 0x30]
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x561146
push 6
call fcn.005fffca
add esp, 4
push eax
mov ebx, dword [ebp - 0x38]
push ebx
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0051f73d
call fcn.0051f73d
call fcn.0051f73d
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.005fffbe
add esp, 4
pop eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x56120e
push ebx
call fcn.005fffbe
add esp, 4
jmp 0x56140e
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.cmd.exe__c
mov ecx, 2
call fcn.004c5686
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.005fffc4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 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 - 0x30]
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x561346
push 6
call fcn.005fffca
add esp, 4
push eax
mov ebx, dword [ebp - 0x38]
push ebx
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0051f73d
call fcn.0051f73d
call fcn.0051f73d
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.005fffbe
add esp, 4
pop eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x56140e
push ebx
call fcn.005fffbe
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x561430
push 6
call fcn.005fffca
add esp, 4
cmp dword [ebp - 0x18], 0xffffffff
je 0x5616ee
mov dword [ebp - 0x30], esp
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_PeekNamedPipe]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x561474
push 6
call fcn.005fffca
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x561675
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.00603860
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x5614b3
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], esp
push 0
lea eax, [ebp - 0x18]
push eax
push 0x3ff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5614d2
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x5614f2
push 6
call fcn.005fffca
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 0xa
push reloc.wsock32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x561517
mov eax, 0x760403
push eax
push 3
mov ebx, 0x19c
call fcn.00603990
add esp, 0x28
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
cmp ecx, reloc.wsock32.dll_connect
je 0x56154b
push 5
call fcn.005fffca
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x56155f
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x561642
mov ebx, dword [ebp - 0x24]
call fcn.004c6a80
mov eax, 0
cmp eax, ecx
jl 0x56159a
push 1
call fcn.005fffca
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esp
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5615cc
push 6
call fcn.005fffca
add esp, 4
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
mov dword [ebp - 0x30], esp
push 0
push 1
mov ebx, dword [ebp - 0x24]
call fcn.004c6a80
push ebx
push dword [ebp + 0xc]
mov eax, 0x763b04
test eax, eax
je 0x5615f6
add eax, 8
push eax
call dword [sym.imp.user32.dll_CallWindowProcA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x561613
push 6
call fcn.005fffca
add esp, 4
test eax, eax
je 0x561642
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x56163d
push 6
call fcn.005fffca
add esp, 4
jmp 0x5616ee
push dword [ebp - 0x20]
push dword [ebp - 0x28]
mov ecx, 2
call fcn.004c5686
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x56166c
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
jmp 0x5616d7
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esp
lea eax, [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x30]
push dword [ebx]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5616a3
push 6
call fcn.005fffca
add esp, 4
cmp dword [ebp - 0x2c], 0x103
je 0x5616d7
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x5616d2
push 6
call fcn.005fffca
add esp, 4
jmp 0x5616ee
push 0
mov ebx, 0x350
call fcn.00604120
add esp, 4
jmp 0x561430
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x56170a
push eax
mov ebx, eax
call fcn.004c561b
inc eax
push eax
call fcn.005fffc4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x56170f
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x561733
push ebx
call fcn.005fffbe
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x561747
push ebx
call fcn.005fffbe
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x56175b
push ebx
call fcn.005fffbe
add esp, 4
pop ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x561780
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x561790
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x5617ac
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc