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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ee793
mov eax, dword fs:[0]
push eax
mov eax, 0x1094
call fcn.1018f810
mov eax, dword [0x1028dc74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x102c], ebx
mov dword [ebp - 0x102c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
push 0
lea eax, [ebp - 0x1048]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x1048], 0xc
push eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x1044], 0
push eax
mov dword [ebp - 0x1040], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1000ae30
sub esp, 0x18
lea eax, [ebp - 0x1028]
mov ecx, esp
push eax
call fcn.10002100
mov ecx, ebx
call fcn.1000a740
mov edx, dword [ebp - 0x1014]
add esp, 0x18
cmp edx, 0x10
jb 0x1000adde
mov ecx, dword [ebp - 0x1028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000add4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b099
push edx
push ecx
call fcn.1018edab
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
cmp edx, 0x10
jb 0x1000b07b
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000b071
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b09e
jmp 0x1000b071
xorps xmm0, xmm0
mov dword [ebp - 0x10a0], 0x44
lea eax, [ebp - 0x10a0]
movlpd qword [ebp - 0x109c], xmm0
push eax
movlpd qword [ebp - 0x1094], xmm0
movlpd qword [ebp - 0x108c], xmm0
movlpd qword [ebp - 0x1084], xmm0
movlpd qword [ebp - 0x107c], xmm0
movlpd qword [ebp - 0x1074], xmm0
movlpd qword [ebp - 0x106c], xmm0
movlpd qword [ebp - 0x1064], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x1034]
mov dword [ebp - 0x1060], eax
mov dword [ebp - 0x1064], eax
xor eax, eax
mov word [ebp - 0x1070], ax
mov eax, dword [ebp + 0x18]
inc eax
mov dword [ebp - 0x1074], 0x101
push eax
call fcn.1018edb9
add esp, 4
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov esi, eax
mov dword [ebp - 0x102c], esi
cmovae ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x18]
inc ecx
push ecx
push esi
call fcn.101b686d
add esp, 0xc
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x10a0]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000af13
push esi
call fcn.1018ede5
sub esp, 0x14
jmp 0x1000ad8c
push 0x1388
push dword [ebp - 0x1058]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000af39
push 0
push dword [ebp - 0x1058]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x1054]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1058]
call esi
push dword [ebp - 0x1034]
call esi
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.101a8300
add esp, 0xc
lea eax, [ebp - 0x103c]
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1030]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000b056
nop word [eax + eax]
lea esi, [ebp - 0x1010]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000afb0
mov edx, dword [ebp - 0x1014]
sub esi, ecx
mov ecx, dword [ebp - 0x1018]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x1000afff
lea eax, [esi + ecx]
cmp edx, 0x10
mov dword [ebp - 0x1018], eax
lea edi, [ebp - 0x1028]
cmovae edi, dword [ebp - 0x1028]
lea eax, [ebp - 0x1010]
add edi, ecx
push eax
push edi
call fcn.101a7d80
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x1000b01f
lea eax, [ebp - 0x1010]
mov byte [ebp - 0x1038], 0
push eax
push dword [ebp - 0x1038]
lea ecx, [ebp - 0x1028]
push esi
call fcn.10002470
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x103c]
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1030]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000afa0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1030]
call esi
push dword [ebp - 0x102c]
call fcn.1018ede5
sub esp, 0x14
jmp 0x1000ad8c
push edx
push ecx
call fcn.1018edab
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018ea37
mov esp, ebp
pop ebp
ret
call fcn.101adaf3
call fcn.101adaf3
int3