Function at 0x140001e40
Capabilities:
Check systemkerneldebuggerinformation
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
cmp ecx, 3
jne 0x1400010a7
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.140001ba0
mov ebx, eax
test eax, eax
jns 0x1400010e8
mov edx, eax
lea rcx, str.Driver_load_error:__08x_n
call fcn.140001000
mov eax, ebx
add rsp, 0x30
pop rbx
ret
cmp ecx, 2
jne 0x1400011e6
mov rbx, qword [rdx + 8]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x50], rdi
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov edi, eax
test eax, eax
jns 0x1400010ee
mov edx, eax
lea rcx, str.Error_unloading_driver:__08X_n
call fcn.140001000
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
mov edi, 0x34
mov qword [rsp + 0x48], rsi
lea rsi, [section..data]
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rcx, rsi
lea edx, [rdi + 1]
call qword [sym.imp.ntdll.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x14000116b
nop dword [rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x140001120
movzx ecx, word [rax]
test cx, cx
je 0x14000116b
lea rax, [0x140005068]
nop dword [rax]
cmp cx, 0x2e
je 0x14000116b
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140001150
xor ecx, ecx
movsxd rax, edi
mov rdx, rsi
mov word [rsi + rax*2], cx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov rsi, qword [rsp + 0x48]
mov edi, eax
test eax, eax
js 0x1400011ac
lea rdx, [0x140005024]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x40]
lea r9, [rsp + 0x40]
xor r8d, r8d
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov edx, edi
test edi, edi
js 0x1400010d5
lea rcx, str.Driver_unloaded_successfully._n
call fcn.140001000
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
jmp 0x140001e40
mov rax, rsp
push rbp
push rbx
push rdi
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov qword [rax - 0x20], rsi
lea rdx, [rbp - 0x78]
mov qword [rax - 0x28], r12
xorps xmm0, xmm0
xor eax, eax
xor r12d, r12d
xor r9d, r9d
mov dword [rbp - 0x78], r12d
movups xmmword [rbp - 0x74], xmm0
mov qword [rbp - 0x64], rax
lea r8d, [r12 + 0x20]
mov dword [rbp - 0x5c], eax
lea ecx, [rax + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140001e9f
mov edx, eax
lea rcx, str.SystemBootEnvironmentInformation:_error__08X_n_n
call fcn.140001000
jmp 0x140001f84
mov qword [rsp + 0x238], r14
lea rcx, str.SystemBootEnvironmentInformation:_n_t__BootIdentifier:
mov qword [rsp + 0x230], r15
call fcn.140001000
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
mov rax, rcx
shr rax, 0x30
mov r15, rcx
movzx r14d, al
mov r9, rdx
mov rax, rcx
shr r15, 0x38
shr rax, 0x28
movzx esi, al
mov rax, rcx
shr rax, 0x20
movzx edi, al
mov rax, rcx
shr rax, 0x18
movzx ebx, al
mov rax, rcx
mov dword [rsp + 0x58], r15d
shr rax, 0x10
movzx r11d, al
mov rax, rcx
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x48], esi
shr rax, 8
movzx r10d, al
mov rax, rdx
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], ebx
movzx ecx, cl
mov dword [rsp + 0x30], r11d
shr rax, 0x20
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, str._08lx__04hx__04hx__02hhx_02hhx__02hhx_02hhx_02hhx_02hhx_02hhx_02hhx
movzx r8d, ax
shr r9, 0x30
call fcn.140001000
cmp dword [rbp - 0x68], 2
lea rax, str.UEFI
mov r8, qword [rbp - 0x60]
lea rdx, str.BIOS
cmove rdx, rax
lea rcx, str._n_t__FirmwareType:__s_n_t__BootFlags:_0x_p_n_n
call fcn.140001000
mov r15, qword [rsp + 0x230]
mov r14, qword [rsp + 0x238]
xor edx, edx
mov dword [rbp + 0x188], r12d
lea r9, [rbp + 0x188]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001fba
mov edx, eax
lea rcx, str.SystemModuleInformation:__08X_n_n
call fcn.140001000
jmp 0x1400020c1
mov eax, dword [rbp + 0x188]
lea r8d, [rax + rax]
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rdx + 0x30]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rbp + 0x188]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov rbx, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140002014
mov edx, eax
lea rcx, str.SystemModuleInformation:__08X_n_n
call fcn.140001000
jmp 0x1400020a5
lea rcx, [rbx + 8]
mov edx, 2
lea rax, [rbp]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140002021
movups xmm0, xmmword [rcx]
lea rdx, [rbp + 0x28]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rbp + 0x28]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
lea rcx, str.SystemModuleInformation:_n_t__Kernel:__S___S__n_n
movzx eax, word [rbp + 0x26]
add rdx, rax
call fcn.140001000
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor r9d, r9d
mov qword [rsp + 0x60], 8
lea rdx, [rsp + 0x60]
lea r8d, [r9 + 8]
lea ecx, [r9 + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x1400020ef
mov edx, eax
lea rcx, str.SystemCodeIntegrityInformation:_error__08X_n_n
jmp 0x1400020fa
mov edx, dword [rsp + 0x64]
lea rcx, str.SystemCodeIntegrityInformation:_n_t__IntegrityOptions:_0x_04X_n_n
call fcn.140001000
xor r9d, r9d
mov word [rbp + 0x180], r12w
lea rdx, [rbp + 0x180]
lea r8d, [r9 + 2]
lea ecx, [r9 + 0x23]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x140002135
mov edx, eax
lea rcx, str.SystemKernelDebuggerInformation:_error__08X_n_n
call fcn.140001000
jmp 0x140002150
movzx r8d, byte [rbp + 0x181]
lea rcx, str.SystemKernelDebuggerInformation:_n_t__KernelDebuggerEnabled:__u_n_t__KernelDebuggerNotPresent:__u_n_n
movzx edx, byte [rbp + 0x180]
call fcn.140001000
mov eax, dword [0x7ffe026c]
cmp eax, 6
jb 0x1400021cc
cmp dword [0x7ffe0270], 3
jae 0x14000216b
cmp eax, 6
jbe 0x1400021cc
xor eax, eax
lea rdx, [rbp + 0x170]
xor r9d, r9d
mov word [rbp + 0x170], ax
mov ecx, 0x95
mov byte [rbp + 0x172], al
lea r8d, [rax + 3]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x1400021a9
mov edx, eax
lea rcx, str.SystemKernelDebuggerInformationEx:_error__08X_n_n
call fcn.140001000
jmp 0x1400021cc
movzx r9d, byte [rbp + 0x172]
lea rcx, str.SystemKernelDebuggerInformationEx:_n_t__DebuggerAllowed:__u_n_t__DebuggerEnabled:__u_n_t__DebuggerPresent:__u_n_n
movzx r8d, byte [rbp + 0x171]
movzx edx, byte [rbp + 0x170]
call fcn.140001000
movzx edx, byte [0x7ffe02d4]
lea rcx, str.SharedUserData__KdDebuggerEnabled:_0x_02X_n_n
call fcn.140001000
cmp dword [0x7ffe026c], 6
jbe 0x140002386
xor r9d, r9d
mov byte [rbp + 0x170], r12b
lea rdx, [rbp + 0x170]
mov ecx, 0xa3
lea r8d, [r9 + 1]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edx, eax
test eax, eax
js 0x14000221b
movzx edx, byte [rbp + 0x170]
test eax, eax
lea r9, str.SystemKernelDebuggerFlags:_0x_02X_n_n
lea rcx, str.SystemKernelDebuggerFlags:_error__08X_n_n
cmovns rcx, r9
call fcn.140001000
xorps xmm0, xmm0
lea rdx, [rsp + 0x68]
xor r9d, r9d
mov ecx, 0xa4
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
lea r8d, [r9 + 0x20]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14000226c
mov edx, eax
lea rcx, str.SystemCodeIntegrityPolicyInformation:_error__08X_n_n
call fcn.140001000
jmp 0x140002281
mov r8d, dword [rsp + 0x6c]
lea rcx, str.SystemCodeIntegrityPolicyInformation:_n_t__Options:_0x_04X_n_t__HVCIOptions:_0x_04X_n_n
mov edx, dword [rsp + 0x68]
call fcn.140001000
xor r9d, r9d
mov byte [rbp + 0x178], r12b
xor r8d, r8d
lea rdx, [rbp + 0x178]
mov ecx, 0xba
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0x80430006
jne 0x1400022b5
lea rcx, str.SystemKernelDebuggingAllowed:_STATUS_SECUREBOOT_NOT_ENABLED_n_n
call fcn.140001000
jmp 0x1400022d7
test eax, eax
jns 0x1400022c4
mov edx, eax
lea rcx, str.SystemKernelDebuggingAllowed:_error__08X_n_n
jmp 0x1400022d2
movzx edx, byte [rbp + 0x178]
lea rcx, str.SystemKernelDebuggingAllowed:__u_n_n
call fcn.140001000
xor eax, eax
mov dword [rbp - 0x50], r12d
xorps xmm0, xmm0
mov dword [rbp - 8], eax
xorps xmm1, xmm1
lea rdx, [rbp - 0x50]
xor r9d, r9d
mov ecx, 0xbe
lea r8d, [rax + 0x24]
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x18], xmm1
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x140002322
mov edx, eax
lea rcx, str.SystemCodeIntegrityUnlockInformation:_error__08X_n_n
call fcn.140001000
jmp 0x140002386
mov r8d, 0x24
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x50]
call sub.ntdll.dll_memcmp
test eax, eax
jne 0x140002347
lea rcx, str.SystemCodeIntegrityUnlockInformation:_0_n_n
call fcn.140001000
jmp 0x140002386
lea rbx, [rbp - 0x50]
mov esi, 9
mov eax, dword [rbx]
lea rcx, str.SystemCodeIntegrityUnlockInformation:_n_t__Locked:__u_n_t__Unlockable:__u_n_t__UnlockApplied:__u_n_t__Flags:__04X_n_n
mov r9d, eax
mov dword [rsp + 0x20], eax
mov r8d, eax
shr r9d, 2
shr r8d, 1
mov edx, eax
and r9d, 1
and r8d, 1
and edx, 1
call fcn.140001000
lea rbx, [rbx + 4]
sub rsi, 1
jne 0x140002350
lea rcx, str.Press_any_key_to_exit._n
call fcn.140001000
mov rax, qword gs:[0x30]
xorps xmm0, xmm0
mov r12, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x248]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x20]
xor ecx, ecx
mov rbx, qword [rax + 0x20]
movups xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x78], ecx
cmp word [rsp + 0x68], 1
jne 0x1400023dd
cmp dword [rsp + 0x6c], 0
je 0x1400023dd
mov eax, ecx
and eax, 0xfffffff3
cmp ecx, eax
je 0x1400023fb
lea r9, [rbp - 0x58]
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [rsp + 0x78]
jmp 0x1400023c5
mov eax, edi
add rsp, 0x250
pop rdi
pop rbx
pop rbp
ret