Function at 0x1400019a0
Capabilities:
Get windows directory from kuser_shared_data
Map section object

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov eax, dword [0x1400034a0]
lea rdx, [rsp + 0x60]
movsd xmm0, qword [str.ntoskrnl.exe]
lea r8, str._lsSystem32_hs
mov dword [rsp + 0x68], eax
mov r14, rcx
movzx eax, byte [0x1400034a4]
xor r15d, r15d
mov byte [rsp + 0x6c], al
mov edi, 0x23f0
mov eax, dword [str.CI.dll]
mov r9d, 0x7ffe0030
mov dword [rbp + 0x250], eax
movzx eax, word [0x1400034ac]
mov word [rbp + 0x254], ax
movzx eax, byte [0x1400034ae]
mov byte [rbp + 0x256], al
movsd qword [rsp + 0x60], xmm0
mov rax, qword gs:[0x30]
mov qword [rcx], r15
mov rcx, qword [rax + 0x60]
lea rax, [rbp + 0x250]
cmp word [rcx + 0x120], di
lea rcx, [rbp]
cmovb rax, rdx
mov edx, 0x82
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll__snwprintf]
lea r9, [rbp - 0x60]
mov qword [rbp + 0x258], r15
xor r8d, r8d
mov qword [rsp + 0x70], r15
lea rdx, [rbp - 0x70]
mov qword [rbp + 0x260], r15
lea rcx, [rbp]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
lea esi, [r15 + 1]
mov ebx, eax
test eax, eax
js 0x140001c05
movzx ecx, word [rbp - 0x60]
lea rdx, [rbp - 0x70]
mov dword [rsp + 0x50], r15d
lea r9, [rbp - 0x10]
mov qword [rsp + 0x48], r15
lea r8, [rbp - 0x40]
test cx, cx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], esi
lea rcx, [rbp + 0x260]
xorps xmm0, xmm0
mov dword [rsp + 0x30], esi
mov eax, r15d
mov dword [rsp + 0x28], 0x80
cmovne rax, qword [rbp - 0x50]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x60]
cmove rax, rdx
mov dword [rbp - 0x40], 0x30
mov edx, 0x120089
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], 0x40
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
xor edx, edx
mov rax, qword gs:[0x30]
mov r8, qword [rbp - 0x68]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
test ebx, ebx
js 0x140001c05
mov rax, qword [rbp + 0x260]
lea rcx, [rbp + 0x268]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
xor r8d, r8d
mov edx, 0xf0004
mov dword [rsp + 0x20], 2
mov qword [rbp + 0x268], r15
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
jns 0x140001b80
lea rcx, str.NtCreateSection:_0x_08X_n
jmp 0x140001bdd
mov rcx, qword [rbp + 0x268]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x48], 2
lea r8, [rbp + 0x258]
mov dword [rsp + 0x40], r15d
xor r9d, r9d
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea rdx, [r9 - 1]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp eax, 0x40000003
jne 0x140001bd2
mov ebx, r15d
jmp 0x140001be4
test eax, eax
jns 0x140001be4
lea rcx, str.NtMapViewOfSection:_0x_08X_n
mov edx, eax
call fcn.140001000
mov rcx, qword [rbp + 0x260]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x268]
test rcx, rcx
je 0x140001c13
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x140001c13
mov edx, ebx
lea rcx, str.NtCreateFile:_0x_08X_n
call fcn.140001000
test ebx, ebx
jns 0x140001c2f
mov r8d, ebx
lea rdx, [rbp]
lea rcx, str.Failed_to_map__ls:__08X_n
call fcn.140001000
jmp 0x140001d80
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], di
jb 0x140001c9b
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x250]
call fcn.1400015b0
mov ebx, eax
test eax, eax
jns 0x140001c6f
mov edx, eax
lea rcx, str.Failed_to_FindKernelModule__08X_n
call fcn.140001000
jmp 0x140001d6c
mov rdx, qword [rsp + 0x78]
lea r8, [rbp - 0x80]
mov rcx, qword [rbp + 0x258]
call fcn.140001760
test eax, eax
je 0x140001d67
mov rax, qword [rbp - 0x80]
mov ebx, r15d
mov qword [r14], rax
jmp 0x140001d6c
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.1400015b0
mov ebx, eax
test eax, eax
js 0x140001d6c
mov r11, qword [rsp + 0x70]
mov rdi, r15
mov r10, r15
mov r9, r15
test r11, r11
je 0x140001d4c
mov rbx, qword [rbp + 0x258]
mov qword [rsp + 0x310], r12
lea r12, [0x140003df4]
mov rcx, r9
mov edx, r15d
sub rcx, r12
mov rax, r12
lea r8, [rcx + rbx]
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x140001cfd
test cl, cl
jne 0x140001d48
inc edx
inc rax
cmp edx, 4
jb 0x140001cf0
movzx ecx, sil
test cl, cl
mov rax, r9
cmove rax, r10
inc r9
mov r10, rax
cmp r9, r11
jb 0x140001ce0
mov r12, qword [rsp + 0x310]
test rax, rax
je 0x140001d4c
movsxd rcx, dword [rax + rbx + 4]
mov rdi, qword [rbp - 0x78]
add rcx, rax
add rdi, 8
add rdi, rcx
lea rcx, str.i_:_0x_llx_n_gCiEnabled_:__llx_n_gCiEnabledAddress_:__llx_n
jmp 0x140001d56
xor cl, cl
jmp 0x140001d0b
mov esi, r15d
lea rcx, str.failed_to_find_CiEnabled_n
call fcn.140001000
test esi, esi
je 0x140001d67
mov qword [r14], rdi
mov ebx, r15d
jmp 0x140001d6c
mov ebx, 0xc0000225
mov rdx, qword [rbp + 0x258]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
add rsp, 0x318
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret