Function at 0x10002350
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011146
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.10005df0
mov eax, dword [0x10019034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
push 0x1001228a
mov ecx, dword [ebp + 0x38]
call fcn.10002fb0
push 0x100122b0
mov ecx, dword [ebp + 0x3c]
call fcn.10002fd0
mov dword [ebp - 0x1078], 0xc
xor eax, eax
mov dword [ebp - 0x1074], eax
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x1070], 1
mov dword [ebp - 0x1074], 0
push 0
lea ecx, [ebp - 0x1078]
push ecx
lea edx, [ebp - 0x1050]
push edx
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000241a
mov byte [ebp - 0x1041], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10002f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.10002f40
mov al, byte [ebp - 0x1041]
jmp 0x100026f7
push 0x44
push 0
lea ecx, [ebp - 0x10cc]
push ecx
call fcn.10006570
add esp, 0xc
mov dword [ebp - 0x10cc], 0x44
push 0x10
push 0
lea edx, [ebp - 0x1088]
push edx
call fcn.10006570
add esp, 0xc
mov dword [ebp - 0x10a0], 0x101
mov eax, dword [ebp - 0x1050]
mov dword [ebp - 0x1090], eax
mov ecx, dword [ebp - 0x1050]
mov dword [ebp - 0x108c], ecx
xor edx, edx
mov word [ebp - 0x109c], dx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1028]
call fcn.10002d40
mov byte [ebp - 4], 2
push 0x100122b4
lea ecx, [ebp - 0x1028]
call fcn.10003010
lea ecx, [ebp - 0x1028]
call fcn.10004460
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10005ab7
add esp, 4
mov dword [ebp - 0x1060], eax
mov eax, dword [ebp - 0x1060]
mov dword [ebp - 0x104c], eax
lea ecx, [ebp - 0x1028]
call fcn.100041c0
push eax
mov ecx, dword [ebp - 0x104c]
push ecx
call fcn.10009153
add esp, 8
lea ecx, [ebp - 0x1028]
call fcn.10004460
xor edx, edx
mov ecx, dword [ebp - 0x104c]
mov word [ecx + eax*2], dx
lea edx, [ebp - 0x1088]
push edx
lea eax, [ebp - 0x10cc]
push eax
lea ecx, [ebp + 0x20]
call fcn.100041c0
push eax
push 0
push 0
push 1
push 0
push 0
mov ecx, dword [ebp - 0x104c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x1064], eax
cmp dword [ebp - 0x1064], 0
jne 0x1000257e
mov byte [ebp - 0x1042], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1028]
call fcn.10002f40
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10002f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.10002f40
mov al, byte [ebp - 0x1042]
jmp 0x100026f7
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1088]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov eax, dword [ebp - 0x1088]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x1050]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100025e9
mov byte [ebp - 0x1043], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1028]
call fcn.10002f40
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10002f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.10002f40
mov al, byte [ebp - 0x1043]
jmp 0x100026f7
push 0
lea edx, [ebp - 0x1058]
push edx
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 0x105c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002624
cmp dword [ebp - 0x1058], 0
je 0x10002624
mov dword [ebp - 0x1054], 0
jmp 0x1000262e
mov dword [ebp - 0x1054], 1
mov dl, byte [ebp - 0x1054]
mov byte [ebp - 0x1044], dl
movzx eax, byte [ebp - 0x1044]
test eax, eax
je 0x10002647
jmp 0x10002699
mov ecx, dword [ebp - 0x1058]
push ecx
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x1040]
call fcn.10002cd0
mov dword [ebp - 0x1068], eax
mov eax, dword [ebp - 0x1068]
mov dword [ebp - 0x106c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x106c]
push ecx
mov ecx, dword [ebp + 0x38]
call fcn.10002ff0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1040]
call fcn.10002ef0
jmp 0x100025e9
mov edx, dword [ebp - 0x105c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1088]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1084]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x1045], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1028]
call fcn.10002f40
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10002f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.10002f40
mov al, byte [ebp - 0x1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100055f1
mov esp, ebp
pop ebp
ret