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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov eax, dword [0x1400034e0]
lea rdx, [rsp + 0x68]
movsd xmm0, qword [0x1400034d8]
lea r8, str._lsSystem32_hs
mov dword [rsp + 0x70], eax
mov rsi, rcx
movzx eax, byte [0x1400034e4]
xor r14d, r14d
mov byte [rsp + 0x74], al
mov edi, 0x23f0
mov eax, dword [str.CI.dll]
mov r9d, 0x7ffe0030
mov dword [rbp + 0x240], eax
movzx eax, word [0x1400034ec]
mov word [rbp + 0x244], ax
movzx eax, byte [0x1400034ee]
mov byte [rbp + 0x246], al
movsd qword [rsp + 0x68], xmm0
mov rax, qword gs:[0x30]
mov qword [rcx], r14
mov rcx, qword [rax + 0x60]
lea rax, [rbp + 0x240]
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 - 0x68]
mov qword [rbp + 0x248], r14
xor r8d, r8d
mov qword [rsp + 0x78], r14
lea rdx, [rbp - 0x78]
mov qword [rbp + 0x250], r14
lea rcx, [rbp]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
mov ebx, eax
test eax, eax
js 0x140001e74
movzx ecx, word [rbp - 0x68]
lea rdx, [rbp - 0x78]
mov dword [rsp + 0x50], r14d
lea r9, [rbp - 0x18]
mov qword [rsp + 0x48], r14
lea r8, [rbp - 0x48]
test cx, cx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
lea rcx, [rbp + 0x250]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 1
mov eax, r14d
mov dword [rsp + 0x28], 0x80
cmovne rax, qword [rbp - 0x58]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x68]
cmove rax, rdx
mov dword [rbp - 0x48], 0x30
mov edx, 0x120089
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], 0x40
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
xor edx, edx
mov rax, qword gs:[0x30]
mov r8, qword [rbp - 0x70]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
test ebx, ebx
js 0x140001e74
mov rax, qword [rbp + 0x250]
lea rcx, [rbp + 0x258]
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 + 0x258], r14
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
jns 0x140001c92
lea rcx, str.NtCreateSection:_0x_08X_n
jmp 0x140001cef
mov rcx, qword [rbp + 0x258]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x48], 2
lea r8, [rbp + 0x248]
mov dword [rsp + 0x40], r14d
xor r9d, r9d
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
lea rdx, [r9 - 1]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp eax, 0x40000003
jne 0x140001ce4
mov ebx, r14d
jmp 0x140001cf6
test eax, eax
jns 0x140001cf6
lea rcx, str.NtMapViewOfSection:_0x_08X_n
mov edx, eax
call fcn.140001000
mov rcx, qword [rbp + 0x250]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x258]
test rcx, rcx
je 0x140001d15
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140001e82
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], di
jb 0x140001d89
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x240]
call fcn.1400016c0
mov ebx, eax
test eax, eax
jns 0x140001d5c
mov edx, eax
lea rcx, str.Failed_to_FindKernelModule__08X_n
call fcn.140001000
jmp 0x140001e50
mov rdx, qword [rbp - 0x80]
lea r8, [rsp + 0x60]
mov rcx, qword [rbp + 0x248]
call fcn.140001870
test eax, eax
je 0x140001e4b
mov rax, qword [rsp + 0x60]
mov ebx, r14d
mov qword [rsi], rax
jmp 0x140001e50
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.1400016c0
mov ebx, eax
test eax, eax
js 0x140001e50
mov r10, qword [rsp + 0x78]
mov rdi, r14
mov r9, r14
test r10, r10
je 0x140001e3f
mov r11, qword [rbp + 0x248]
lea rbx, [0x140003e34]
nop dword [rax]
nop dword [rax + rax]
mov r8, r9
mov edx, r14d
sub r8, rbx
mov rax, rbx
add r8, r11
nop
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x140001ded
test cl, cl
jne 0x140001e3b
inc edx
inc rax
cmp edx, 4
jb 0x140001de0
mov cl, 1
test cl, cl
mov rax, r9
cmove rax, rdi
inc r9
mov rdi, rax
cmp r9, r10
jb 0x140001dd0
test rax, rax
je 0x140001e3f
movsxd rbx, dword [rax + r11 + 4]
lea rcx, str.i_:_0x_llx_n_gCiEnabled_:__llx_n_gCiEnabledAddress_:__llx_n
call fcn.140001000
mov rax, qword [rsp + 0x60]
lea rcx, [rdi + rbx]
add rax, 8
mov ebx, r14d
add rcx, rax
mov qword [rsi], rcx
jmp 0x140001e50
xor cl, cl
jmp 0x140001df9
lea rcx, str.failed_to_find_CiEnabled_n
call fcn.140001000
mov ebx, 0xc0000225
mov rdx, qword [rbp + 0x248]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
add rsp, 0x310
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edx, ebx
lea rcx, str.NtCreateFile:_0x_08X_n
call fcn.140001000
mov r8d, ebx
lea rdx, [rbp]
lea rcx, str.Failed_to_map__ls:__08X_n
call fcn.140001000
mov eax, ebx
add rsp, 0x310
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret