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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ebx, dword [0x100f8836]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0xc
mov ebx, dword [0x100f8836]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0
mov ebx, dword [0x100f8836]
add ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 1
mov dword [ebp - 4], esp
push 0
push dword [0x100f8836]
push 0x100f883e
push 0x100f883a
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
nop
nop
cmp dword [ebp - 4], esp
je 0x10004562
push 0x84
push 0x4011964
push 6
call fcn.1001ee16
add esp, 0xc
mov ebx, dword [0x100f8842]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0x44
mov ebx, dword [0x100f8842]
add ebx, 0x2c
mov dword [ebp - 4], ebx
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.10020210
add esp, 0x1c
mov ebx, dword [ebp - 4]
mov dword [ebx], eax
mov ebx, dword [0x100f8842]
add ebx, 0x30
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
mov word [ebx], 0
mov ebx, dword [0x100f8842]
add ebx, 0x40
mov dword [ebp - 4], ebx
mov eax, dword [0x100f883e]
mov ebx, dword [ebp - 4]
mov dword [ebx], eax
mov ebx, dword [0x100f8842]
add ebx, 0x44
mov dword [ebp - 4], ebx
mov eax, dword [0x100f883e]
mov ebx, dword [ebp - 4]
mov dword [ebx], eax
push 0
mov ebx, 0x8d4
call fcn.10020230
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jg 0x1000481d
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.command.com__c
mov ecx, 2
call fcn.10003afe
add esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [0x100f8846]
mov eax, dword [0x100f8842]
push eax
push 0x44
call fcn.1001ee28
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 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 - 4]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
nop
nop
cmp dword [ebp - 8], esp
je 0x10004750
push 0x258
push 0x4011964
push 6
call fcn.1001ee16
add esp, 0xc
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov edi, dword [ebp - 0x10]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.100044a8
call fcn.100044a8
call fcn.100044a8
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.1001ee2e
add esp, 4
pop eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10004818
push ebx
call fcn.1001ee2e
add esp, 4
jmp 0x10004a27
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.cmd.exe__c
mov ecx, 2
call fcn.10003afe
add esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [0x100f8846]
mov eax, dword [0x100f8842]
push eax
push 0x44
call fcn.1001ee28
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 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 - 4]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000495f
push 0x32f
push 0x4011964
push 6
call fcn.1001ee16
add esp, 0xc
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov edi, dword [ebp - 0x10]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.100044a8
call fcn.100044a8
call fcn.100044a8
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.1001ee2e
add esp, 4
pop eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10004a27
push ebx
call fcn.1001ee2e
add esp, 4
mov dword [ebp - 4], esp
push dword [0x100f883e]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 4], esp
je 0x10004a56
push 0x3ae
push 0x4011964
push 6
call fcn.1001ee16
add esp, 0xc
cmp dword [0x100f884a], 0xffffffff
je 0x10004c9f
mov dword [ebp - 4], esp
push 0
push 0x100f884a
push 0
push 0
push 0
push dword [0x100f883a]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
nop
nop
cmp dword [ebp - 4], esp
je 0x10004aab
push 0x47a
push 0x4011964
push 6
call fcn.1001ee16
add esp, 0xc
cmp dword [0x100f884a], 0
je 0x10004c08
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.100202b0
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ebx, dword [0x100f884e]
test ebx, ebx
je 0x10004af0
push ebx
call fcn.1001ee2e
add esp, 4
pop eax
mov dword [0x100f884e], eax
mov dword [ebp - 4], esp
push 0
push 0x100f884a
push 0x3ff
mov eax, dword [0x100f884e]
test eax, eax
je 0x10004b14
add eax, 8
push eax
push dword [0x100f883a]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 4], esp
je 0x10004b41
push 0x540
push 0x4011964
push 6
call fcn.1001ee16
add esp, 0xc
push 0
push 0
push 0
push 0x80000301
push 0
push 0xa
push SysStringLen
push 0
mov eax, dword [0x100f884e]
test eax, eax
jne 0x10004b68
mov eax, 0x100e9225
push eax
push 3
mov ebx, 0x19c
call fcn.100203e0
add esp, 0x28
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, 0x80000004
je 0x10004ba6
push 0x5bd
push 0x4011964
push 5
call fcn.1001ee16
add esp, 0xc
push dword [ebp - 0xc]
push dword [0x100f8852]
mov ecx, 2
call fcn.10003afe
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
cmp ecx, 0x80000004
je 0x10004bd6
cmp ecx, 0x80000005
jne 0x10004be6
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10004be6
push ebx
call fcn.1001ee2e
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x100f8852]
test ebx, ebx
je 0x10004bfd
push ebx
call fcn.1001ee2e
add esp, 4
pop eax
mov dword [0x100f8852], eax
jmp 0x10004c88
mov ebx, dword [0x100f8846]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
push 0x100f8856
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop
nop
cmp dword [ebp - 8], esp
je 0x10004c44
push 0x5df
push 0x4011964
push 6
call fcn.1001ee16
add esp, 0xc
cmp dword [0x100f8856], 0x103
je 0x10004c88
mov dword [ebp - 4], esp
push dword [0x100f883a]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 4], esp
je 0x10004c83
push 0x6c7
push 0x4011964
push 6
call fcn.1001ee16
add esp, 0xc
jmp 0x10004c9f
push 0
mov ebx, 0x350
call fcn.10020580
add esp, 4
jmp 0x10004a56
mov eax, dword [0x100f8852]
test eax, eax
je 0x10004cbd
push eax
mov ebx, eax
call fcn.10003a93
inc eax
push eax
call fcn.1001ee28
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10004cc2
mov esp, ebp
pop ebp
ret 4