Function at 0x140003bf0
Capabilities:
Delete registry key
Disable driver code integrity
Get system information on windows
Install driver
Unload driver

Disassembly:
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rbp + 0x380], rax
lea rcx, [rsp + 0x48]
call fcn.140003530
test eax, eax
js 0x140003f58
mov rax, qword gs:[0x30]
lea rdx, str.nt_g_CiEnabled
mov r8, qword [rsp + 0x48]
mov qword [rsp + 0x4a0], rbx
mov qword [rsp + 0x4a8], r14
mov r14d, 0x23f0
mov rcx, qword [rax + 0x60]
lea rax, str.CI_g_CiOptions
cmp word [rcx + 0x120], r14w
lea rcx, str._ls_at_0x_p._n
cmovae rdx, rax
call fcn.140001d80
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
jns 0x140003c9e
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.140001d80
jmp 0x140003f46
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x170]
mov edx, 0x208
lea rcx, str.C:Windowsgdrv.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140003f48
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
mov edx, 0x208
lea rcx, str.C:Windowsioctl.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140003f48
lea rdx, [rsp + 0x60]
lea rcx, [0x1400ed800]
call fcn.140003790
test eax, eax
js 0x140003f48
xor r9d, r9d
mov qword [rsp + 0x38], 8
mov r8d, 8
lea rdx, [rsp + 0x38]
mov ecx, 0x67
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140003d43
mov edx, eax
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.140001d80
mov eax, dword [rsp + 0x3c]
and al, 3
cmp al, 1
je 0x140003d7b
lea rcx, str.WARNING:_CI_is_already_disabled__n
call fcn.140001d80
lea rdx, [0x1400ed800]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x140003f48
lea rdx, [rbp + 0x170]
lea rcx, [0x1400eda10]
call fcn.140003790
test eax, eax
js 0x140003f48
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x38]
xor r8d, r8d
call fcn.140003920
mov ebx, eax
test eax, eax
jns 0x140003dc1
mov edx, eax
lea rcx, str.Failed_to_disable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.140001d80
jmp 0x140003f1a
lea rcx, str.Successfully_disabled_DSE.
call fcn.140001d80
mov rax, qword gs:[0x30]
mov ebx, dword [rsp + 0x38]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], r14w
jb 0x140003df6
mov edx, ebx
lea rcx, str._Original_g_CiOptions_value:_0x_X.
call fcn.140001d80
lea rcx, [0x1400065ac]
call fcn.140001d80
lea rdx, [0x1400ed800]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x140003ea9
cmp eax, 0xc000010e
jne 0x140003e99
lea rdx, [0x1400ed800]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
jns 0x140003e5f
mov edx, eax
lea rcx, str.Target_driver_is_already_loaded__and_unloading_failed_with_status__08X_n
call fcn.140001d80
jmp 0x140003eb5
lea rdx, [0x1400ed800]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x140003e90
mov edx, eax
lea rcx, str.Failed_to_reload_target_driver:__08X_n
call fcn.140001d80
jmp 0x140003eb5
lea rcx, str.Succesfully_reloaded_target_driver._n
jmp 0x140003eb0
mov edx, eax
lea rcx, str.Failed_to_load_target_driver:__08X_n
call fcn.140001d80
jmp 0x140003eb5
lea rcx, str.Target_driver_loaded_successfully._n
call fcn.140001d80
mov rdx, qword [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call fcn.140003920
mov ebx, eax
test eax, eax
jns 0x140003edd
mov edx, eax
lea rcx, str.WARNING:_failed_to_re_enable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.140001d80
xor ebx, ebx
jmp 0x140003ee9
lea rcx, str.Successfully_re_enabled_DSE._n
call fcn.140001d80
lea rdx, [0x1400eda10]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x1400eda34]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea rdx, [0x1400ed824]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x30]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov ecx, 0xa
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov eax, ebx
mov rbx, qword [rsp + 0x4a0]
mov r14, qword [rsp + 0x4a8]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140003f80
add rsp, 0x490
pop rbp
ret