Function at 0x140001070
Capabilities:
Delete file
Delete registry key
Unload driver
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x880
mov rbp, rdx
cmp ecx, 2
jne 0x1400011c0
xor edi, edi
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
mov dword [rax + 8], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x140001113
cmp rsi, 0xffffffffffffffff
je 0x1400012ee
lea r9, [rsp + 0x890]
mov qword [rsp + 0x20], rdi
mov r8d, 0x6650
lea rdx, section..data
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 0x1400012ee
mov rdx, qword [rbp + 8]
call fcn.140002200
mov ebx, eax
test eax, eax
jns 0x140001130
mov edx, eax
lea rcx, str.Driver_load_error:__08x_n
call fcn.140001000
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov r9d, 0x400
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.C:WindowsSystem32Driversgdrv.sys
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x1400011b9
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x1400011b9
lea rax, [rsp + 0x40]
mov dword [rsp + 0x50], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x58], rdi
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x68], 0x40
call qword [sym.imp.ntdll.dll_NtDeleteFile]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
jmp 0x1400012f5
cmp ecx, 3
jne 0x1400012ee
mov rbx, qword [rdx + 8]
lea r9, [rsp + 0x890]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov edi, eax
test eax, eax
jns 0x1400011ff
mov edx, eax
lea rcx, str.Error_unloading_driver:__08X_n
call fcn.140001000
mov eax, edi
jmp 0x1400012f5
mov edi, 0x34
lea rsi, [0x14000b650]
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rcx, rsi
lea edx, [rdi + 1]
call qword [sym.imp.ntdll.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x14000127b
nop dword [rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x140001230
movzx ecx, word [rax]
test cx, cx
je 0x14000127b
lea rax, [0x14000b6b8]
nop dword [rax]
cmp cx, 0x2e
je 0x14000127b
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140001260
movsxd rax, edi
lea rcx, [rsp + 0x40]
xor edi, edi
mov rdx, rsi
mov word [rsi + rax*2], di
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov edi, eax
test eax, eax
js 0x1400012b7
lea rdx, [0x14000b674]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x890]
lea r9, [rsp + 0x890]
xor r8d, r8d
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov edx, edi
test edi, edi
js 0x1400011ec
lea rcx, str.Driver_unloaded_successfully._n
call fcn.140001000
mov eax, edi
jmp 0x1400012f5
mov eax, dword [rsp + 0x890]
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret