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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 0xc
call fcn.100b8c3f
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
mov dword [ebp - 0x10], 0
push 0x48
call fcn.100b8c3f
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x12
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0x10
call fcn.100b8c3f
add esp, 4
mov dword [ebp - 0x20], 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 - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov dword [ebx], 0xc
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov dword [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov dword [ebx], 1
mov dword [ebp - 0x34], esp
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x1002e358
push 0xaf
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1002e36f
mov eax, 0x100d5289
jmp 0x1002eb8e
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov dword [ebx], 0x44
mov ebx, dword [ebp - 0x14]
add ebx, 0x2c
mov dword [ebp - 0x34], ebx
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 0x100
push 2
mov ebx, 0xc8
call fcn.100bab10
add esp, 0x1c
mov ebx, dword [ebp - 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0x30
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov word [ebx], 0
mov ebx, dword [ebp - 0x14]
add ebx, 0x3c
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0x40
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0x44
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x34]
mov dword [ebx], eax
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x1002e40f
mov eax, 0x100d5289
push eax
push 1
mov ebx, 0x194
call fcn.100ba1f0
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0
mov ebx, 0x8d4
call fcn.100bf3d0
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 2
mov eax, 0
setle al
test eax, eax
je 0x1002e458
mov eax, str.command.com__c
jmp 0x1002e45d
mov eax, str.cmd.exe__c
mov dword [ebp - 0x40], eax
push 1
push 1
lea eax, [ebp - 0x40]
push eax
call fcn.10001659
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x1002e483
push ebx
call fcn.100b8c45
add esp, 4
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x44]
mov ecx, 2
call fcn.1000173e
add esp, 8
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1002e4ab
push ebx
call fcn.100b8c45
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1002e4bf
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
fld qword [0x100de8e4]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.10001795
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.100b9960
add esp, 0x10
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.1000173e
add esp, 8
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1002e520
push ebx
call fcn.100b8c45
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1002e534
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100019c1
mov dword [ebp - 0x34], eax
lea eax, [ebp - 4]
push eax
call fcn.1002ebea
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push eax
push 0x44
call fcn.100b8c3f
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 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 dword [ebp - 0x38]
push dword [ebp - 0x34]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x1002e671
push 0x405
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x40]
push ebx
mov edi, dword [ebp - 0x44]
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 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.100b8c45
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x1002e767
push 0x44a
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x1002e7a7
mov dword [ebp - 0x34], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x1002e79d
push 0x494
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
mov eax, 0x100d5289
jmp 0x1002eb8e
mov ebx, dword [ebp - 0x20]
add ebx, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
mov ebx, dword [ebp - 0x34]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x1002e7de
push 0x4c5
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
push 0x3e8
mov ebx, dword [ebp - 0x34]
push dword [ebx]
xor eax, eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x1002e817
push 0x4e8
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
cmp dword [ebp - 0x24], 0xffffffff
je 0x1002ea6c
mov dword [ebp - 0x34], esp
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x1002e865
push 0x54f
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
cmp dword [ebp - 0x24], 0
jle 0x1002e9ef
push 0x80000301
push 0
push dword [ebp - 0x24]
push 1
mov ebx, 0x1bc
call fcn.100b9960
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x1002e8a2
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esp
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1002e8bf
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x1002e8e9
push 0x5f2
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
mov ecx, 2
call fcn.1000173e
add esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x1002e913
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x1002e9ea
cmp dword [ebp + 0x14], 0
je 0x1002e968
push 0x3a8
lea eax, [ebp - 0x28]
push eax
call fcn.100017bc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x1002e95f
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
jmp 0x1002e998
push 0x100d5278
push dword [ebp - 0x28]
mov ecx, 2
call fcn.1000173e
add esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x1002e994
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.100019c1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
push 1
push dword [ebp - 0x34]
push dword [ebp + 0xc]
call fcn.1002ec06
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
mov eax, 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002e9ea
jmp 0x1002ea6c
jmp 0x1002ea39
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x34]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x1002ea27
push 0x7fd
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
cmp dword [ebp - 0x30], 0x103
je 0x1002ea39
jmp 0x1002ea6c
mov dword [ebp - 0x34], esp
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x1002ea67
push 0x883
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
jmp 0x1002e817
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
mov ebx, dword [ebp - 0x34]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x1002eaa0
push 0x8b3
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
mov dword [ebp - 0x34], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x1002eacc
push 0x8d6
push 0x40618d5
push 6
call fcn.100b8c4b
add esp, 0xc
mov eax, 0x100d5289
xor ecx, ecx
test eax, eax
je 0x1002eada
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
test eax, eax
je 0x1002eaeb
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x1002eb02
dec eax
test ecx, ecx
je 0x1002eb02
call fcn.100228c3
add esp, 0xc
test eax, eax
jne 0x1002eb17
mov eax, 0x100d5289
jmp 0x1002eb8e
cmp dword [ebp + 0x14], 0
je 0x1002eb3f
push 0x3a8
lea eax, [ebp - 0x2c]
push eax
call fcn.100017bc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
jmp 0x1002eb8e
push 0x100d5278
push dword [ebp - 0x2c]
mov ecx, 2
call fcn.1000173e
add esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x1002eb6b
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1002eb89
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100b8c3f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1002eb8e
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.100b8c45
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.100b8c45
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1002ebb7
push ebx
call fcn.100b8c45
add esp, 4
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.100b8c45
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x1002ebd3
push ebx
call fcn.100b8c45
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x1002ebe3
push ebx
call fcn.100b8c45
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14