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

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x14006a010]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
lea rcx, [rsp + 0x38]
mov rdi, rdx
call fcn.14000cba0
test eax, eax
js 0x14000d679
mov rax, qword gs:[0x30]
lea rdx, str.nt_g_CiEnabled
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x6e0], rbx
mov qword [rsp + 0x6f0], 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.140001180
xor r8d, r8d
lea r9, [rsp + 0x34]
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
jns 0x14000d234
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.140001180
jmp 0x14000d667
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x3b0]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x14000d669
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x1a0]
mov edx, 0x208
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x14000d669
lea rdx, [rbp + 0x1a0]
lea rcx, [0x140075540]
call fcn.14000ce00
lea rdx, [0x140075540]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x14000d669
lea r8, [0x14005e6b8]
mov dword [rsp + 0x40], 1
mov edx, 5
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rbp + 0x1a0]
mov edx, 0x87
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rbx, 0xffffffffffffffff
lea rcx, [rbp - 0x70]
mov rax, rbx
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000d300
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rbp - 0x70]
xor ecx, ecx
lea rdx, [0x140075540]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x14000d669
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
xor ecx, ecx
lea rdx, [0x140075540]
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x14000d669
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 0x14000d3ab
mov edx, eax
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.140001180
mov eax, dword [rsp + 0x3c]
and al, 3
cmp al, 1
je 0x14000d3e3
lea rcx, str.WARNING:_CI_is_already_disabled__n
call fcn.140001180
lea rdx, [0x140075540]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x14000d669
lea rdx, [rbp + 0x3b0]
lea rcx, [0x140075750]
call fcn.14000ce00
lea rdx, [0x140075750]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x14000d669
lea r8, [0x14005e6b8]
mov dword [rsp + 0x44], 1
mov edx, 5
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rbp + 0x3b0]
mov edx, 0x87
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rax, [rbp - 0x70]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x14000d450
lea eax, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rbp - 0x70]
xor ecx, ecx
lea rdx, [0x140075750]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x14000d669
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
xor ecx, ecx
lea rdx, [0x140075750]
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x14000d669
lea r9, [rsp + 0x30]
call fcn.14000cfb0
mov ebx, eax
test eax, eax
jns 0x14000d4ed
mov edx, eax
lea rcx, str.Failed_to_disable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.140001180
jmp 0x14000d63c
lea rcx, str.Successfully_disabled_DSE.
call fcn.140001180
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], r14w
jb 0x14000d520
mov edx, dword [rsp + 0x30]
lea rcx, str._Original_g_CiOptions_value:_0x_X.
call fcn.140001180
lea rcx, [0x140056d24]
call fcn.140001180
lea rdx, [0x140075540]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x14000d5d3
cmp eax, 0xc000010e
jne 0x14000d5c3
lea rdx, [0x140075540]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
jns 0x14000d589
mov edx, eax
lea rcx, str.Target_driver_is_already_loaded__and_unloading_failed_with_status__08X_n
call fcn.140001180
jmp 0x14000d5df
lea rdx, [0x140075540]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x14000d5ba
mov edx, eax
lea rcx, str.Failed_to_reload_target_driver:__08X_n
call fcn.140001180
jmp 0x14000d5df
lea rcx, str.Succesfully_reloaded_target_driver._n
jmp 0x14000d5da
mov edx, eax
lea rcx, str.Failed_to_load_target_driver:__08X_n
call fcn.140001180
jmp 0x14000d5df
lea rcx, str.Target_driver_loaded_successfully._n
call fcn.140001180
xor r9d, r9d
call fcn.14000cfb0
mov ebx, eax
test eax, eax
jns 0x14000d5ff
mov edx, eax
lea rcx, str.WARNING:_failed_to_re_enable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.140001180
xor ebx, ebx
jmp 0x14000d60b
lea rcx, str.Successfully_re_enabled_DSE._n
call fcn.140001180
lea rdx, [0x140075750]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x140075774]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea rdx, [0x140075564]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x34]
lea r9, [rsp + 0x34]
xor r8d, r8d
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov eax, ebx
mov rbx, qword [rsp + 0x6e0]
mov r14, qword [rsp + 0x6f0]
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140053420
mov rdi, qword [rsp + 0x6f8]
add rsp, 0x6d0
pop rbp
ret