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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x880
mov r14, rdx
mov edi, 0xc0000001
cmp ecx, 2
jne 0x1400011d2
xor esi, esi
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x8a0], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x14000111a
cmp rbp, 0xffffffffffffffff
je 0x140001206
lea r9, [rsp + 0x8a0]
mov qword [rsp + 0x20], rsi
mov r8d, 0x6650
lea rdx, section..data
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x140001206
mov rdx, qword [r14 + 8]
call fcn.140002220
mov edi, eax
test eax, eax
jns 0x140001137
mov edx, eax
lea rcx, str.Driver_load_error:__08x_n
call fcn.140001000
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rsi
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 0x1400011c0
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 0x1400011c0
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], rsi
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]
test edi, edi
js 0x140001206
lea rcx, str.Driver_loaded_successfully._n
call fcn.140001000
jmp 0x140001214
cmp ecx, 3
jne 0x140001206
mov rbx, qword [rdx + 8]
lea r9, [rsp + 0x8a0]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov edi, eax
test eax, eax
jns 0x140001231
mov edx, eax
lea rcx, str.Error_unloading_driver:__08X_n
call fcn.140001000
mov edx, edi
lea rcx, str.Error_at:__08X_n
call fcn.140001000
lea r11, [rsp + 0x880]
mov eax, 1
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov edi, 0x34
lea r14, [0x14000b650]
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rcx, r14
lea edx, [rdi + 1]
call qword [sym.imp.ntdll.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x1400012ab
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 0x140001260
movzx ecx, word [rax]
test cx, cx
je 0x1400012ab
lea rax, [0x14000b6b8]
nop dword [rax]
cmp cx, 0x2e
je 0x1400012ab
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140001290
movsxd rax, edi
lea rcx, [rsp + 0x40]
xor esi, esi
mov rdx, r14
mov word [r14 + rax*2], si
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 0x1400012e8
lea rdx, [0x14000b674]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x8a0]
lea r9, [rsp + 0x8a0]
xor r8d, r8d
lea ecx, [r8 + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov edx, edi
test edi, edi
js 0x1400011fa
lea rcx, str.Driver_unloaded_successfully._n
call fcn.140001000
lea rcx, str.Driver_loaded_successfully._n
call fcn.140001000
jmp 0x140001214