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

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x38]
call fcn.1400029b0
test eax, eax
js 0x1400036e8
lea r9, [rbp + 0x398]
mov qword [rsp + 0x480], rbx
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
jns 0x1400034a8
lea rcx, str.Fatal_error:_failed_to_acquire_SE_LOAD_DRIVER_PRIVILEGE._Make_sure_you_are_running_as_administrator._n
call fcn.140002950
jmp 0x1400036de
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 0x1400036e0
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 0x1400036e0
lea rdx, [rsp + 0x50]
lea rcx, [0x1400b34b0]
call fcn.140002c00
test eax, eax
js 0x1400036e0
xor r9d, r9d
mov qword [rsp + 0x30], 8
mov r8d, 8
lea rdx, [rsp + 0x30]
mov ecx, 0x67
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140003545
mov edx, eax
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.140002950
mov eax, dword [rsp + 0x34]
and al, 3
cmp al, 1
je 0x14000357d
lea rcx, str.WARNING:_CI_is_already_disabled__n
call fcn.140002950
lea rdx, [0x1400b34b0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
jmp 0x1400036e0
lea rdx, [rbp + 0x160]
lea rcx, [0x1400b36c0]
call fcn.140002c00
test eax, eax
js 0x1400036e0
mov rdi, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rdx, rdi
lea rcx, [0x1400b36c0]
xor r8d, r8d
call fcn.140003180
mov ebx, eax
test eax, eax
jns 0x1400035cd
mov edx, eax
lea rcx, str.Failed_to_disable_DSE_through_Gigabyte_loader_driver:__08X_n
call fcn.140002950
jmp 0x1400036c2
lea rcx, [0x14008d42c]
call fcn.140002950
lea rdx, [0x1400b34b0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x14000366c
cmp eax, 0xc000010e
jne 0x14000365c
lea rdx, [0x1400b34b0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
test eax, eax
js 0x140003678
lea rdx, [0x1400b34b0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
test eax, eax
jns 0x140003653
mov edx, eax
lea rcx, str.Failed_to_reload_target_driver:__08X_n
call fcn.140002950
jmp 0x140003678
lea rcx, str.Succesfully_reloaded_target_driver._n
jmp 0x140003673
mov edx, eax
lea rcx, str.Failed_to_load_target_driver:__08X_n
call fcn.140002950
jmp 0x140003678
lea rcx, str.Ok._n
call fcn.140002950
mov r8d, dword [rsp + 0x30]
lea rcx, [0x1400b36c0]
xor r9d, r9d
mov rdx, rdi
call fcn.140003180
mov ebx, eax
test eax, eax
jns 0x1400036a5
mov edx, eax
lea rcx, str.WARNING:_error_b__08X_n
call fcn.140002950
xor ebx, ebx
lea rdx, [0x1400b36c0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
movzx edx, byte [rbp + 0x398]
lea r9, [rbp + 0x398]
xor r8d, r8d
mov ecx, 0xa
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov eax, ebx
mov rbx, qword [rsp + 0x480]
lea r11, [rsp + 0x470]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret