Function at 0x140067cc0
Capabilities:
Delete registry key
Install driver
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x9c0]
sub rsp, 0xac0
mov rax, qword [0x1401737a8]
xor rax, rsp
mov qword [rbp + 0x9b0], rax
mov rdi, rcx
mov rsi, r8
lea rcx, str.SeLoadDriverPrivilege
mov rbx, rdx
call fcn.140006b20
mov r8, rdi
lea rdx, str.SystemCurrentControlSetServices_s
lea rcx, [rsp + 0x60]
call fcn.1400358d0
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000002
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140067f1a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, [0x140124988]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.ErrorControl
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.Start
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r8, rbx
lea rdx, str.___s
lea rcx, [rbp + 0x380]
call fcn.1400358d0
lea rcx, [rbp + 0x380]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140067df3
mov rcx, qword [rsp + 0x48]
lea rdx, str.ImagePath
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp + 0x380]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rdi
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_s
lea rcx, [rbp + 0x590]
call fcn.1400358d0
mov rax, qword [0x140189688]
test rax, rax
jne 0x140067e7b
lea rcx, [0x14011ece0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlInitUnicodeString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140189688], rax
lea rdx, [rbp + 0x590]
lea rcx, [rsp + 0x50]
call rax
lea rcx, [rsp + 0x50]
call sub.ntdll.dll_NtLoadDriver
lea r8, [rsp + 0x60]
mov ebx, eax
lea rdx, str._sEnum
lea rcx, [rbp + 0x170]
call fcn.1400358d0
lea rdx, [rbp + 0x170]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, [rsp + 0x60]
lea rdx, str._sSecurity
lea rcx, [rbp + 0x170]
call fcn.1400358d0
lea rdx, [rbp + 0x170]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test ebx, ebx
je 0x140067f1e
cmp ebx, 0xc000010e
je 0x140067f1e
mov ecx, ebx
call fcn.14000c570
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140067f6f
mov r8, rdi
lea rdx, str..Global_s
lea rcx, [rbp + 0x7a0]
call fcn.1400358d0
xor ebx, ebx
lea rcx, [rbp + 0x7a0]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [rsi], rax
setne bl
mov eax, ebx
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.1400e17a0
mov rbx, qword [rsp + 0xaf8]
add rsp, 0xac0
pop rdi
pop rsi
pop rbp
ret