Function at 0x140002750
Capabilities:
Get system information on windows
Install driver
Unload driver

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1400c1840]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x40]
call fcn.140001c00
test eax, eax
js 0x140002a0b
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 0x1400027bf
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.140001bb0
jmp 0x140002a01
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 0x140002a03
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 0x140002a03
lea rdx, [rsp + 0x50]
lea rcx, [0x1400c2a00]
call fcn.140001e60
test eax, eax
js 0x140002a03
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 0x140002859
mov edx, eax
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.140001bb0
mov eax, dword [rsp + 0x3c]
and al, 3
cmp al, 1
je 0x140002891
lea rcx, str.WARNING:_CI_is_already_disabled__n
call fcn.140001bb0
lea rdx, [0x1400c2a00]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x140002a03
lea rdx, [rbp + 0x160]
lea rcx, [0x1400c2c10]
call fcn.140001e60
test eax, eax
js 0x140002a03
mov rdi, qword [rsp + 0x40]
lea r9, [rsp + 0x38]
mov rdx, rdi
lea rcx, [0x1400c2c10]
xor r8d, r8d
call fcn.1400024f0
mov ebx, eax
test eax, eax
jns 0x1400028e1
mov edx, eax
lea rcx, str.Failed_to_disable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.140001bb0
jmp 0x1400029ea
lea rcx, [0x14003cacc]
call fcn.140001bb0
lea rdx, [0x1400c2a00]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x140002994
cmp eax, 0xc000010e
jne 0x140002984
lea rdx, [0x1400c2a00]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
jns 0x14000294a
mov edx, eax
lea rcx, str.Target_driver_is_already_loaded__and_unloading_failed_with_status__08X_n
call fcn.140001bb0
jmp 0x1400029a0
lea rdx, [0x1400c2a00]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x14000297b
mov edx, eax
lea rcx, str.Failed_to_reload_target_driver:__08X_n
call fcn.140001bb0
jmp 0x1400029a0
lea rcx, str.Succesfully_reloaded_target_driver._n
jmp 0x14000299b
mov edx, eax
lea rcx, str.Failed_to_load_target_driver:__08X_n
call fcn.140001bb0
jmp 0x1400029a0
lea rcx, str.Target_driver_loaded_successfully._n
call fcn.140001bb0
mov r8d, dword [rsp + 0x38]
lea rcx, [0x1400c2c10]
xor r9d, r9d
mov rdx, rdi
call fcn.1400024f0
mov ebx, eax
test eax, eax
jns 0x1400029cd
mov edx, eax
lea rcx, str.WARNING:_error_b__08X_n
call fcn.140001bb0
xor ebx, ebx
lea rdx, [0x1400c2c10]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
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.14000fef0
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret