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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rbx, qword [0x14018ad68]
mov rdi, rcx
add rbx, qword [rcx]
mov rdx, qword [0x140191180]
lea rcx, [rbx + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
xor r14d, r14d
mov rsi, rax
mov qword [rax], rbx
lea rdx, [rax + 0x10]
mov qword [rax + 8], rdx
mov word [rdx + rbx], r14w
mov r8, qword [0x14018ad68]
mov rdx, qword [str.RegistryMachineSystemCurrentControlSetServices_]
mov rcx, qword [rax + 8]
call fcn.1401317c0
mov rcx, qword [0x14018ad68]
add rcx, qword [rsi + 8]
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
call fcn.1401317c0
movzx eax, word [rsi]
mov word [rbp - 9], ax
movzx eax, word [rsi]
mov word [rbp - 7], ax
mov rax, qword [rsi + 8]
mov qword [rbp - 1], rax
mov rax, qword [rsi]
cmp rax, 0xfffe
jbe 0x1400e79f0
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e79dd
call fcn.1400d9400
mov eax, 0xc0000106
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov word [rbp - 0x19], ax
lea r8, [rbp + 7]
mov word [rbp - 0x17], ax
lea rcx, [rbp + 0x77]
mov rax, qword [rsi + 8]
xorps xmm0, xmm0
mov qword [rbp - 0x11], rax
xor r9d, r9d
lea rax, [rbp - 0x19]
mov dword [rbp + 7], 0x30
mov qword [rbp + 0x17], rax
mov edx, 0x30006
lea rax, [rbp + 0x6f]
mov qword [rbp + 0xf], r14
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x1f], 0x40
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov ebx, eax
test eax, eax
js 0x1400e7b7d
cmp dword [rbp + 0x6f], 1
jne 0x1400e7b57
mov rcx, qword [rbp + 0x77]
lea rax, str.ErrorControl
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x19]
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 - 0x19], 0x1a0018
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rbp + 0x77]
lea rax, [0x140167130]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x19]
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x19], 0xc000a
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rbp + 0x77]
lea rax, str.Type
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x19]
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x19], 0xa0008
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rbp + 0x77]
lea rax, str.ImagePath
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x19]
movzx eax, word [0x14018ad88]
mov r9d, 1
add eax, 2
mov dword [rbp - 0x19], 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 - 9]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
cmp dword [rbp + 0x6f], 1
mov ebx, eax
jne 0x1400e7b73
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e7b95
call fcn.1400d9400
mov eax, ebx
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret