Function at 0x140002590
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 0x1400010ab
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.140002220
mov ebx, eax
test eax, eax
jns 0x1400011ca
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 0x1400011eb
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
js 0x1400011b3
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 0x14000115b
nop word [rax + rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x140001110
movzx ecx, word [rax]
test cx, cx
je 0x14000115b
lea rax, [0x140005068]
nop dword [rax]
cmp cx, 0x2e
je 0x14000115b
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140001140
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 0x14000119c
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]
test edi, edi
js 0x1400011d0
lea rcx, str.Driver_unloaded_successfully._n
call fcn.140001000
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
mov edx, edi
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
add rsp, 0x30
pop rbx
jmp 0x140002590
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
xor eax, eax
mov qword [rsp + 0x268], rsi
xor r9d, r9d
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x78]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
lea r8d, [rax + 0x20]
mov qword [rbp - 0x60], rax
lea ecx, [rax + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x1400025e8
mov edx, eax
lea rcx, str.SystemBootEnvironmentInformation:_error__08X_n_n
call fcn.140001000
jmp 0x1400026cd
mov qword [rsp + 0x260], r14
lea rcx, str.SystemBootEnvironmentInformation:_n_t__BootIdentifier:
mov qword [rsp + 0x258], r15
call fcn.140001000
mov rdx, qword [rbp - 0x70]
mov rax, rdx
movzx r10d, dl
shr rax, 0x30
mov r15, rdx
movzx r14d, al
mov rax, rdx
shr rax, 0x28
movzx esi, al
mov rax, rdx
shr rax, 0x20
movzx edi, al
mov rax, rdx
shr rax, 0x18
movzx ebx, al
mov rax, rdx
shr rax, 0x10
movzx r11d, al
mov rax, rdx
mov rdx, qword [rbp - 0x78]
shr rax, 8
mov r9, rdx
movzx ecx, al
mov rax, rdx
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], ecx
lea rcx, str._08lx__04hx__04hx__02hhx_02hhx__02hhx_02hhx_02hhx_02hhx_02hhx_02hhx
movzx r8d, ax
shr r9, 0x30
mov dword [rsp + 0x20], r10d
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 + 0x258]
mov r14, qword [rsp + 0x260]
xor edi, edi
lea r9, [rsp + 0x60]
xor r8d, r8d
mov dword [rsp + 0x60], edi
xor edx, edx
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140002700
mov edx, eax
lea rcx, str.SystemModuleInformation:__08X_n_n
call fcn.140001000
jmp 0x140002810
mov eax, dword [rsp + 0x60]
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 [rsp + 0x60]
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 0x140002756
mov edx, eax
lea rcx, str.SystemModuleInformation:__08X_n_n
call fcn.140001000
jmp 0x1400027f4
lea rax, [rbx + 8]
mov edx, 2
lea rcx, [rbp + 0x20]
nop dword [rax]
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 0x140002770
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.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 + 0x68], 8
lea rdx, [rsp + 0x68]
lea r8d, [r9 + 8]
lea ecx, [r9 + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14000283e
mov edx, eax
lea rcx, str.SystemCodeIntegrityInformation:_error__08X_n_n
jmp 0x140002849
mov edx, dword [rsp + 0x6c]
lea rcx, str.SystemCodeIntegrityInformation:_n_t__IntegrityOptions:_0x_04X_n_n
call fcn.140001000
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 0x140002883
mov edx, eax
lea rcx, str.SystemKernelDebuggerInformation:_error__08X_n_n
call fcn.140001000
jmp 0x14000289e
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.140001000
mov eax, dword [0x7ffe026c]
cmp eax, 6
jb 0x14000291a
cmp dword [0x7ffe0270], 3
jae 0x1400028b9
cmp eax, 6
jbe 0x14000291a
xor eax, eax
lea rdx, [rbp + 0x1a8]
xor r9d, r9d
mov word [rbp + 0x1a8], ax
mov ecx, 0x95
mov byte [rbp + 0x1aa], al
lea r8d, [rax + 3]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x1400028f7
mov edx, eax
lea rcx, str.SystemKernelDebuggerInformationEx:_error__08X_n_n
call fcn.140001000
jmp 0x14000291a
movzx r9d, byte [rbp + 0x1aa]
lea rcx, str.SystemKernelDebuggerInformationEx:_n_t__DebuggerAllowed:__u_n_t__DebuggerEnabled:__u_n_t__DebuggerPresent:__u_n_n
movzx r8d, byte [rbp + 0x1a9]
movzx edx, byte [rbp + 0x1a8]
call fcn.140001000
movzx edx, byte [0x7ffe02d4]
lea rcx, str.SharedUserData__KdDebuggerEnabled:_0x_02X_n_n
call fcn.140001000
cmp dword [0x7ffe026c], 6
jbe 0x140002ae6
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 0x140002969
lea rcx, str.SystemKernelDebuggerFlags:_error__08X_n_n
jmp 0x140002977
movzx eax, byte [rbp + 0x190]
lea rcx, str.SystemKernelDebuggerFlags:_0x_02X_n_n
mov edx, eax
call fcn.140001000
xor eax, eax
lea rdx, [rbp - 0x28]
xor r9d, r9d
mov qword [rbp - 0x28], rax
mov ecx, 0xa4
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
lea r8d, [rax + 0x20]
mov qword [rbp - 0x10], rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x1400029ba
mov edx, eax
lea rcx, str.SystemCodeIntegrityPolicyInformation:_error__08X_n_n
call fcn.140001000
jmp 0x1400029cd
mov r8d, dword [rbp - 0x24]
lea rcx, str.SystemCodeIntegrityPolicyInformation:_n_t__Options:_0x_04X_n_t__HVCIOptions:_0x_04X_n_n
mov edx, dword [rbp - 0x28]
call fcn.140001000
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 0x140002a01
lea rcx, str.SystemKernelDebuggingAllowed:_STATUS_SECUREBOOT_NOT_ENABLED_n_n
call fcn.140001000
jmp 0x140002a23
test eax, eax
jns 0x140002a10
mov edx, eax
lea rcx, str.SystemKernelDebuggingAllowed:_error__08X_n_n
jmp 0x140002a1e
movzx edx, byte [rbp + 0x198]
lea rcx, str.SystemKernelDebuggingAllowed:__u_n_n
call fcn.140001000
xor eax, eax
lea rdx, [rbp - 0x50]
xor r9d, r9d
mov qword [rbp - 0x50], rax
mov ecx, 0xbe
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
lea r8d, [rax + 0x24]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], eax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x18], eax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test eax, eax
jns 0x140002a77
mov edx, eax
lea rcx, str.SystemCodeIntegrityUnlockInformation:_error__08X_n_n
call fcn.140001000
jmp 0x140002ae6
mov r8d, 0x24
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x50]
call sub.ntdll.dll_memcmp
test eax, eax
jne 0x140002a9c
lea rcx, str.SystemCodeIntegrityUnlockInformation:_0_n_n
call fcn.140001000
jmp 0x140002ae6
lea rbx, [rbp - 0x50]
mov esi, 9
nop word [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.140001000
lea rbx, [rbx + 4]
sub rsi, 1
jne 0x140002ab0
lea rcx, str.Press_any_key_to_exit._n
call fcn.140001000
mov rax, qword gs:[0x30]
mov rsi, qword [rsp + 0x268]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x20]
xor ecx, ecx
mov rbx, qword [rax + 0x20]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x80], ecx
nop
cmp word [rsp + 0x70], 1
jne 0x140002b38
cmp dword [rsp + 0x74], 0
je 0x140002b38
mov eax, ecx
and eax, 0xfffffff3
cmp ecx, eax
je 0x140002b55
lea r9, [rbp - 0x58]
mov r8d, 1
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [rbp - 0x80]
jmp 0x140002b20
mov eax, edi
add rsp, 0x270
pop rdi
pop rbx
pop rbp
ret