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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x880
mov rbp, rdx
cmp ecx, 2
jne 0x1400011c2
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 rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x14000110f
cmp rdi, 0xffffffffffffffff
je 0x1400012fa
lea r9, [rsp + 0x8a0]
mov qword [rsp + 0x20], rsi
mov r8d, 0x68a8
lea rdx, section..data
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1400012fa
mov rdx, qword [rbp + 8]
call fcn.140002300
mov edi, eax
test eax, eax
jns 0x14000112c
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 0x140001301
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 0x140001301
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]
jmp 0x140001301
cmp ecx, 3
jne 0x1400012fa
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
js 0x140001301
mov qword [rsp + 0x8a8], r14
lea r14, [0x14000b8b0]
test rbx, rbx
je 0x14000120f
mov rdx, rbx
mov rcx, r14
call fcn.140001f50
mov edi, 0x34
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 0x14000128b
nop dword [rax]
nop word [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 0x140001240
movzx ecx, word [rax]
test cx, cx
je 0x14000128b
lea rax, [0x14000b918]
nop dword [rax]
cmp cx, 0x2e
je 0x14000128b
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140001270
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]
lea rdx, [0x14000b8d4]
mov rcx, 0xffffffff80000002
mov edi, eax
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
movzx edx, byte [rsp + 0x8a0]
lea r9, [rsp + 0x8a0]
xor r8d, r8d
lea ecx, [rsi + 0xa]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov r14, qword [rsp + 0x8a8]
test edi, edi
js 0x140001301
lea rcx, str.Driver_unloaded_successfully._n
call fcn.140001000
jmp 0x140001301
mov edi, dword [rsp + 0x8a0]
mov rbx, qword [rsp + 0x8b0]
mov eax, edi
add rsp, 0x880
pop rdi
pop rsi
pop rbp
ret