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

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x380], rax
lea rcx, [rsp + 0x40]
mov rdi, rdx
call fcn.1400017f0
test eax, eax
js 0x14000218e
xor r8d, r8d
lea r9, [rsp + 0x30]
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test eax, eax
js 0x14000218e
mov qword [rsp + 0x4a0], rbx
lea r8, [rbp + 0x170]
xor ebx, ebx
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov edx, 0x208
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140002186
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x60]
mov edx, 0x208
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
test eax, eax
js 0x140002186
lea rdx, [rsp + 0x60]
lea rcx, [0x14000cea0]
call fcn.140001ad0
test eax, eax
js 0x140002186
xor r9d, r9d
mov qword [rsp + 0x38], 8
lea r8d, [rbx + 8]
lea rdx, [rsp + 0x38]
lea ecx, [rbx + 0x67]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140001fb6
mov edx, eax
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.140001010
mov eax, dword [rsp + 0x3c]
and al, 3
cmp al, 1
je 0x140001fe2
lea rdx, [0x14000cea0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x140002186
lea rdx, [rbp + 0x170]
lea rcx, [0x14000d0b0]
call fcn.140001ad0
test eax, eax
js 0x140002186
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x38]
xor r8d, r8d
call fcn.140001be0
mov edi, eax
test eax, eax
js 0x140002157
lea rcx, [0x140004654]
call fcn.140001010
lea rdx, [0x14000cea0]
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 0x1400020cc
cmp eax, 0xc000010e
jne 0x1400020bc
lea rdx, [0x14000cea0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
jns 0x140002082
mov edx, eax
lea rcx, str.Target_driver_is_already_loaded__and_unloading_failed_with_status__08X_n
call fcn.140001010
jmp 0x1400020d8
lea rdx, [0x14000cea0]
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 0x1400020b3
mov edx, eax
lea rcx, str.Failed_to_reload_target_driver:__08X_n
call fcn.140001010
jmp 0x1400020d8
lea rcx, str.Succesfully_reloaded_target_driver._n
jmp 0x1400020d3
mov edx, eax
lea rcx, str.Failed_to_load_target_driver:__08X_n
call fcn.140001010
jmp 0x1400020d8
lea rcx, str.WarRock_driver_loaded_successfully._n
call fcn.140001010
mov r8d, dword [rsp + 0x38]
xor r9d, r9d
mov rdx, qword [rsp + 0x40]
call fcn.140001be0
mov edi, eax
test eax, eax
jns 0x140002131
mov edx, eax
lea rcx, str.WARNING:_failed_to_re_enable__through_Gigabyte_loader_driver:__08X_n
call fcn.140001010
lea rdx, [0x14000d0b0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x14000d0d4]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
jmp 0x14000216d
lea rdx, [0x14000d0b0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rdx, [0x14000d0d4]
jmp 0x14000215e
lea rdx, [0x14000cec4]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ebx, edi
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 + 0x4a0]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140002540
mov rdi, qword [rsp + 0x4b0]
add rsp, 0x490
pop rbp
ret