Function at 0x140002c10
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 0x140001847
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.140002710
mov ebx, eax
test eax, eax
jns 0x140001888
mov edx, eax
lea rcx, str.Driver_load_error:__08x_n
call fcn.1400017a0
mov eax, ebx
add rsp, 0x30
pop rbx
ret
cmp ecx, 2
jne 0x140001986
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 0x14000188e
mov edx, eax
lea rcx, str.Error_unloading_driver:__08X_n
call fcn.1400017a0
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
mov edi, 0x34
mov qword [rsp + 0x48], rsi
lea rsi, [0x140006220]
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 0x14000190b
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 0x1400018c0
movzx ecx, word [rax]
test cx, cx
je 0x14000190b
lea rax, [0x140006288]
nop dword [rax]
cmp cx, 0x2e
je 0x14000190b
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x1400018f0
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 0x14000194c
lea rdx, [0x140006244]
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 0x140001875
lea rcx, str.Driver_unloaded_successfully._n
call fcn.1400017a0
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
jmp 0x140002c10
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
xor r9d, r9d
mov qword [rsp + 0x268], rsi
xorps xmm0, xmm0
lea rdx, [rbp - 0x78]
movups xmmword [rbp - 0x78], xmm0
lea r8d, [r9 + 0x20]
lea ecx, [r9 + 0x5a]
movups xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140002c62
mov edx, eax
lea rcx, str.SystemBootEnvironmentInformation:_error__08X_n_n
call fcn.1400017a0
jmp 0x140002d4c
mov qword [rsp + 0x260], r14
lea rcx, str.SystemBootEnvironmentInformation:_n_t__BootIdentifier:
mov qword [rsp + 0x258], r15
call fcn.1400017a0
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
mov rax, rcx
shr rax, 0x30
mov r15, rcx
movzx r14d, al
mov rax, rcx
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
shr rax, 0x10
movzx r11d, al
mov rax, rcx
movzx r10d, cl
mov rcx, rdx
shr rax, 8
movzx r9d, al
mov rax, rdx
shr rcx, 0x30
shr rax, 0x20
shr r15, 0x38
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], r9d
mov r9d, ecx
movzx r8d, ax
lea rcx, str._08lx__04hx__04hx__02hhx_02hhx__02hhx_02hhx_02hhx_02hhx_02hhx_02hhx
mov dword [rsp + 0x20], r10d
call fcn.1400017a0
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.1400017a0
mov r15, qword [rsp + 0x258]
mov r14, qword [rsp + 0x260]
xor edi, edi
lea r9, [rbp + 0x1a8]
xor r8d, r8d
mov dword [rbp + 0x1a8], edi
xor edx, edx
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140002d83
mov edx, eax
lea rcx, str.SystemModuleInformation:__08X_n_n
call fcn.1400017a0
jmp 0x140002e90
mov eax, dword [rbp + 0x1a8]
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 + 0x1a8]
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 0x140002ddd
mov edx, eax
lea rcx, str.SystemModuleInformation:__08X_n_n
call fcn.1400017a0
jmp 0x140002e74
lea rax, [rbx + 8]
mov edx, 2
lea rcx, [rbp + 0x20]
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140002df0
movups xmm0, xmmword [rax]
lea rdx, [rbp + 0x48]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea r8, [rbp + 0x48]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, str.SystemModuleInformation:_n_t__Kernel:__S___S__n_n
movzx eax, word [rbp + 0x46]
add rdx, rax
call fcn.1400017a0
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 0x140002ebe
mov edx, eax
lea rcx, str.SystemCodeIntegrityInformation:_error__08X_n_n
jmp 0x140002ec9
mov edx, dword [rsp + 0x64]
lea rcx, str.SystemCodeIntegrityInformation:_n_t__IntegrityOptions:_0x_04X_n_n
call fcn.1400017a0
xor r9d, r9d
mov word [rbp + 0x1a0], di
lea rdx, [rbp + 0x1a0]
lea r8d, [r9 + 2]
lea ecx, [r9 + 0x23]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x140002f03
mov edx, eax
lea rcx, str.SystemKernelDebuggerInformation:_error__08X_n_n
call fcn.1400017a0
jmp 0x140002f1e
movzx r8d, byte [rbp + 0x1a1]
lea rcx, str.SystemKernelDebuggerInformation:_n_t__KernelDebuggerEnabled:__u_n_t__KernelDebuggerNotPresent:__u_n_n
movzx edx, byte [rbp + 0x1a0]
call fcn.1400017a0
mov eax, dword [0x7ffe026c]
cmp eax, 6
jb 0x140002f9a
cmp dword [0x7ffe0270], 3
jae 0x140002f39
cmp eax, 6
jbe 0x140002f9a
xor eax, eax
lea rdx, [rbp + 0x190]
xor r9d, r9d
mov word [rbp + 0x190], ax
mov ecx, 0x95
mov byte [rbp + 0x192], al
lea r8d, [rax + 3]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x140002f77
mov edx, eax
lea rcx, str.SystemKernelDebuggerInformationEx:_error__08X_n_n
call fcn.1400017a0
jmp 0x140002f9a
movzx r9d, byte [rbp + 0x192]
lea rcx, str.SystemKernelDebuggerInformationEx:_n_t__DebuggerAllowed:__u_n_t__DebuggerEnabled:__u_n_t__DebuggerPresent:__u_n_n
movzx r8d, byte [rbp + 0x191]
movzx edx, byte [rbp + 0x190]
call fcn.1400017a0
movzx edx, byte [0x7ffe02d4]
lea rcx, str.SharedUserData__KdDebuggerEnabled:_0x_02X_n_n
call fcn.1400017a0
cmp dword [0x7ffe026c], 6
jbe 0x140003156
xor r9d, r9d
mov byte [rbp + 0x190], 0
lea rdx, [rbp + 0x190]
mov ecx, 0xa3
lea r8d, [r9 + 1]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140002fe9
lea rcx, str.SystemKernelDebuggerFlags:_error__08X_n_n
jmp 0x140002ff7
movzx eax, byte [rbp + 0x190]
lea rcx, str.SystemKernelDebuggerFlags:_0x_02X_n_n
mov edx, eax
call fcn.1400017a0
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
xor r9d, r9d
mov ecx, 0xa4
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
lea r8d, [r9 + 0x20]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140003033
mov edx, eax
lea rcx, str.SystemCodeIntegrityPolicyInformation:_error__08X_n_n
call fcn.1400017a0
jmp 0x140003046
mov r8d, dword [rbp - 0x2c]
lea rcx, str.SystemCodeIntegrityPolicyInformation:_n_t__Options:_0x_04X_n_t__HVCIOptions:_0x_04X_n_n
mov edx, dword [rbp - 0x30]
call fcn.1400017a0
xor r9d, r9d
mov byte [rbp + 0x198], 0
xor r8d, r8d
lea rdx, [rbp + 0x198]
mov ecx, 0xba
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0x80430006
jne 0x14000307a
lea rcx, str.SystemKernelDebuggingAllowed:_STATUS_SECUREBOOT_NOT_ENABLED_n_n
call fcn.1400017a0
jmp 0x14000309c
test eax, eax
jns 0x140003089
mov edx, eax
lea rcx, str.SystemKernelDebuggingAllowed:_error__08X_n_n
jmp 0x140003097
movzx edx, byte [rbp + 0x198]
lea rcx, str.SystemKernelDebuggingAllowed:__u_n_n
call fcn.1400017a0
xor eax, eax
lea rdx, [rbp - 0x58]
xorps xmm0, xmm0
mov dword [rbp - 0x38], eax
xorps xmm1, xmm1
mov dword [rbp + 0x10], eax
xor r9d, r9d
mov ecx, 0xbe
lea r8d, [rax + 0x24]
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x1400030e6
mov edx, eax
lea rcx, str.SystemCodeIntegrityUnlockInformation:_error__08X_n_n
call fcn.1400017a0
jmp 0x140003156
mov r8d, 0x24
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x58]
call sub.ntdll.dll_memcmp
test eax, eax
jne 0x14000310b
lea rcx, str.SystemCodeIntegrityUnlockInformation:_0_n_n
call fcn.1400017a0
jmp 0x140003156
lea rbx, [rbp - 0x58]
mov esi, 9
nop dword [rax]
nop dword [rax + 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.1400017a0
lea rbx, [rbx + 4]
sub rsi, 1
jne 0x140003120
lea rcx, str.Press_any_key_to_exit._n
call fcn.1400017a0
mov rax, qword gs:[0x30]
xorps xmm0, xmm0
mov rsi, qword [rsp + 0x268]
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
nop dword [rax]
cmp word [rsp + 0x68], 1
jne 0x1400031a8
cmp dword [rsp + 0x6c], 0
je 0x1400031a8
mov eax, ecx
and eax, 0xfffffff3
cmp ecx, eax
je 0x1400031c6
lea r9, [rbp - 0x80]
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [rsp + 0x78]
jmp 0x140003190
mov eax, edi
add rsp, 0x270
pop rdi
pop rbx
pop rbp
ret