Function at 0x10009b50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x100140a4]
mov cx, word [0x10010c00]
or eax, 0x1000f000
push esi
xor esi, esi
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], esi
mov dword [ebp - 8], esi
test cx, cx
je 0x10009ba8
movzx ecx, cx
xor edx, edx
nop dword [eax]
inc eax
mov word [ebp + edx - 0x23c], cx
lea edx, [eax + eax]
movzx ecx, word [edx + 0x10010c00]
test cx, cx
jne 0x10009b90
xor ecx, ecx
xor edx, edx
mov word [ebp + eax*2 - 0x23c], cx
xor eax, eax
cmp word [ebp - 0x23c], ax
je 0x10009bcb
nop
inc eax
cmp word [ebp + eax*2 - 0x23c], cx
jne 0x10009bc0
mov ecx, 0x69
mov word [ebp + eax*2 - 0x23c], cx
lea edx, [edx + 1]
movzx ecx, word [edx*2 + str.injlib.dll]
lea eax, [eax + 1]
test cx, cx
jne 0x10009bd0
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push 0x10012790
push str._s:_Trying_to_inject_process__u_n
mov word [ebp + eax*2 - 0x23c], cx
call dword [fcn.10010bf8]
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x10009c8c
push 0
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 8], eax
call fcn.1000eea0
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
test eax, eax
je 0x10009c67
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x10], esi
push eax
push str.InjLib_loaded_from_file:__ls_n
call dword [fcn.10010bf8]
add esp, 8
mov eax, esi
jmp 0x10009ca5
lea eax, [ebp - 8]
push eax
push 0xa
push str.InjLib
push dword [0x10010ba0]
call fcn.10002e70
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10009eaa
cmp dword [ebp - 8], 0
je 0x10009eaa
mov al, byte [0x1001022a]
xor ecx, ecx
test al, al
mov edx, 0x200
cmovne ecx, edx
test edi, edi
jne 0x10009d9f
mov al, byte [0x100140a2]
mov edx, dword [ebp - 4]
mov byte [ebp + 0xb], al
mov eax, edx
shr eax, 0x18
and eax, 2
or eax, ecx
or eax, 0x408
test edx, 0x100000
je 0x10009cf5
or eax, 0x20
mov ecx, eax
mov dword [ebp + 0xc], 0
or ecx, 0x30
mov dword [ebp - 0x18], 0
test edx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], 0x18
cmovns ecx, eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], 0
push eax
mov eax, ecx
mov dword [ebp - 0x20], 0
or eax, 0x800
mov dword [ebp - 0x24], 0
cmp byte [ebp + 0xb], 0
cmove eax, ecx
push eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcess]
test eax, eax
je 0x10009d7a
push ebx
push ebx
push 0x100121c0
push str.NCMN::NInjLdr::OpenRemoteProcess
push 0xf00
call fcn.10002ec0
add esp, 0x14
jmp 0x10009d89
cmp byte [ebp + 0xb], 0
je 0x10009d89
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtSuspendProcess]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10009d9a
mov edi, 0xfffffffe
jmp 0x10009ead
mov al, byte [0x1001022a]
test al, al
je 0x10009da9
push edi
call fcn.100022b0
cmp byte [0x100140a2], 0
je 0x10009e44
cmp dword [ebp - 0xc], 0
je 0x10009de0
push 2
push 0
push 0
push 0x10010ba8
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [0x10010ba8]
call dword [sym.imp.ntdll.dll_NtSuspendProcess]
jmp 0x10009e4a
mov dword [0x10010ba8], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
or eax, 0x40000000
push 0x20000
push dword [0x10010b98]
mov ecx, edi
push 0
push 0
push 3
push eax
push dword [ebp - 8]
call fcn.100095f0
cmp dword [ebp - 0xc], 0
mov dword [ebp + 8], eax
jne 0x10009e29
cmp byte [0x100140a2], 0
jne 0x10009e29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
jns 0x10009e5d
cmp byte [0x100140a2], 0
je 0x10009e3d
push edi
call dword [sym.imp.ntdll.dll_NtResumeProcess]
mov edi, 0xfffffffd
jmp 0x10009ead
cmp dword [ebp - 0xc], 0
je 0x10009de6
cmp dword [0x7ffe0000], 0
mov eax, dword [ebp - 4]
je 0x10009de9
and eax, 0xf7ffffff
jmp 0x10009de9
mov edi, dword [0x100140a8]
test edi, edi
jle 0x10009e81
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.10009ed0
test al, al
jne 0x10009e81
sub edi, 0x64
test edi, edi
jg 0x10009e67
mov ecx, ebx
call fcn.10009ed0
test al, al
jne 0x10009e93
mov edi, 0xfffffffc
jmp 0x10009ead
push 0x10012790
push str._s:_Target_process_injection_succeeded_n
call dword [fcn.10010bf8]
add esp, 8
xor edi, edi
jmp 0x10009ead
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
pop ebx
test esi, esi
je 0x10009ec5
add esi, 0xfffffffc
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8