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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x4a0
mov ebx, edx
mov edi, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x498], eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x84], 0xc
mov dword [esp + 0x8c], 1
mov dword [esp + 0x88], 0
lea eax, [esp + 0x84]
lea ecx, [esp + 0x90]
lea edx, [esp + 0x94]
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
xor esi, esi
test eax, eax
je 0x4b8a11
mov dword [esp + 4], edi
mov edi, dword [esp + 0x94]
test edi, edi
je 0x4b8a23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
je 0x4b8a18
call fcn.00499510
jmp 0x4b8a1a
xor ebx, ebx
jmp 0x4b8e32
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
mov edi, dword [esp + 0x90]
test edi, edi
mov dword [esp + 8], esi
je 0x4b8a4b
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
je 0x4b8a4f
mov ebx, edi
call fcn.00499510
jmp 0x4b8a51
xor edi, edi
jmp 0x4b8a61
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 8]
mov edi, ebx
mov ebx, dword [esp]
push 0
push 1
push dword [esp + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4b8ad1
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x80], 0xffffffff
test ebx, ebx
mov dword [esp], edi
je 0x4b8ad8
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x80], 0
cmp ebx, 0x7ffffff0
jae 0x4b8e4a
cmp ebx, 5
jae 0x4b8af5
mov byte [esp + 0x83], bl
lea edi, [esp + 0x78]
jmp 0x4b8b24
xor ebx, ebx
jmp 0x4b8e06
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x80], 0
jmp 0x4b8b3e
lea esi, [ebx + 8]
and esi, 0xfffffff8
js 0x4b8e53
lea eax, [esi + esi]
push eax
call fcn.0064173e
add esp, 4
mov edi, eax
mov dword [esp + 0x78], eax
or esi, 0x80000000
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
lea eax, [ebx + ebx]
push eax
push dword [esp + 8]
push edi
call fcn.006452d0
add esp, 0xc
mov word [edi + ebx*2], 0
mov edi, dword [esp]
xorps xmm0, xmm0
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x58], xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x34], 0x44
mov eax, dword [esp + 0x90]
mov dword [esp + 0x70], eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 0x6c], eax
cmp byte [ebp + 8], 0
je 0x4b8b8c
mov eax, dword [esp + 0x90]
mov dword [esp + 0x74], eax
mov eax, 0x100
jmp 0x4b8ba1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 0x74], eax
mov eax, 0x100
or eax, dword [esp + 0x60]
mov dword [esp + 0x60], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
cmp byte [esp + 0x83], 0
jns 0x4b8bbd
mov eax, dword [esp + 0x78]
jmp 0x4b8bc1
lea eax, [esp + 0x78]
sub esp, 0x28
lea esi, [esp + 0x48]
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], ecx
movdqa xmm0, xmmword [0x676a60]
movdqu xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4b8c63
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
lea ecx, [esp + 0x10]
push esi
call fcn.0056d060
mov edi, dword [0x7058a4]
test edi, edi
je 0x4b8d05
test ebx, ebx
je 0x4b8c6a
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
cmp ebx, 5
jae 0x4b8c8d
mov byte [esp + 0xa3], bl
lea esi, [esp + 0x98]
jmp 0x4b8cc2
xor ebx, ebx
jmp 0x4b8dec
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
jmp 0x4b8cd9
lea esi, [ebx + 8]
and esi, 0xfffffff8
js 0x4b8e53
lea eax, [esi + esi]
push eax
call fcn.0064173e
add esp, 4
mov dword [esp + 0x98], eax
or esi, 0x80000000
mov dword [esp + 0xa0], esi
mov esi, eax
mov dword [esp + 0x9c], ebx
lea eax, [ebx + ebx]
push eax
push dword [esp + 8]
push esi
call fcn.006452d0
add esp, 0xc
mov word [esi + ebx*2], 0
lea eax, [esp + 0x98]
mov ecx, edi
push eax
push dword [esp + 0x1c]
call fcn.005571e0
cmp byte [esp + 0xa3], 0
jns 0x4b8d05
push dword [esp + 0x98]
call fcn.006417be
add esp, 4
mov esi, dword [esp]
test esi, esi
je 0x4b8d1a
call fcn.00499510
push esi
call fcn.004bbc10
add esp, 4
lea ebx, [esp + 0x98]
push 0x400
push 0xff
push ebx
call fcn.00645dd0
add esp, 0xc
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push 0
push eax
push 0x400
push ebx
push dword [esp + 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b8da3
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4b8da3
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [eax + eax]
mov ecx, esi
push eax
push ebx
call fcn.0048deea
mov dword [esp + 0xc], 0
push 0
lea eax, [esp + 0x10]
push eax
push 0x400
push ebx
push dword [esp + 0xa4]
call edi
test eax, eax
je 0x4b8da3
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4b8d70
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 0x10]
push edi
push dword [esp + 0x14]
call fcn.0056d290
add esp, 8
mov esi, eax
mov eax, dword [edi]
mov edx, dword [esp + 0x18]
mov ecx, dword [0x7058a4]
test ecx, ecx
je 0x4b8dd8
push eax
push edx
call fcn.00557460
and esi, 0xfffffffd
cmp esi, 1
setne bl
lea ecx, [esp + 0x10]
call fcn.0056d1c0
xor edi, edi
cmp byte [esp + 0x83], 0
mov esi, dword [esp + 8]
jns 0x4b8e06
push dword [esp + 0x78]
call fcn.006417be
add esp, 4
lea eax, [edi + 1]
cmp eax, 2
jb 0x4b8e1c
call fcn.00499510
push edi
call fcn.004bbc10
add esp, 4
lea eax, [esi + 1]
cmp eax, 2
jb 0x4b8e32
call fcn.00499510
push esi
call fcn.004bbc10
add esp, 4
mov ecx, dword [esp + 0x498]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x78]
call fcn.0048da34
call fcn.00656a75
int3