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

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140479900]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rdi, rcx
movzx r14d, r8b
lea rcx, [rsp + 0x40]
mov rsi, rdx
call fcn.1400400a0
test eax, eax
js 0x140040f2a
xor r8d, r8d
mov qword [rsp + 0x4b0], 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 0x140040c68
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.14003fa50
jmp 0x140040f20
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x160]
mov edx, 0x208
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140040f22
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov edx, 0x208
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140040f22
lea rdx, [rsp + 0x50]
lea rcx, [0x14047a070]
call fcn.140040300
test eax, eax
js 0x140040f22
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 0x140040d02
mov edx, eax
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.14003fa50
mov eax, dword [rsp + 0x3c]
and al, 3
cmp al, 1
je 0x140040d3a
lea rcx, str.WARNING:_CI_is_already_disabled__n
call fcn.14003fa50
lea rdx, [0x14047a070]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x140040f22
lea rdx, [rbp + 0x160]
lea rcx, [0x14047a280]
call fcn.140040300
test eax, eax
js 0x140040f22
mov rdi, qword [rsp + 0x40]
lea r9, [rsp + 0x38]
mov rdx, rdi
lea rcx, [0x14047a280]
xor r8d, r8d
call fcn.140040990
mov ebx, eax
test eax, eax
jns 0x140040d8a
mov edx, eax
lea rcx, str.Failed_to_disable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.14003fa50
jmp 0x140040ef5
lea rcx, [0x14013378c]
call fcn.14003fa50
lea rdx, [0x14047a070]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
test eax, eax
jns 0x140040e7a
cmp eax, 0xc000010e
jne 0x140040e5e
lea rdx, [0x14047a070]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov ebx, eax
test eax, eax
jns 0x140040e0a
lea rcx, str._e_0m_e_0me_1_34m_e_0m_
call fcn.14003fa50
mov edx, ebx
lea rcx, str._Bypass_Already_Loaded__08X
call fcn.14003fa50
jmp 0x140040e92
lea rdx, [0x14047a070]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
test eax, eax
jns 0x140040e49
lea rcx, str._e_0m_e_0me_1_34m_e_0m_
call fcn.14003fa50
mov edx, ebx
lea rcx, str._Failed_To_Reload_Bypass:__08X
call fcn.14003fa50
jmp 0x140040e92
lea rcx, str._n_e_0m_e_0me_1_34m_e_0m_
call fcn.14003fa50
lea rcx, str._Successfully_Reloaded_Bypass.
jmp 0x140040e8d
lea rcx, str._e_0m_e_0me_1_34m_e_0m_
call fcn.14003fa50
mov edx, ebx
lea rcx, str._Failed_To_Load_Bypass:__08X_n
call fcn.14003fa50
jmp 0x140040e92
lea rcx, str._e_0m_e_0me_1_34m_e_0m_
call fcn.14003fa50
lea rcx, str._Bypass_Loaded_Successfully.
call fcn.14003fa50
mov r8d, dword [rsp + 0x38]
lea rcx, [0x14047a280]
xor r9d, r9d
mov rdx, rdi
call fcn.140040990
mov ebx, eax
test eax, eax
jns 0x140040ebf
mov edx, eax
lea rcx, str.WARNING:_error_b__08X_n
call fcn.14003fa50
xor ebx, ebx
lea rdx, [0x14047a280]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x14047a2a4]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test r14b, r14b
je 0x140040f09
lea rdx, [0x14047a094]
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 + 0x4b0]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14012c2b0
mov rsi, qword [rsp + 0x4b8]
add rsp, 0x480
pop r14
pop rdi
pop rbp
ret