Function at 0x140001820
Capabilities:
Disable driver code integrity
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x1e0
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
cmp rcx, qword [0x14000bfb8]
lea r14, [0x14000bf80]
jne 0x140001bd6
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x94
xor edi, edi
lea rcx, str.ntdll.dll
mov dword [0x14000c118], edi
movups xmmword [rsp + 0x24], xmm0
movups xmmword [rsp + 0x34], xmm0
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140001bcf
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001bc6
lea rcx, [rsp + 0x20]
call rax
test eax, eax
jne 0x140001bc6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x2c]
cmp eax, 0x1770
jae 0x140001909
lea ebx, [rdi + 2]
jmp 0x140001bdb
mov dword [0x14000bf4c], edi
lea r8, [0x14000bf68]
lea rdx, [0x14000bf60]
cmp eax, 0x23f0
jae 0x140001a8e
lea rax, str.Windows_Vista___Windows_7
mov ebx, 1
mov qword [0x14000bf30], rax
lea rcx, str.NTOSKRNL.EXE
lea rax, str.g_CiEnabled
mov qword [0x14000bf38], rcx
mov qword [0x14000bf40], rax
mov dword [0x14000bf50], ebx
mov dword [0x14000bf58], ebx
call fcn.140001d10
test eax, eax
je 0x140001976
mov ebx, 3
jmp 0x140001bdb
mov esi, dword [0x14000bf68]
lea rcx, [rsp + 0xc0]
mov rbp, qword [0x14000bf60]
xor edx, edx
mov r8d, 0x104
mov qword [0x14000bf70], rdi
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140001a0a
lea rdx, str._ntoskrnl.exe
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov r8d, ebx
lea rcx, [rsp + 0xc0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r8, rax
test rax, rax
je 0x140001a0a
lea eax, [rsi - 4]
test eax, eax
je 0x140001a01
mov rcx, r8
cmp dword [rcx], 0x1d8806eb
je 0x140001a14
inc edi
inc rcx
cmp edi, eax
jb 0x1400019f0
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, 4
jmp 0x140001bdb
mov ecx, edi
movsxd rdx, dword [rcx + r8 + 4]
add rcx, 8
add rcx, rdx
add rcx, r8
test edx, edx
je 0x140001a01
test rcx, rcx
je 0x140001a01
sub rcx, r8
add rcx, rbp
mov qword [0x14000bf70], rcx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movsxd rax, dword [0x14000c118]
imul rcx, rax, 0x198
mov eax, dword [rsp + 0x2c]
cmp eax, dword [rcx + r14 + 0x190]
jb 0x140001bbf
cmp eax, dword [rcx + r14 + 0x194]
ja 0x140001bbf
mov rax, qword [rcx + r14 + 0x30]
add rcx, r14
call rax
test eax, eax
je 0x140001b0a
mov ebx, 8
jmp 0x140001bdb
lea rax, str.Windows_8_or_later
mov dword [0x14000bf50], 6
mov qword [0x14000bf30], rax
lea rcx, str.CI.DLL
lea rax, str.g_CiOptions
mov qword [0x14000bf38], rcx
mov ebx, 4
mov qword [0x14000bf40], rax
mov dword [0x14000bf58], ebx
call fcn.140001d10
test eax, eax
je 0x140001ae0
mov ebx, 5
jmp 0x140001bdb
mov r8d, dword [rsp + 0x2c]
lea rdx, [0x14000bf70]
mov rcx, qword [0x14000bf60]
call fcn.140001e70
test eax, eax
je 0x140001a44
mov ebx, 6
jmp 0x140001bdb
movsxd rax, dword [0x14000c118]
imul rcx, rax, 0x198
mov rax, qword [rcx + r14 + 0x28]
add rcx, r14
call rax
test eax, eax
je 0x140001b30
mov ebx, 9
jmp 0x140001bdb
movsxd rax, dword [0x14000c118]
lea rdx, [0x14000c120]
imul rcx, rax, 0x198
mov rax, qword [rcx + r14 + 0x10]
mov rcx, qword [rcx + r14 + 0x40]
call rax
test eax, eax
je 0x140001b5c
mov ebx, 0xa
jmp 0x140001bdb
movsxd rax, dword [0x14000c118]
lea r9, [0x14000bf54]
mov r8d, dword [0x14000bf58]
mov rdx, qword [0x14000bf70]
imul rcx, rax, 0x198
mov dword [0x14000bf54], 0xffffffff
mov rax, qword [rcx + r14 + 0x18]
mov rcx, qword [0x14000c120]
call rax
test eax, eax
je 0x140001baf
mov rcx, qword [0x14000c120]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xc
jmp 0x140001bdb
mov eax, dword [0x14000bf54]
mov dword [0x14000bf48], eax
xor eax, eax
jmp 0x140001c0a
mov ebx, 7
jmp 0x140001bdb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, 1
jmp 0x140001bdb
mov ebx, 0x7fffffff
movsxd rax, dword [0x14000c118]
test eax, eax
js 0x140001c08
imul rdx, rax, 0x198
mov rax, qword [rdx + r14 + 0x38]
cmp byte [rax], 0
je 0x140001c08
cmp byte [rdx + r14 + 0x48], 0
je 0x140001c08
lea rcx, [rdx + r14]
call qword [rdx + r14 + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400036f0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret