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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f12b
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x42f8
call fcn.0047a9b0
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x42d1], dl
mov dword [ebp - 0x4250], ecx
mov edx, dword [0x4a1e98]
push ecx
mov ecx, dword [0x4a1e94]
call fcn.0040aba0
mov eax, dword [0x4a1e94]
add esp, 4
mov dword [0x4a1e98], eax
lea eax, [ebp - 0x4274]
mov dword [ebp - 0x4260], 0
mov dword [ebp - 0x4264], 0
push 0
push eax
lea eax, [ebp - 0x425c]
mov dword [ebp - 0x4258], 0
push eax
lea eax, [ebp - 0x4258]
mov dword [ebp - 0x425c], 0
push eax
mov dword [ebp - 0x4274], 0xc
mov dword [ebp - 0x426c], 1
mov dword [ebp - 0x4270], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4467b3
push dword [ebp - 0x4258]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x425c]
call esi
mov dword [ebp - 0x4258], 0
mov dword [ebp - 0x425c], 0
jmp 0x44682e
mov edi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 0x4258]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x446814
push 0
lea eax, [ebp - 0x4274]
push eax
lea eax, [ebp - 0x4264]
push eax
lea eax, [ebp - 0x4260]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x446866
push dword [ebp - 0x4260]
call esi
push dword [ebp - 0x4264]
call esi
mov dword [ebp - 0x4260], 0
mov dword [ebp - 0x4264], 0
mov eax, dword [ebp - 0x4258]
test eax, eax
je 0x446821
push eax
call esi
mov eax, dword [ebp - 0x425c]
test eax, eax
je 0x44682e
push eax
call esi
mov eax, dword [ebp - 0x4260]
test eax, eax
je 0x44683b
push eax
call esi
mov eax, dword [ebp - 0x4264]
test eax, eax
je 0x446848
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004632a0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 1
push dword [ebp - 0x4264]
call edi
test eax, eax
je 0x446814
push dword [ebp - 0x4250]
lea eax, [ebp - 0x338]
push 0x190
push eax
call fcn.0046b918
add esp, 0xc
lea eax, [ebp - 0x4284]
mov ecx, 0x10
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4468a0
mov ecx, 0x44
lea eax, [ebp - 0x42d0]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4468b6
mov eax, dword [ebp - 0x425c]
mov esi, dword [0x49f9d4]
mov dword [ebp - 0x4290], eax
not esi
mov dword [ebp - 0x4294], eax
and esi, 1
mov eax, dword [ebp - 0x4260]
mov dword [ebp - 0x4298], eax
xor eax, eax
shl esi, 0x1b
mov dword [ebp - 0x42d0], 0x44
mov dword [ebp - 0x42a4], 0x101
mov word [ebp - 0x42a0], ax
mov dword [ebp - 0x4268], eax
cmp byte [ebp - 0x42d1], al
je 0x44692a
mov eax, dword [0x4a08d4]
test eax, eax
je 0x44692a
lea ecx, [ebp - 0x4268]
push ecx
call eax
lea eax, [ebp - 0x4284]
push eax
lea eax, [ebp - 0x42d0]
push eax
push 0
push 0
push esi
push 1
push 0
push 0
lea eax, [ebp - 0x338]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp byte [ebp - 0x42d1], 0
mov esi, eax
je 0x44696f
mov ecx, dword [0x4a08d0]
test ecx, ecx
je 0x44696f
push dword [ebp - 0x4268]
call ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x446c56
xor eax, eax
xor esi, esi
push esi
mov word [ebp - 0x4248], ax
mov dword [ebp - 0x42d8], eax
mov dword [ebp - 0x4254], eax
mov dword [ebp - 0x424c], eax
lea eax, [ebp - 0x424c]
push eax
push esi
push 0x1000
push esi
push dword [ebp - 0x4258]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
nop word [eax + eax]
xor ecx, ecx
mov dword [ebp - 0x4250], ecx
cmp dword [ebp - 0x424c], ecx
jbe 0x4469f6
push ecx
lea eax, [ebp - 0x4250]
push eax
push 0x1000
lea eax, [ebp - 0x1b38]
push eax
push dword [ebp - 0x4258]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x4250]
xor edi, edi
test ecx, ecx
jle 0x446b38
mov al, byte [ebp + edi - 0x1b38]
cmp al, 0xa
jne 0x446b1c
add esi, esi
cmp esi, 0x2710
jae 0x446d16
xor eax, eax
mov dword [ebp - 0x42dc], 7
mov word [ebp + esi - 0x4248], ax
mov dword [ebp - 0x42e0], eax
mov word [ebp - 0x42f0], ax
lea eax, [ebp - 0x4248]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x446a47
sub eax, edx
lea ecx, [ebp - 0x42f0]
sar eax, 1
push eax
lea eax, [ebp - 0x4248]
push eax
call fcn.00402380
mov dword [ebp - 4], 0
mov eax, dword [0x4a1e98]
cmp dword [0x4a1e9c], eax
je 0x446aab
movups xmm0, xmmword [ebp - 0x42f0]
xor ecx, ecx
mov word [ebp - 0x42f0], cx
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x42e0]
movq qword [eax + 0x10], xmm0
mov eax, 7
add dword [0x4a1e98], 0x18
jmp 0x446ac3
lea ecx, [ebp - 0x42f0]
push ecx
push eax
mov ecx, 0x4a1e94
call fcn.0040a600
mov eax, dword [ebp - 0x42dc]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x446b04
mov ecx, dword [ebp - 0x42f0]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x446afa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446d11
push edx
push ecx
call fcn.004632e1
add esp, 8
mov ecx, dword [ebp - 0x4250]
xor eax, eax
mov word [ebp - 0x4248], ax
xor esi, esi
mov al, byte [ebp + edi - 0x1b38]
cmp al, 0xd
je 0x446b2f
cmp al, 0xa
je 0x446b2f
cbw
mov word [ebp + esi*2 - 0x4248], ax
inc esi
inc edi
cmp edi, ecx
jl 0x446a00
lea eax, [ebp - 0x4254]
push eax
push dword [ebp - 0x4284]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
lea eax, [ebp - 0x424c]
mov dword [ebp - 0x424c], 0
push eax
push 0
push 0x1000
push 0
push dword [ebp - 0x4258]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x4254], 0x103
jne 0x446ba7
cmp dword [ebp - 0x424c], 0
jne 0x446ba7
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x42d8]
add edi, 0xfa
mov dword [ebp - 0x42d8], edi
jmp 0x446bad
mov edi, dword [ebp - 0x42d8]
mov eax, dword [ebx + 8]
test eax, eax
jle 0x446c16
cmp edi, eax
jl 0x446c16
lea eax, [ebp - 0x42fc]
push 0x302
push eax
call fcn.004643b0
mov ecx, 0x487d18
mov edx, 1
push 0
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
call fcn.00410e40
add esp, 0xc
push dword [ebp - 0x42f4]
call fcn.004634ea
add esp, 4
push dword [ebp - 0x42fc]
call fcn.004634ea
add esp, 4
push 0
push dword [ebp - 0x4284]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov dword [ebp - 0x42d8], eax
cmp dword [ebp - 0x4254], 0x103
je 0x4469c0
cmp dword [ebp - 0x424c], 0
ja 0x4469c0
mov eax, dword [ebp - 0x4254]
push dword [ebp - 0x4284]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4a0890], eax
call edi
push dword [ebp - 0x4280]
call edi
jmp 0x446cd4
lea eax, [ebp - 0x4308]
push 0x303
push eax
call fcn.004643b0
add esp, 8
mov esi, 0x487d18
mov eax, dword [eax]
test eax, eax
cmovne esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb38]
push esi
push eax
call fcn.0040a3d0
add esp, 0xc
push dword [ebp - 0x4300]
call fcn.004634ea
add esp, 4
push dword [ebp - 0x4308]
call fcn.004634ea
add esp, 4
lea ecx, [ebp - 0xb38]
mov edx, 1
push 0
call fcn.00410e40
add esp, 4
lea eax, [ebp - 0xb38]
push 0x10
push 0x487e00
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x4258]
test eax, eax
je 0x446ce1
push eax
call edi
mov eax, dword [ebp - 0x425c]
test eax, eax
je 0x446cee
push eax
call edi
mov eax, dword [ebp - 0x4260]
test eax, eax
je 0x446cfb
push eax
call edi
mov eax, dword [ebp - 0x4264]
test eax, eax
je 0x446848
push eax
call edi
jmp 0x446848
call fcn.0046851b
call fcn.00463410
int3