Function at 0x140002460
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], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r15, rdx
cmp ecx, 2
jge 0x14000249d
xor eax, eax
jmp 0x140002898
mov r14d, 0xc0000001
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov ecx, 0x30
call fcn.140002ba0
mov rsi, rax
mov qword [rbp - 1], rax
mov qword [rbp + 0xf], 0x23
mov qword [rbp + 0x17], 0x2f
movups xmm0, xmmword [str.__DRV___Load_Driver_2___n__DRV_____]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140004c40]
movups xmmword [rax + 0x10], xmm1
movzx eax, word [0x140004c50]
mov word [rsi + 0x20], ax
movzx eax, byte [0x140004c52]
mov byte [rsi + 0x22], al
mov byte [rsi + 0x23], 0
xor edi, edi
mov ebx, edi
nop dword [rax]
movzx edx, byte [rsi + rbx]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002930
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
cmp rbx, 0x23
jne 0x140002500
lea edx, [rbx + 0xd]
mov rcx, rsi
call fcn.140002be4
lea rdx, [rbp + 0x27]
lea rcx, [0x140004c54]
call fcn.140002290
mov rcx, rdi
lea rdx, [rbp + 0x27]
lea r8, [0x140004c58]
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140002566
cmp rcx, 4
jne 0x140002550
jmp 0x14000258c
mov rcx, rdi
lea rdx, [rbp + 0x27]
lea r8, str.load
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400026c1
cmp rcx, 5
jne 0x140002574
mov dword [rbp - 5], edi
mov qword [rsp + 0x30], rdi
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 0x140002606
cmp rsi, 0xffffffffffffffff
je 0x140002884
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 5]
mov r8d, 0x6650
lea rdx, [0x140007080]
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 0x140002884
mov rdx, qword [r15 + 8]
call fcn.140001f00
mov r14d, eax
lea rcx, [0x140004c64]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov ecx, 0x30
call fcn.140002ba0
mov rbx, rax
mov qword [rbp - 1], rax
mov qword [rbp + 0xf], 0x23
mov qword [rbp + 0x17], 0x2f
movups xmm0, xmmword [str.__DRV___Driver_loaded_successfully_n]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140004c78]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x140004c88]
mov word [rax + 0x20], cx
movzx eax, byte [0x140004c8a]
mov byte [rbx + 0x22], al
mov byte [rbx + 0x23], 0
nop word [rax + rax]
movzx edx, byte [rbx + rdi]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002930
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rdi
cmp rdi, 0x23
jne 0x140002680
lea edx, [rdi + 0xd]
mov rcx, rbx
call fcn.140002be4
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000287f
cmp byte [rbp + 0x27], 0x6e
jne 0x1400026d3
cmp byte [rbp + 0x28], 0x6f
jne 0x1400026d3
cmp byte [rbp + 0x29], 0
je 0x1400026f9
mov rcx, rdi
lea rdx, [rbp + 0x27]
lea r8, str.unload
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140002884
cmp rcx, 7
jne 0x1400026e1
mov rbx, qword [r15 + 8]
lea r9, [rbp - 9]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov r14d, eax
test eax, eax
js 0x1400027ea
mov esi, 0x34
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
lea edx, [rsi + 1]
lea r14, [0x14000df70]
mov rcx, r14
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 0x14000279b
nop word [rax + rax]
add rdx, 2
mov rax, rdx
cmp cx, 0x5c
cmovne rax, rbx
mov rbx, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x140002750
movzx ecx, word [rax]
test cx, cx
je 0x14000279b
lea rax, [0x14000dfd8]
nop dword [rax]
cmp cx, 0x2e
je 0x14000279b
add rbx, 2
mov word [rax], cx
inc esi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140002780
movsxd rax, esi
mov word [r14 + rax*2], di
mov rdx, r14
lea rcx, [rbp - 1]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 1]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov r14d, eax
test eax, eax
js 0x1400027d5
lea rdx, [0x14000df94]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea r9, [rbp - 9]
xor r8d, r8d
movzx edx, byte [rbp - 9]
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea rcx, [0x140004c64]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov ecx, 0x30
call fcn.140002ba0
mov rbx, rax
mov qword [rbp - 1], rax
mov qword [rbp + 0xf], 0x25
mov qword [rbp + 0x17], 0x2f
movups xmm0, xmmword [str.__DRV___Driver_unloaded_successfully_n]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140004ca8]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x140004cb8]
mov dword [rax + 0x20], ecx
movzx eax, byte [0x140004cbc]
mov byte [rbx + 0x24], al
mov byte [rbx + 0x25], 0
nop dword [rax + rax]
movzx edx, byte [rdi + rbx]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002930
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rdi
cmp rdi, 0x25
jne 0x140002850
lea edx, [rdi + 0xb]
mov rcx, rbx
call fcn.140002be4
test r14d, r14d
jns 0x140002893
mov edx, r14d
lea rcx, str.Error:__08X_n
call fcn.140001010
mov eax, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140002b80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret