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

Disassembly:
push rbp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbp, rdx
cmp ecx, 2
jge 0x140002313
lea rcx, str.Invalid_arguments._Usage:_GDRVLoader.exe_TargetDriver.sys_n
call fcn.140001010
xor eax, eax
jmp 0x1400024ac
mov qword [rsp + 0x78], rdi
lea rcx, str.Load_or_unload_driver__n
mov qword [rsp + 0x70], r14
mov edi, 0xc0000001
call fcn.140001010
lea rdx, [rsp + 0x58]
lea rcx, [0x140004b48]
call fcn.140002290
xor r14d, r14d
mov qword [rsp + 0x90], rbx
mov ecx, r14d
mov qword [rsp + 0xa0], rsi
lea rdx, [rsp + 0x58]
lea r8, str.LOAD
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140002377
cmp rcx, 5
jne 0x140002361
jmp 0x1400023a8
mov rcx, r14
lea rdx, [rsp + 0x58]
lea r8, str.load
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400024c2
cmp rcx, 5
jne 0x140002390
mov qword [rsp + 0x30], r14
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x10000000
mov dword [rsp + 0x44], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x14000242c
cmp rsi, 0xffffffffffffffff
jne 0x1400023fd
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x140002472
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r14
mov r8d, 0x6650
lea rdx, [0x140006080]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1400023ee
mov rdx, qword [rbp + 8]
call fcn.140001f00
mov edi, eax
test eax, eax
js 0x140002447
lea rcx, str.Driver_loaded_successfully_n
call fcn.140001010
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
test edi, edi
jns 0x140002480
mov edx, edi
lea rcx, str.Error:__08X_n
call fcn.140001010
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov r14, qword [rsp + 0x70]
mov eax, 1
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002650
add rsp, 0x80
pop rbp
ret
mov rcx, r14
lea rdx, [rsp + 0x58]
lea r8, str.Unload
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400024e7
cmp rcx, 7
jne 0x1400024d1
jmp 0x140002518
mov rcx, r14
lea rdx, [rsp + 0x58]
lea r8, str.unload
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140002461
cmp rcx, 7
jne 0x140002500
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 0x1400023ee
mov edi, 0x34
lea rsi, [0x14000ced0]
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rcx, rsi
lea edx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x1400025bb
nop dword [rax]
nop dword [rax + rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x140002570
movzx ecx, word [rax]
test cx, cx
je 0x1400025bb
lea rax, [0x14000cf38]
nop dword [rax]
cmp cx, 0x2e
je 0x1400025bb
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x1400025a0
movsxd rax, edi
lea rcx, [rsp + 0x48]
mov rdx, rsi
mov word [rsi + rax*2], r14w
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 0x1400025f6
lea rdx, [0x14000cef4]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x40]
lea r9, [rsp + 0x40]
xor r8d, r8d
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test edi, edi
js 0x140002461
lea rcx, str.Driver_unloaded_successfully_n
call fcn.140001010
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x140002480