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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10180078
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x144], 0xc
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 1
push 0x104
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
jne 0x10039893
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003ed0
jmp 0x10039ab8
push 0x44
push 0
lea eax, [ebp - 0x198]
push eax
call fcn.1009f7e0
add esp, 0xc
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x158], edx
xor eax, eax
mov word [ebp - 0x168], ax
mov dword [ebp - 0x198], 0x44
mov dword [ebp - 0x16c], 0x101
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x130]
call fcn.1001ae30
mov byte [ebp - 4], 1
push 0x104
push 0
lea edx, [ebp - 0x114]
push edx
call fcn.1009f7e0
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.10003d90
push eax
lea ecx, [ebp - 0x130]
call fcn.10003db0
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.1009f9a0
add esp, 0xc
mov dword [ebp - 0x1b4], 0
lea ecx, [ebp - 0x154]
push ecx
lea edx, [ebp - 0x198]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp + 8]
call fcn.10003db0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10039a9a
push 0xffffffffffffffff
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1a8], 0x100000
mov ecx, dword [ebp - 0x1a8]
add ecx, 1
push ecx
call fcn.10053757
add esp, 4
mov dword [ebp - 0x1b0], eax
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1a0], edx
cmp dword [ebp - 0x1a0], 0
jne 0x100399d1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.10003ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003ed0
jmp 0x10039ab8
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1bc], 0
mov eax, dword [ebp - 0x1a8]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x1a0]
push ecx
call fcn.1009f7e0
add esp, 0xc
mov dword [ebp - 0x118], 0
push 0
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x1a8]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10039a3b
mov byte [ebp - 0x199], 1
jmp 0x10039a42
mov byte [ebp - 0x199], 0
mov al, byte [ebp - 0x199]
mov byte [ebp - 0x1a1], al
cmp dword [ebp - 0x118], 0
je 0x10039a66
mov ecx, dword [ebp - 0x1a0]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.1001ad20
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.10003ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003ed0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret