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

Disassembly:
push 0xffffffffffffffff
push 0x42b649
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x435ad8]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435ad8]
xor eax, esp
push eax
lea eax, [esp + 0x1ac]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], ebx
xor eax, eax
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
push ebx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x44], 0xc
mov dword [esp + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0x44
lea eax, [esp + 0x60]
push ebx
push eax
call fcn.00418020
mov esi, dword [esp + 0x1c8]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x94], pe_nt_image_headers32
mov dword [esp + 0xa0], ebx
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0xc
or ecx, eax
jge 0x4071ea
push ebx
lea ecx, [esp + 0x1c0]
call fcn.00406340
mov esi, dword [esp + 0x1bc]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x60]
push edx
push ebx
push ebx
push 0x8000020
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov eax, dword [esp + 0x20]
push eax
call ebp
test ebx, ebx
jne 0x40727e
mov ecx, dword [esp + 0x18]
push ecx
call ebp
push 0x42f5ec
mov ecx, edi
call fcn.00406920
lea eax, [esi - 0x10]
mov dword [esp + 0x1b4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004149ab
add esp, 0x1a4
ret
push 0xff
lea ecx, [esp + 0xa9]
push 0
push ecx
mov byte [esp + 0xb0], 0
call fcn.00418020
add esp, 0xc
call fcn.004091c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4072b7
push 0x80004005
call fcn.004061d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
mov byte [esp + 0x1b4], 1
call fcn.004091c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4072e9
push 0x80004005
call fcn.004061d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1b4], 2
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0x64
lea edx, [esp + 0xb0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xa4]
lea ecx, [eax + 1]
jmp 0x407330
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407330
sub eax, ecx
push eax
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406780
mov edx, dword [esp + 0x48]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
call fcn.00407dc0
mov byte [esp + 0x1b4], 3
mov eax, dword [eax]
mov ebx, dword [eax - 0xc]
mov edx, dword [esi - 0xc]
mov ebp, eax
mov dword [esp + 0x24], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [edx + ebx]
sub eax, edi
sub ebp, esi
or eax, ecx
mov dword [esp + 0x30], edx
jge 0x4073a2
push edi
lea ecx, [esp + 0x2c]
call fcn.00406340
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
cmp ebp, edx
ja 0x4073ac
add ebp, esi
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x24]
push ebx
push ecx
add edx, esi
push ebx
push edx
call fcn.00414af4
add esp, 0x10
test edi, edi
jl 0x4074a9
cmp edi, dword [esi - 8]
jg 0x4074a9
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov byte [esp + 0x1b4], 2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4073fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x2c], 0
jne 0x407301
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x50]
push edx
call edi
mov eax, dword [esp + 0x4c]
push eax
call edi
add esi, 0xfffffff0
push esi
call fcn.00406690
mov edi, dword [esp + 0x48]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1b8], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1b4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407482
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x1b4], 0xffffffff
mov eax, dword [esp + 0x1bc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x407248
push 0x80070057
call fcn.004061d0
int3