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

Disassembly:
sub esp, 0x78
push ebx
push ebp
xor ebp, ebp
push ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], ebp
xor ebx, ebx
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x100093e7
push esi
push 0x44
lea eax, [esp + 0x44]
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 0x101
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
call sub.NTDLL.dll_RtlZeroMemory
mov ecx, dword [esp + 0x88]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ebp
push 0x8000000
push 1
push ebp
push ebp
push ecx
push ebp
call dword [0x10012078]
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call sub.NTDLL.dll_NtClose
cmp esi, ebp
je 0x100093cb
push edi
push 0x401
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10007d60
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, ebp
je 0x100093b6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x90]
imul ecx, ecx, 0x3e8
push ebp
lea edx, [esp + 0x14]
push edx
add eax, ecx
push 0x400
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
push edi
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100093a4
jmp 0x10009270
mov eax, dword [esp + 0x10]
cmp eax, ebp
jbe 0x100093a4
push ebp
push ebp
mov byte [eax + edi], 0
mov ecx, dword [esp + 0x18]
push ecx
push edi
push ebp
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
cmp esi, ebp
je 0x1000933f
lea edx, [esi + esi + 2]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10007d60
mov ebp, eax
test ebp, ebp
je 0x1000933f
mov eax, dword [esp + 0x10]
push esi
push ebp
push eax
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10009330
push 0
push 0
push 0
push 0
push esi
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1000932c
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x14], eax
inc eax
push eax
test ebx, ebx
jne 0x10009372
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10007d60
mov ebx, eax
test ebx, ebx
je 0x1000932c
push 0
push 0
push edi
mov ecx, ebx
sub ecx, edi
add ecx, dword [esp + 0x20]
push ecx
push esi
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [esp + 0x20]
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.100049f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x24]
jae 0x10009397
xor ebp, ebp
cmp ebx, ebp
je 0x10009397
mov eax, dword [esp + 0x18]
push ebp
lea edx, [esp + 0x14]
push edx
push 0x400
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10009270
jmp 0x100093a4
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10003840
test eax, eax
jne 0x10009309
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.100049f0
xor ebx, ebx
jmp 0x1000932c
mov ecx, dword [esp + 0x34]
xor ebp, ebp
push ebp
push ecx
call sub.NTDLL.dll_NtTerminateProcess
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.100049f0
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x34]
push eax
call sub.NTDLL.dll_NtClose
pop edi
mov ecx, dword [esp + 0x14]
push ecx
call sub.NTDLL.dll_NtClose
mov edx, dword [esp + 0x90]
pop esi
mov dword [edx], ebp
pop ebp
mov eax, ebx
pop ebx
add esp, 0x78
ret
mov eax, dword [esp + 0x8c]
mov dword [eax], ebp
pop ebp
mov eax, ebx
pop ebx
add esp, 0x78
ret