Function at 0x1400bb0e0
Capabilities:
Delete registry key
Persist via windows service
Set registry value
Unload driver

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
mov rdi, qword [0x140156c20]
mov rsi, rcx
add rdi, qword [rcx]
mov rbx, qword [0x14015f258]
mov rcx, rbx
lea rdx, [rdi + 0x12]
call fcn.1400ae4a0
mov r14, rax
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
xor r15d, r15d
movzx ecx, byte [rbx + 2]
mov word [rax], cx
lea rcx, [rax + 0x20]
mov qword [rax + 0x18], rcx
mov qword [rax + 0x10], rdi
mov word [rcx + rdi], r15w
mov r8, qword [0x140156c20]
mov rdx, qword [str.RegistryMachineSystemCurrentControlSetServices_]
mov rcx, qword [rax + 0x18]
call fcn.1400e31d0
mov rcx, qword [r14 + 0x18]
add rcx, qword [0x140156c20]
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.1400e31d0
movzx eax, word [r14 + 0x10]
mov word [rbp - 0x19], ax
movzx eax, word [r14 + 0x10]
mov word [rbp - 0x17], ax
mov rax, qword [r14 + 0x18]
mov qword [rbp - 0x11], rax
cmp qword [r14 + 0x10], 0xfffe
jbe 0x1400bb1bb
mov rcx, r14
or eax, 0xffffffff
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x1400bb1a6
call fcn.1400ae580
mov eax, 0xc0000106
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx eax, word [r14 + 0x10]
lea r9, [rbp - 9]
mov word [rbp - 0x29], ax
lea rdx, [rbp - 0x29]
mov word [rbp - 0x27], ax
xor r8d, r8d
mov rax, qword [r14 + 0x18]
xor ecx, ecx
mov qword [rbp - 0x21], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
call fcn.1400bed90
mov ebx, eax
test eax, eax
js 0x1400bb22b
lea rax, [rbp + 0x6f]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
mov dword [rsp + 0x28], r15d
lea rcx, [rbp + 0x77]
mov edx, 0x30006
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rbp + 0x7f]
mov ebx, eax
test rcx, rcx
je 0x1400bb22b
call qword [sym.imp.ntdll.dll_NtClose]
mov edi, ebx
test ebx, ebx
js 0x1400bb35d
cmp dword [rbp + 0x6f], 1
jne 0x1400bb337
mov rcx, qword [rbp + 0x77]
lea rax, str.ErrorControl
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x39]
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x67], 1
mov dword [rbp - 0x39], 0x1a0018
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rbp + 0x77]
lea rax, [0x1401353a0]
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x39]
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x39], 0xc000a
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rbp + 0x77]
lea rax, str.Type
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x39]
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x39], 0xa0008
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rbp + 0x77]
lea rax, str.ImagePath
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x39]
movzx eax, word [0x140156c00]
mov r9d, 1
add eax, 2
mov dword [rbp - 0x39], 0x140012
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [str.SystemRoot_system32drivers_ntfs.sys]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
cmp dword [rbp + 0x6f], 1
mov edi, eax
jne 0x1400bb353
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, r14
or eax, 0xffffffff
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x1400bb373
call fcn.1400ae580
mov eax, edi
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret