Function at 0x1400023d0
Capabilities:
Read file via mapping

Disassembly:
push r13
sub rsp, 0x90
mov rax, qword [0x140040030]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rcx, str.ntdll.dll
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
mov r13, rax
test rax, rax
jne 0x14000241c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000263c
mov qword [rsp + 0xa0], rbx
lea r8, [rsp + 0x48]
mov qword [rsp + 0xa8], rbp
mov r9d, 0x18
mov rdx, rax
mov qword [rsp + 0x78], r14
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rbp, qword [rsp + 0x48]
lea rcx, str.c:windows_system32_ntdll.dll
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140002491
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002627
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r8d, 0x1000002
mov qword [rsp + 0x70], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r15, rax
test rax, rax
jne 0x1400024cf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002622
xor r9d, r9d
mov qword [rsp + 0x80], r12
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, r15
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
jne 0x140002514
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000261a
mov qword [rsp + 0xb0], rsi
movsxd rsi, dword [rbp + 0x3c]
add rsi, rbp
mov qword [rsp + 0x88], rdi
movzx edi, bx
cmp bx, word [rsi + 6]
jae 0x1400025e4
lea r8, str..text
xor r13d, r13d
movzx ecx, word [rsi + 0x14]
movzx eax, di
add rcx, rsi
lea rdx, [rax + rax*4]
mov rax, r13
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x1400025d2
cmp rax, 6
jne 0x140002560
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
lea r8d, [rax + 0x3a]
add rcx, rbp
mov dword [rsp + 0x60], r13d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400025cb
mov edx, dword [rbx + 0x28]
cmp edx, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x24]
cmovae edx, dword [rbx + 0x20]
mov r8d, edx
lea rdx, [rcx + r12]
add rcx, rbp
call fcn.140010810
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc di
cmp di, word [rsi + 6]
jb 0x140002542
mov r13, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x88]
xor eax, eax
mov rsi, qword [rsp + 0xb0]
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000e9a0
add rsp, 0x90
pop r13
ret