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

Disassembly:
mov byte [rsp + 0x18], r8b
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x38]
call fcn.1400019a0
test eax, eax
js 0x140002580
mov rax, qword gs:[0x30]
lea rdx, str.nt_g_CiEnabled
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x4d0], rbx
mov qword [rsp + 0x4d8], r12
mov r12d, 0x23f0
mov rcx, qword [rax + 0x60]
lea rax, str.CI_g_CiOptions
cmp word [rcx + 0x120], r12w
lea rcx, str._ls_at_0x_p._n
cmovae rdx, rax
call fcn.140001000
xor r8d, r8d
lea r9, [rbp + 0x3e0]
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
jns 0x1400022ca
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.140001000
jmp 0x14000256e
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 0x140002570
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp - 0x70]
mov edx, 0x208
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140002570
lea rdx, [rbp - 0x70]
lea rcx, [section..data]
call fcn.140001e40
test eax, eax
js 0x140002570
xor r9d, r9d
mov qword [rsp + 0x30], 8
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 8]
lea ecx, [r9 + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140002362
mov edx, eax
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.140001000
mov eax, dword [rsp + 0x34]
and al, 3
cmp al, 1
je 0x14000239a
lea rcx, str.WARNING:_CI_is_already_disabled__n
call fcn.140001000
lea rdx, [section..data]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x140002570
lea rdx, [rbp + 0x1a0]
lea rcx, [0x140005210]
call fcn.140001e40
test eax, eax
js 0x140002570
mov rdx, qword [rsp + 0x38]
lea r9, [rbp + 0x3e8]
xor r8d, r8d
call fcn.140001f30
mov ebx, eax
test eax, eax
jns 0x1400023e2
mov edx, eax
lea rcx, str.Failed_to_disable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.140001000
jmp 0x14000253b
lea rcx, str.Successfully_disabled_DSE.
call fcn.140001000
mov rax, qword gs:[0x30]
mov ebx, dword [rbp + 0x3e8]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], r12w
jb 0x140002419
mov edx, ebx
lea rcx, str._Original_g_CiOptions_value:_0x_X.
call fcn.140001000
lea rcx, [0x140003b18]
call fcn.140001000
lea rdx, [section..data]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x1400024cc
cmp eax, 0xc000010e
jne 0x1400024bc
lea rdx, [section..data]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
jns 0x140002482
mov edx, eax
lea rcx, str.Target_driver_is_already_loaded__and_unloading_failed_with_status__08X_n
call fcn.140001000
jmp 0x1400024d8
lea rdx, [section..data]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x1400024b3
mov edx, eax
lea rcx, str.Failed_to_reload_target_driver:__08X_n
call fcn.140001000
jmp 0x1400024d8
lea rcx, str.Succesfully_reloaded_target_driver._n
jmp 0x1400024d3
mov edx, eax
lea rcx, str.Failed_to_load_target_driver:__08X_n
call fcn.140001000
jmp 0x1400024d8
lea rcx, str.Target_driver_loaded_successfully._n
call fcn.140001000
mov rdx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, ebx
call fcn.140001f30
mov ebx, eax
test eax, eax
jns 0x140002500
mov edx, eax
lea rcx, str.WARNING:_failed_to_re_enable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.140001000
xor ebx, ebx
jmp 0x14000250c
lea rcx, str.Successfully_re_enabled_DSE._n
call fcn.140001000
lea rdx, [0x140005210]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x140005234]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test ebx, ebx
jns 0x140002553
lea rdx, [0x140005024]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rbp + 0x3e0]
lea r9, [rbp + 0x3e0]
xor r8d, r8d
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov eax, ebx
mov rbx, qword [rsp + 0x4d0]
mov r12, qword [rsp + 0x4d8]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret