Function at 0x140002510
Capabilities:
Delete file
Delete registry key
Execute command
Unload driver
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbp, rdx
cmp ecx, 2
jge 0x14000255d
lea rcx, str.Invalid_arguments._Usage:_GDRVLoader.exe_TargetDriver.sys_n
call fcn.140001020
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
jmp 0x1400027fe
mov edi, 0xc0000001
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], r12b
lea rcx, str.Load_or_unload_driver__n
call fcn.140001020
lea rdx, [rsp + 0x48]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.1400029a0
mov dword [rsp + 0x44], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x140002612
cmp rsi, 0xffffffffffffffff
je 0x14000263a
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
mov r8d, 0x6650
lea rdx, [0x1400070c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x14000263a
mov rdx, qword [rbp + 8]
call fcn.140001f10
mov edi, eax
test eax, eax
js 0x14000262d
lea rcx, str.Driver_loaded_successfully_n
call fcn.140001020
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x48]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x60]
cmp r14, 0xf
cmova rcx, rsi
mov rbx, qword [rsp + 0x58]
cmp rbx, 6
jne 0x14000266f
mov r8, rbx
lea rdx, str.Unload
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000269d
lea rcx, [rsp + 0x48]
cmp r14, 0xf
cmova rcx, rsi
cmp rbx, 6
jne 0x14000279f
mov r8, rbx
lea rdx, str.unload
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000279f
mov rbx, qword [rbp + 8]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov edi, eax
test eax, eax
js 0x1400027a3
mov edi, 0x34
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
lea edx, [rdi + 1]
lea r15, [0x14000dff0]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rdx, rbx
movzx ecx, word [rbx]
test cx, cx
je 0x14000273b
nop dword [rax]
add rdx, 2
mov rax, rdx
cmp cx, 0x5c
cmovne rax, rbx
mov rbx, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x1400026f0
movzx ecx, word [rax]
test cx, cx
je 0x14000273b
lea rax, [0x14000e058]
nop dword [rax]
cmp cx, 0x2e
je 0x14000273b
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140002720
movsxd rax, edi
mov word [r15 + rax*2], r12w
mov rdx, r15
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov edi, eax
test eax, eax
js 0x140002776
lea rdx, [0x14000e014]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea r9, [rsp + 0x40]
xor r8d, r8d
movzx edx, byte [rsp + 0x40]
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test edi, edi
js 0x1400027a3
lea rcx, str.Driver_unloaded_successfully_n
call fcn.140001020
jmp 0x1400027b1
test edi, edi
jns 0x1400027b1
mov edx, edi
lea rcx, str.Error:__08X_n
call fcn.140001020
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
cmp r14, 0xf
jbe 0x1400027f9
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400027f1
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400027f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140002e24
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002dc0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret