Function at 0x140009820
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x118
mov rax, qword [0x140016050]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xd8]
lea rcx, [0x140013050]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2e
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x50], 0xc0000001
call fcn.14000a370
cmp qword [rsp + 0x130], rax
ja 0x1400098ad
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
call fcn.14000a370
mov rcx, qword [rsp + 0x90]
cmp rcx, rax
jbe 0x1400098b6
mov eax, dword [rsp + 0x50]
jmp 0x140009ae8
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov qword [rsp + 0x70], rax
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
jmp 0x140009909
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xb0], 0x40
lea rax, [rsp + 0xc8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
lea r8, [rsp + 0x98]
mov edx, 0xf001f
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwOpenSection]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140009acc
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], 0x2000
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x68]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140009abe
cmp qword [rsp + 0x68], 0
je 0x140009abe
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x60], rax
jbe 0x140009a43
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140009abe
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x58]
jbe 0x140009a82
jmp 0x140009aaa
lfence
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov rdi, qword [rsp + 0x140]
mov rsi, rax
mov rcx, qword [rsp + 0x60]
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
jmp 0x140009abe
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140009ace
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1400126c0
add rsp, 0x118
pop rdi
pop rsi
ret