Function at 0x1000d210
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 0x1000d4a7
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 [0x10012394]
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call sub.NTDLL.dll_NtClose
cmp esi, ebp
je 0x1000d48b
push edi
push 0x401
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.100052e0
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, ebp
je 0x1000d476
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 0x1000d464
jmp 0x1000d330
mov eax, dword [esp + 0x10]
cmp eax, ebp
jbe 0x1000d464
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 0x1000d3ff
lea edx, [esi + esi + 2]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.100052e0
mov ebp, eax
test ebp, ebp
je 0x1000d3ff
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 0x1000d3f0
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 0x1000d3ec
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x14], eax
inc eax
push eax
test ebx, ebx
jne 0x1000d432
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.100052e0
mov ebx, eax
test ebx, ebx
je 0x1000d3ec
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.100088d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x24]
jae 0x1000d457
xor ebp, ebp
cmp ebx, ebp
je 0x1000d457
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 0x1000d330
jmp 0x1000d464
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.1000cc80
test eax, eax
jne 0x1000d3c9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.100088d0
xor ebx, ebx
jmp 0x1000d3ec
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.100088d0
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