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

Disassembly:
push ebp
sub esp, 0x5c
lea ebp, [esp - 4]
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push 0x54
mov eax, 0x559aed
call fcn.0052b327
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp + 0x70]
xor ebx, ebx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0xc], ecx
cmp eax, ebx
je 0x428a7c
push eax
call fcn.0052ab50
pop ecx
test eax, eax
jbe 0x428a7c
xor eax, eax
lea edi, [ebp]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
lea eax, [ebp]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp + 0x23], bl
mov dword [ebp], 0xc
mov dword [ebp + 4], ebx
mov dword [ebp + 8], 1
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x428a77
cmp dword [ebp + 0x18], ebx
je 0x428a77
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.0052b590
or dword [ebp - 0x28], 0xffffffff
add esp, 0xc
push 0xf
mov dword [ebp - 0x60], edi
pop edi
push ebx
lea ecx, [ebp + 0x40]
mov dword [ebp - 0x34], 0x100
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp + 0x58], edi
call fcn.00403335
push dword [ebp + 0x14]
lea ecx, [ebp + 0x40]
mov dword [ebp - 4], ebx
call fcn.0040590d
push 0x591d6c
lea ecx, [ebp + 0x40]
call fcn.0040590d
push dword [ebp + 0x1c]
lea ecx, [ebp + 0x40]
call fcn.0040590d
cmp dword [ebp + 0x58], 0x10
mov eax, dword [ebp + 0x44]
jae 0x428986
lea eax, [ebp + 0x44]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push ebx
push ebx
push 0x8000000
push 1
push ebx
push ebx
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne byte [ebp + 0x23]
call esi
mov dword [ebp + 0x10], ebx
cmp byte [ebp + 0x23], bl
je 0x428a4c
cmp dword [ebp + 0xc], ebx
je 0x428a4c
push ebx
lea ecx, [ebp + 0x24]
mov byte [ebp + 0x1c], bl
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x3c], edi
call fcn.00403335
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x428a2a
cmp dword [ebp + 0x14], ebx
jbe 0x428a3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x428a3e
cmp byte [ebp + 0x1c], 0xa
jne 0x428a1d
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x24]
push eax
call fcn.00405e8f
lea ecx, [ebp + 0x24]
call fcn.0040ddc1
jmp 0x428a2a
push dword [ebp + 0x1c]
lea ecx, [ebp + 0x24]
push 1
call fcn.0040592e
push ebx
lea eax, [ebp + 0x14]
push eax
push 1
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
call edi
test eax, eax
jne 0x4289ee
push ebx
push 1
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], bl
call fcn.00402d14
push dword [ebp + 0x18]
call esi
mov dword [ebp + 0x18], ebx
cmp dword [ebp - 0x18], ebx
je 0x428a5e
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x428a68
push dword [ebp - 0x1c]
call esi
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x40]
call fcn.00402d14
mov al, byte [ebp + 0x23]
jmp 0x428a7e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.0052b318
add ebp, 0x60
leave
ret