Function at 0x140001e90
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.140001bf0
mov ebx, eax
test eax, eax
jns 0x1400010eb
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 0x1400011e7
mov rbx, qword [rdx + 8]
lea r9, [rsp + 0x40]
mov dl, 1
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov ecx, 0xa
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov edi, eax
test eax, eax
jns 0x1400010f1
mov ebx, eax
mov edx, edi
lea rcx, str.Error_unloading_driver:__08X_n
call fcn.140001000
mov rdi, qword [rsp + 0x50]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x48], rsi
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
lea rsi, [section..data]
mov edx, 0x35
mov rcx, rsi
mov edi, 0x34
call qword [sym.imp.ntdll.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x140001181
lea r8, [rbx + 2]
nop word [rax + rax]
cmp cx, 0x5c
lea rdx, [rdx + 2]
movzx ecx, word [rdx]
mov rax, r8
cmovne rax, rbx
add r8, 2
mov rbx, rax
test cx, cx
jne 0x140001130
movzx ecx, word [rax]
test cx, cx
je 0x140001181
movzx eax, word [rax]
lea rcx, [0x140005068]
movzx edx, ax
cmp dx, 0x2e
je 0x140001181
add rbx, 2
mov word [rcx], ax
inc edi
add rcx, 2
movzx eax, word [rbx]
movzx edx, ax
test ax, ax
jne 0x140001163
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 ecx, 0xa
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov rsi, qword [rsp + 0x48]
mov ebx, edi
test edi, edi
js 0x1400010d6
lea rcx, str.Driver_unloaded_successfully._n
call fcn.140001000
mov rdi, qword [rsp + 0x50]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
jmp 0x140001e90
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
mov r8d, 0x20
mov qword [rbp - 0x64], rax
mov ecx, 0x5a
mov dword [rbp - 0x5c], eax
movups xmmword [rbp - 0x74], xmm0
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140001ef2
mov edx, eax
lea rcx, str.SystemBootEnvironmentInformation:_error__08X_n_n
call fcn.140001000
jmp 0x140001fd7
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]
lea r9, [rbp + 0x188]
mov dword [rbp + 0x188], r12d
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000200f
mov edx, eax
lea rcx, str.SystemModuleInformation:__08X_n_n
call fcn.140001000
jmp 0x140002120
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 ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14000206a
mov edx, eax
lea rcx, str.SystemModuleInformation:__08X_n_n
call fcn.140001000
jmp 0x140002104
lea rcx, [rbx + 8]
mov edx, 2
lea rax, [rbp]
nop word [rax + rax]
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 0x140002080
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
mov r8d, 8
lea rdx, [rsp + 0x60]
mov ecx, 0x67
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140002151
mov edx, eax
lea rcx, str.SystemCodeIntegrityInformation:_error__08X_n_n
jmp 0x14000215c
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
mov r8d, 2
lea rdx, [rbp + 0x180]
mov ecx, 0x23
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x14000219a
mov edx, eax
lea rcx, str.SystemKernelDebuggerInformation:_error__08X_n_n
call fcn.140001000
jmp 0x1400021b5
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 0x140002233
cmp dword [0x7ffe0270], 3
jae 0x1400021d0
cmp eax, 6
jbe 0x140002233
xor eax, eax
lea rdx, [rbp + 0x170]
xor r9d, r9d
mov word [rbp + 0x170], ax
mov r8d, 3
mov byte [rbp + 0x172], al
mov ecx, 0x95
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x140002210
mov edx, eax
lea rcx, str.SystemKernelDebuggerInformationEx:_error__08X_n_n
call fcn.140001000
jmp 0x140002233
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 0x1400023f6
xor r9d, r9d
mov byte [rbp + 0x170], r12b
mov r8d, 1
lea rdx, [rbp + 0x170]
mov ecx, 0xa3
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edx, eax
test eax, eax
js 0x140002284
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 r8d, 0x20
mov ecx, 0xa4
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x1400022d7
mov edx, eax
lea rcx, str.SystemCodeIntegrityPolicyInformation:_error__08X_n_n
call fcn.140001000
jmp 0x1400022ec
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 0x140002320
lea rcx, str.SystemKernelDebuggingAllowed:_STATUS_SECUREBOOT_NOT_ENABLED_n_n
call fcn.140001000
jmp 0x140002342
test eax, eax
jns 0x14000232f
mov edx, eax
lea rcx, str.SystemKernelDebuggingAllowed:_error__08X_n_n
jmp 0x14000233d
movzx edx, byte [rbp + 0x178]
lea rcx, str.SystemKernelDebuggingAllowed:__u_n_n
call fcn.140001000
xorps xmm0, xmm0
mov dword [rbp - 0x58], r12d
xorps xmm1, xmm1
lea rdx, [rbp - 0x58]
xor eax, eax
xor r9d, r9d
mov r8d, 0x24
mov dword [rbp - 0x10], eax
mov ecx, 0xbe
movups xmmword [rbp - 0x54], xmm0
movups xmmword [rbp - 0x44], xmm0
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x14000238f
mov edx, eax
lea rcx, str.SystemCodeIntegrityUnlockInformation:_error__08X_n_n
call fcn.140001000
jmp 0x1400023f6
mov r8d, 0x24
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call sub.ntdll.dll_memcmp
test eax, eax
jne 0x1400023b4
lea rcx, str.SystemCodeIntegrityUnlockInformation:_0_n_n
call fcn.140001000
jmp 0x1400023f6
lea rbx, [rbp - 0x58]
mov esi, 9
nop dword [rax]
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 0x1400023c0
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 0x14000244d
cmp dword [rsp + 0x6c], 0
je 0x14000244d
mov eax, ecx
and eax, 0xfffffff3
cmp ecx, eax
je 0x14000246e
lea r9, [rbp + 0x170]
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [rsp + 0x78]
jmp 0x140002435
mov eax, edi
add rsp, 0x250
pop rdi
pop rbx
pop rbp
ret