Function at 0x140002b70
Capabilities:
Delete registry key
Get system information on windows
Install driver
Unload driver

Disassembly:
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400be080]
xor rax, rsp
mov qword [rbp + 0x380], rax
lea rcx, [rsp + 0x50]
call fcn.1400024b0
test eax, eax
js 0x140002e44
xor r8d, r8d
mov qword [rsp + 0x4a0], rbx
lea r9, [rsp + 0x30]
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
jns 0x140002bd7
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.140001cc0
jmp 0x140002e3a
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x170]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32Drivers_ndiverts.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140002e3c
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32Drivers_ntdifs.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140002e3c
lea rdx, [rsp + 0x60]
lea rcx, [0x1400de6d0]
call fcn.140002710
test eax, eax
js 0x140002e3c
xor r9d, r9d
mov qword [rsp + 0x38], 8
lea rdx, [rsp + 0x38]
lea r8d, [r9 + 8]
lea ecx, [r9 + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140002c79
mov edx, eax
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.140001cc0
mov eax, dword [rsp + 0x3c]
and al, 3
cmp al, 1
je 0x140002cb1
lea rcx, str.WARNING:_CI_is_already_disabled__n
call fcn.140001cc0
lea rdx, [0x1400de6d0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x140002e3c
lea rdx, [rbp + 0x170]
lea rcx, [0x1400de8e0]
call fcn.140002710
test eax, eax
js 0x140002e3c
mov rdx, qword [rsp + 0x50]
lea r9, [rsp + 0x38]
xor r8d, r8d
call fcn.140002890
mov ebx, eax
test eax, eax
jns 0x140002cfe
mov edx, eax
lea rcx, str.Failed_to_disable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.140001cc0
lea rdx, [0x1400de6f4]
jmp 0x140002e16
lea rcx, [0x1400a3d9c]
call fcn.140001cc0
lea rdx, [0x1400de6d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x140002db1
cmp eax, 0xc000010e
jne 0x140002da1
lea rdx, [0x1400de6d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
jns 0x140002d67
mov edx, eax
lea rcx, str.____Target_driver_is_already_loaded__and_unloading_failed_with_status__08X_n
call fcn.140001cc0
jmp 0x140002dca
lea rdx, [0x1400de6d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x140002d98
mov edx, eax
lea rcx, str.Failed_to_reload_target_driver:__08X_n
call fcn.140001cc0
jmp 0x140002dca
lea rcx, str.Succesfully_reloaded_target_driver._n
jmp 0x140002dc5
mov edx, eax
lea rcx, str.Failed_to_load_target_driver:__08X_n
call fcn.140001cc0
jmp 0x140002dca
mov edx, 0x1f4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
lea rcx, str.Target_driver_loaded_successfully._n
call fcn.140001cc0
mov r8d, dword [rsp + 0x38]
xor r9d, r9d
mov rdx, qword [rsp + 0x50]
call fcn.140002890
mov ebx, eax
test eax, eax
jns 0x140002df2
mov edx, eax
lea rcx, str.WARNING:_error_b__08X_n
call fcn.140001cc0
xor ebx, ebx
lea rdx, [0x1400de8e0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x1400de904]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x30]
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov eax, ebx
mov rbx, qword [rsp + 0x4a0]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14008f700
add rsp, 0x490
pop rbp
ret