Function at 0x14000c534
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 - 0x138]
sub rsp, 0x238
xor ecx, ecx
xorps xmm0, xmm0
xor eax, eax
xor r13d, r13d
cpuid
mov dword [rbp - 0x7c], edx
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x78], ecx
lea rcx, str.___CPU_vendor_string:__s_r_n
movups xmmword [rsp + 0x68], xmm0
mov dword [rbp - 0x64], r13d
movdqu xmmword [rbp - 0x74], xmm0
mov dword [rsp + 0x68], eax
mov dword [rbp - 0x80], ebx
call fcn.140002e20
mov edx, 0x114
lea rdi, [rbp - 0x60]
mov ecx, edx
xor eax, eax
rep stosb byte [rdi], al
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x60], edx
call qword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [rbp - 0x5c], 6
jb 0x14000c9b6
jne 0x14000c5b9
cmp dword [rbp - 0x58], r13d
je 0x14000c9b6
cmp dword [rbp - 0x54], 0x1db0
je 0x14000c9b6
mov esi, 8
mov dword [rbp + 0x188], r13d
mov edx, esi
mov word [rbp + 0x18c], 0x500
lea r8, [rsp + 0x78]
mov qword [rbp + 0x198], 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 0x14000c9a1
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x14000c9a1
lea rax, [rbp + 0x198]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea r8d, [rsi + 0x18]
mov dword [rsp + 0x48], r13d
lea rcx, [rbp + 0x188]
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 0x14000c715
mov rcx, qword [sym.imp.ntdll.dll_NtQueryInformationToken]
lea rax, [0x1400013bc]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x68]
lea rax, [0x14000139c]
mov rdx, rdi
mov qword [rsp + 0x28], rax
lea r8d, [rsi - 6]
lea rax, [rbp + 0x180]
mov qword [rsp + 0x20], rax
call fcn.140001928
test eax, eax
js 0x14000c708
mov r14, qword [rsp + 0x68]
mov esi, r13d
cmp dword [r14], r13d
jbe 0x14000c6e5
mov rcx, qword [rbp + 0x198]
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 0x14000c6d9
and dil, 0x14
cmp dil, 4
je 0x14000c6e2
add esi, ebx
cmp esi, dword [r14]
jb 0x14000c6af
jmp 0x14000c6e5
mov r12b, bl
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rsp + 0x68]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, 8
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.ntdll.dll_RtlFreeSid]
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtClose]
test r12b, r12b
je 0x14000c9a1
mov eax, dword [rbp - 0x54]
lea r8, str.___Windows_version:__u._u_build__u
mov r9d, dword [rbp - 0x5c]
lea rcx, [rbp + 0xc0]
mov dword [rsp + 0x28], eax
mov edx, 0x64
mov eax, dword [rbp - 0x58]
mov dword [rsp + 0x20], eax
call fcn.14000af20
lea rdx, [rbp + 0xc0]
lea rcx, str._s_r_n
call fcn.140002e20
mov edi, 0x16
mov dl, bl
mov ecx, edi
call fcn.14000167c
mov r9d, ebx
mov byte [rbp + 0x180], r13b
lea r8, [rbp + 0x180]
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.14000167c
cmp byte [rbp + 0x180], r13b
lea rax, [0x14003882c]
lea r15, str.disa
mov rdx, r15
lea rcx, str.___SecureBoot_is__sbled_on_this_machine_r_n
cmovne rdx, rax
call fcn.140002e20
lea r12d, [rdi + 0x51]
mov dword [rbp + 0x188], esi
mov ecx, r12d
lea r9, [rbp + 0x180]
mov r8d, esi
lea rdx, [rbp + 0x188]
mov r14b, r13b
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, 0x400
test eax, eax
js 0x14000c81e
test byte [rbp + 0x18c], bl
je 0x14000c80b
test dword [rbp + 0x18c], edi
je 0x14000c80b
mov r14b, bl
test r14b, r14b
je 0x14000c82e
lea rcx, str.___Windows_HVCI_mode_detected_r_n
call fcn.140002e20
jmp 0x14000c82e
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
lea r9, [rbp + 0x190]
mov dword [rbp + 0x190], 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 0x14000c8ac
mov eax, dword [rsp + 0x64]
test al, 2
je 0x14000c872
lea rcx, str.___Test_Mode_ENABLED_r_n
call fcn.140002e20
mov eax, dword [rsp + 0x64]
test al, al
jns 0x14000c886
lea rcx, str.___Debug_Mode_ENABLED_r_n
call fcn.140002e20
mov eax, dword [rsp + 0x64]
test edi, eax
je 0x14000c89a
lea rcx, str.___HVCI_KMCI_ENABLED_r_n
call fcn.140002e20
mov eax, dword [rsp + 0x64]
bt eax, 0xe
jae 0x14000c8ac
lea rcx, str.___WHQL_enforcement_ENABLED_r_n
call fcn.140002e20
cmp dword [rbp - 0x54], 0x4563
jb 0x14000c993
lea rax, [rsp + 0x68]
mov dword [rbp + 0x180], 4
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x198], 4
lea rdx, str.SystemCurrentControlSetControlCIConfig
mov dword [rbp + 0x188], r13d
mov rcx, 0xffffffff80000002
mov edi, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c993
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x180]
lea rax, [rbp + 0x188]
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 0x14000c957
cmp dword [rbp + 0x180], 4
jne 0x14000c95d
cmp dword [rbp + 0x188], r13d
seta dil
jmp 0x14000c95d
cmp esi, 2
cmove edi, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
mov rax, r13
cmovne rax, rsi
test rax, rax
jne 0x14000c993
test edi, edi
lea rax, [0x14003882c]
lea rcx, str.___MSFT_Driver_block_list_is__sbled_r_n
cmovne r15, rax
mov rdx, r15
call fcn.140002e20
mov edx, dword [rbp - 0x54]
movzx ecx, r14b
call fcn.14000c4ac
jmp 0x14000c9cc
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.140010084
mov eax, 0x522
jmp 0x14000c9cc
lea rdx, str.____Unsupported_WinNT_version_r_n
mov ecx, 1
call fcn.140010084
mov eax, 0x519
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret