Function at 0x140001e30
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.140001b90
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 0x1400011d0
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 eax, word [rbx]
mov rdx, rbx
test ax, ax
je 0x14000116b
nop dword [rax]
add rdx, 2
cmp ax, 0x5c
mov rcx, rdx
cmovne rcx, rbx
movzx eax, word [rdx]
mov rbx, rcx
test ax, ax
jne 0x140001120
movzx eax, word [rcx]
test ax, ax
je 0x14000116b
lea rcx, [0x140005068]
nop dword [rax]
cmp ax, 0x2e
je 0x14000116b
add rbx, 2
mov word [rcx], ax
inc edi
add rcx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x140001150
movsxd rax, edi
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rsi
mov word [rsi + rax*2], r8w
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
movzx edx, byte [rsp + 0x40]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edi, eax
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov rsi, qword [rsp + 0x48]
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 0x140001e30
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 0x140001e8f
mov edx, eax
lea rcx, str.SystemBootEnvironmentInformation:_error__08X_n_n
call fcn.140001000
jmp 0x140001f74
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 0x140001faa
mov edx, eax
lea rcx, str.SystemModuleInformation:__08X_n_n
call fcn.140001000
jmp 0x1400020b1
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 0x140002004
mov edx, eax
lea rcx, str.SystemModuleInformation:__08X_n_n
call fcn.140001000
jmp 0x140002095
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 0x140002011
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 0x1400020df
mov edx, eax
lea rcx, str.SystemCodeIntegrityInformation:_error__08X_n_n
jmp 0x1400020ea
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 0x140002125
mov edx, eax
lea rcx, str.SystemKernelDebuggerInformation:_error__08X_n_n
call fcn.140001000
jmp 0x140002140
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 0x1400021bc
cmp dword [0x7ffe0270], 3
jae 0x14000215b
cmp eax, 6
jbe 0x1400021bc
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 0x140002199
mov edx, eax
lea rcx, str.SystemKernelDebuggerInformationEx:_error__08X_n_n
call fcn.140001000
jmp 0x1400021bc
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 0x140002376
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 0x14000220b
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 0x14000225c
mov edx, eax
lea rcx, str.SystemCodeIntegrityPolicyInformation:_error__08X_n_n
call fcn.140001000
jmp 0x140002271
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 0x1400022a5
lea rcx, str.SystemKernelDebuggingAllowed:_STATUS_SECUREBOOT_NOT_ENABLED_n_n
call fcn.140001000
jmp 0x1400022c7
test eax, eax
jns 0x1400022b4
mov edx, eax
lea rcx, str.SystemKernelDebuggingAllowed:_error__08X_n_n
jmp 0x1400022c2
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 0x140002312
mov edx, eax
lea rcx, str.SystemCodeIntegrityUnlockInformation:_error__08X_n_n
call fcn.140001000
jmp 0x140002376
mov r8d, 0x24
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x50]
call sub.ntdll.dll_memcmp
test eax, eax
jne 0x140002337
lea rcx, str.SystemCodeIntegrityUnlockInformation:_0_n_n
call fcn.140001000
jmp 0x140002376
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 0x140002340
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 0x1400023cd
cmp dword [rsp + 0x6c], 0
je 0x1400023cd
mov eax, ecx
and eax, 0xfffffff3
cmp ecx, eax
je 0x1400023eb
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 0x1400023b5
mov eax, edi
add rsp, 0x250
pop rdi
pop rbx
pop rbp
ret