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

Disassembly:
sub esp, 0x7c
push ebx
push edi
xor edi, edi
mov dword [esp + 0x24], 0xc
push edi
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 1
push eax
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x10004660
push ebp
push esi
push 0x44
lea eax, [esp + 0x4c]
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov eax, dword [esp + 0x20]
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x38]
push 0x10
push eax
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 0x101
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x4c]
push eax
push edi
push edi
push 0x8000000
push 1
push edi
push edi
push dword [esp + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call ebp
test esi, esi
je 0x10004647
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x401
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x10004631
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [esp + 0x10], edi
imul eax, dword [esp + 0x94], 0x3e8
push edi
add ecx, eax
lea eax, [esp + 0x14]
push eax
push 0x400
push ebp
push dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004625
nop dword [eax + eax]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004625
push 0
push 0
mov byte [eax + ebp], 0
push dword [esp + 0x18]
push ebp
push 0
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x100045e9
lea eax, [esi*2 + 2]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100045e3
push esi
push ebx
push dword [esp + 0x18]
push ebp
push 0
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100045cf
push 0
push 0
push 0
push 0
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x100045cb
mov eax, dword [esp + 0x18]
add eax, ebp
mov dword [esp + 0x18], eax
inc eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
jne 0x10004588
push 8
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100045cb
jmp 0x1000459a
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x100045b9
mov edi, eax
push 0
push 0
push ebp
mov eax, edi
sub eax, ebp
add eax, dword [esp + 0x24]
push eax
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x100045cb
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
mov ebp, dword [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100045e9
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x24]
jae 0x1000461a
test edi, edi
je 0x1000461a
push 0
lea eax, [esp + 0x14]
push eax
push 0x400
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100044e0
jmp 0x10004625
push 0
push dword [esp + 0x3c]
call sub.NTDLL.dll_NtTerminateProcess
push ebp
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
push dword [esp + 0x38]
call ebp
mov ebx, dword [esp + 0x18]
push dword [esp + 0x1c]
call ebp
mov ecx, dword [esp + 0x98]
mov eax, edi
pop esi
pop ebp
pop edi
mov dword [ecx], ebx
pop ebx
add esp, 0x7c
ret
mov eax, dword [esp + 0x90]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
add esp, 0x7c
ret