Function at 0x4280eb
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, 0x559bd4
call fcn.0052b4a7
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 0x4282e2
push eax
call fcn.0052acd0
pop ecx
test eax, eax
jbe 0x4282e2
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 0x4282dd
cmp dword [ebp + 0x18], ebx
je 0x4282dd
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.0052b710
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.00403320
push dword [ebp + 0x14]
lea ecx, [ebp + 0x40]
mov dword [ebp - 4], ebx
call fcn.00405890
push 0x591d6c
lea ecx, [ebp + 0x40]
call fcn.00405890
push dword [ebp + 0x1c]
lea ecx, [ebp + 0x40]
call fcn.00405890
cmp dword [ebp + 0x58], 0x10
mov eax, dword [ebp + 0x44]
jae 0x4281ec
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 0x4282b2
cmp dword [ebp + 0xc], ebx
je 0x4282b2
push ebx
lea ecx, [ebp + 0x24]
mov byte [ebp + 0x1c], bl
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x3c], edi
call fcn.00403320
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x428290
cmp dword [ebp + 0x14], ebx
jbe 0x4282a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4282a4
cmp byte [ebp + 0x1c], 0xa
jne 0x428283
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x24]
push eax
call fcn.00405e12
lea ecx, [ebp + 0x24]
call fcn.0040d864
jmp 0x428290
push dword [ebp + 0x1c]
lea ecx, [ebp + 0x24]
push 1
call fcn.004058b1
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 0x428254
push ebx
push 1
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], bl
call fcn.00402cff
push dword [ebp + 0x18]
call esi
mov dword [ebp + 0x18], ebx
cmp dword [ebp - 0x18], ebx
je 0x4282c4
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x4282ce
push dword [ebp - 0x1c]
call esi
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x40]
call fcn.00402cff
mov al, byte [ebp + 0x23]
jmp 0x4282e4
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.0052b498
add ebp, 0x60
leave
ret