Function at 0x140001440
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140042040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400014a7
lea rdx, str.Failed_to_get_handle_for_ntdll.dll
lea rcx, [0x140043710]
call fcn.140001c10
mov qword [rsp + 0x80], rax
lea rdx, [0x140003c20]
mov rcx, qword [rsp + 0x80]
call fcn.140005ab0
jmp 0x140001707
mov r8d, 0x104
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400014f8
lea rdx, str.Failed_to_get_the_file_path_for_ntdll.dll
lea rcx, [0x140043710]
call fcn.140001c10
mov qword [rsp + 0x88], rax
lea rdx, [0x140003c20]
mov rcx, qword [rsp + 0x88]
call fcn.140005ab0
jmp 0x140001707
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400016f1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x48], 0
jmp 0x140001625
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x48], eax
jae 0x1400016e6
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
lea r9, [rsp + 0x4c]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 8
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
call fcn.14002e720
lea r9, [rsp + 0x4c]
mov r8d, dword [rsp + 0x4c]
mov edx, 8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x14000161b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14000dae0
add rsp, 0x1e8
ret