Function at 0x14000cc44
Capabilities:
Check os version
Get system information on windows
Get uefi variable
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x148]
sub rsp, 0x248
xor ecx, ecx
xorps xmm0, xmm0
xor eax, eax
xor r13d, r13d
cpuid
mov dword [rbp - 0x6c], edx
lea rdx, [rbp - 0x70]
mov dword [rbp - 0x68], ecx
lea rcx, str.___CPU_vendor_string:__s_r_n
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x54], r13d
movdqu xmmword [rbp - 0x64], xmm0
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x70], ebx
call fcn.140002fc4
mov edx, 0x114
lea rdi, [rbp - 0x50]
mov ecx, edx
xor eax, eax
rep stosb byte [rdi], al
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x50], edx
call qword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [rbp - 0x4c], 6
jb 0x14000d0b7
jne 0x14000ccc7
cmp dword [rbp - 0x48], r13d
je 0x14000d0b7
cmp dword [rbp - 0x44], 0x1db0
je 0x14000d0b7
mov esi, 8
mov dword [rbp + 0x1a8], r13d
mov edx, esi
mov word [rbp + 0x1ac], 0x500
lea r8, [rsp + 0x78]
mov qword [rsp + 0x68], r13
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x78], r13
mov r12b, r13b
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
lea ebx, [rsi - 7]
test eax, eax
js 0x14000d0a2
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x14000d0a2
lea rax, [rsp + 0x68]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea r8d, [rsi + 0x18]
mov dword [rsp + 0x48], r13d
lea rcx, [rbp + 0x1a8]
mov dword [rsp + 0x40], r13d
mov dl, 2
mov dword [rsp + 0x38], r13d
mov r15, rdi
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ntdll.dll_RtlAllocateAndInitializeSid]
test eax, eax
js 0x14000ce21
mov rcx, qword [sym.imp.ntdll.dll_NtQueryInformationToken]
lea rax, [0x140001500]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x198]
lea rax, [0x1400014e0]
mov rdx, rdi
mov qword [rsp + 0x28], rax
lea r8d, [rsi - 6]
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
call fcn.140001aac
test eax, eax
js 0x14000ce16
mov r14, qword [rbp + 0x198]
mov esi, r13d
cmp dword [r14], r13d
jbe 0x14000cdf1
mov rcx, qword [rsp + 0x68]
mov edx, esi
add rdx, rdx
mov edi, dword [r14 + rdx*8 + 0x10]
mov rdx, qword [r14 + rdx*8 + 8]
call qword [sym.imp.ntdll.dll_RtlEqualSid]
test al, al
je 0x14000cde5
and dil, 0x14
cmp dil, 4
je 0x14000cdee
add esi, ebx
cmp esi, dword [r14]
jb 0x14000cdbd
jmp 0x14000cdf1
mov r12b, bl
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rbp + 0x198]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, 8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlFreeSid]
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtClose]
test r12b, r12b
je 0x14000d0a2
mov eax, dword [rbp - 0x44]
lea r8, str.___Windows_version:__u._u_build__u
mov r9d, dword [rbp - 0x4c]
lea rcx, [rbp + 0xd0]
mov dword [rsp + 0x28], eax
mov edx, 0x64
mov eax, dword [rbp - 0x48]
mov dword [rsp + 0x20], eax
call fcn.14000b0c0
lea rdx, [rbp + 0xd0]
lea rcx, str._s_r_n
call fcn.140002fc4
mov edi, 0x16
mov dl, bl
mov ecx, edi
call fcn.140001800
mov r9d, ebx
mov byte [rbp + 0x190], r13b
lea r8, [rbp + 0x190]
lea rdx, str.8be4df61_93ca_11d2_aa0d_00e098032b8c
lea rcx, str.SecureBoot
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
xor edx, edx
mov ecx, edi
call fcn.140001800
cmp byte [rbp + 0x190], r13b
lea rax, [0x14003be5c]
lea r15, str.disa
mov rdx, r15
lea rcx, str.___SecureBoot_is__sbled_on_this_machine_r_n
cmovne rdx, rax
call fcn.140002fc4
lea r12d, [rdi + 0x51]
mov dword [rsp + 0x70], esi
mov ecx, r12d
lea r9, [rbp + 0x198]
mov r8d, esi
lea rdx, [rsp + 0x70]
mov r14b, r13b
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, 0x400
test eax, eax
js 0x14000cf22
test byte [rsp + 0x74], bl
je 0x14000cf0f
test dword [rsp + 0x74], edi
je 0x14000cf0f
mov r14b, bl
test r14b, r14b
je 0x14000cf32
lea rcx, str.___Windows_HVCI_mode_detected_r_n
call fcn.140002fc4
jmp 0x14000cf32
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
lea r9, [rbp + 0x1a0]
mov dword [rbp + 0x1a0], r13d
mov r8d, esi
mov qword [rsp + 0x60], 8
lea rdx, [rsp + 0x60]
mov ecx, r12d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x14000cfb0
mov eax, dword [rsp + 0x64]
test al, 2
je 0x14000cf76
lea rcx, str.___Test_Mode_ENABLED_r_n
call fcn.140002fc4
mov eax, dword [rsp + 0x64]
test al, al
jns 0x14000cf8a
lea rcx, str.___Debug_Mode_ENABLED_r_n
call fcn.140002fc4
mov eax, dword [rsp + 0x64]
test edi, eax
je 0x14000cf9e
lea rcx, str.___HVCI_KMCI_ENABLED_r_n
call fcn.140002fc4
mov eax, dword [rsp + 0x64]
bt eax, 0xe
jae 0x14000cfb0
lea rcx, str.___WHQL_enforcement_ENABLED_r_n
call fcn.140002fc4
cmp dword [rbp - 0x44], 0x4563
jb 0x14000d094
lea rax, [rbp - 0x80]
mov dword [rbp + 0x190], 4
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1a8], 4
lea rdx, str.SystemCurrentControlSetControlCIConfig
mov dword [rbp + 0x198], r13d
mov rcx, 0xffffffff80000002
mov edi, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000d094
mov rcx, qword [rbp - 0x80]
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x190]
lea rax, [rbp + 0x198]
xor r8d, r8d
lea rdx, str.VulnerableDriverBlocklistEnable
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rsi, eax
test eax, eax
jne 0x14000d059
cmp dword [rbp + 0x190], 4
jne 0x14000d05f
cmp dword [rbp + 0x198], r13d
seta dil
jmp 0x14000d05f
cmp esi, 2
cmove edi, ebx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
mov rax, r13
cmovne rax, rsi
test rax, rax
jne 0x14000d094
test edi, edi
lea rax, [0x14003be5c]
lea rcx, str.___MSFT_Driver_block_list_is__sbled_r_n
cmovne r15, rax
mov rdx, r15
call fcn.140002fc4
mov edx, dword [rbp - 0x44]
movzx ecx, r14b
call fcn.14000c64c
jmp 0x14000d0cd
lea rdx, str.____Administrator_privileges_are_required_to_continue._r_n____Verify_that_you_have_sufficient_privileges_and_you_are_not_running_program_under_any_compatibility_layer._r_n
mov ecx, ebx
call fcn.140011454
mov eax, 0x522
jmp 0x14000d0cd
lea rdx, str.____Unsupported_WinNT_version_r_n
mov ecx, 1
call fcn.140011454
mov eax, 0x519
add rsp, 0x248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret