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

Disassembly:
push rbp
sub rsp, 0x80
mov rbp, rcx
lea r8, [rsp + 0x58]
lea rdx, str.SystemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x14001abf2
test eax, eax
jle 0x14001ae87
movzx eax, ax
or eax, 0xc0070000
add rsp, 0x80
pop rbp
ret
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x38], rax
xor r12d, r12d
add rbp, 0x10
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x14001ac73
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jle 0x14001ac5e
movzx ebx, bx
or ebx, 0xc0070000
mov r12, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x80
pop rbp
ret
mov qword [rsp + 0x70], rsi
or esi, 0xffffffff
cmp dword [rsp + 0xa0], 1
mov qword [rsp + 0x68], rdi
jne 0x14001ae14
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x98]
lea r9d, [rsi + 5]
lea rdx, str.ErrorControl
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x98]
lea r9d, [rsi + 5]
lea rdx, [0x1400ab6f8]
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x98]
lea r9d, [rsi + 5]
lea rdx, str.Type
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [0x1400d91a8]
lea edx, [rsi + 0x5d]
mov rcx, rbx
xor r8d, r8d
call fcn.14001fbe0
mov rdi, rax
lock add dword [rbx + 0x18], 1
mov dword [rax], 1
mov qword [rax + 8], 0x5c
mov qword [rax + 0x10], rbx
lea rcx, [rdi + 0x30]
mov eax, 0x4a
lea r9d, [rsi + 2]
mov word [rdi + 0x20], ax
mov word [rdi + 0x22], ax
mov qword [rdi + 0x28], rcx
mov word [rdi + 0x7a], r12w
mov rax, qword [str.SystemRoot_system32drivers_ntfs.sys]
lea rdx, str.ImagePath
mov qword [rcx], rax
mov rax, qword [0x1400ab728]
xor r8d, r8d
mov qword [rcx + 8], rax
mov rax, qword [0x1400ab730]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400ab738]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400ab740]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400ab748]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400ab750]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400ab758]
mov qword [rcx + 0x38], rax
mov rax, qword [0x1400ab760]
mov qword [rcx + 0x40], rax
movzx eax, word [0x1400ab768]
mov word [rcx + 0x48], ax
movzx eax, word [rdi + 0x20]
add eax, 2
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov eax, esi
lock xadd dword [rdi], eax
add eax, esi
jne 0x14001ae14
call fcn.14001fcd0
lea rcx, str.RegistryMachineSystemCurrentControlSetServices_
mov rdx, rbp
call sym.ProcessHacker.exe_PhConcatStrings2
mov rcx, rax
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
lea rcx, [rbx - 0x20]
mov edi, eax
lock xadd dword [rcx], esi
add esi, 0xffffffff
mov rsi, qword [rsp + 0x70]
jne 0x14001ae48
call fcn.14001fcd0
cmp dword [rsp + 0xa0], 1
jne 0x14001ae60
mov rcx, qword [rsp + 0x58]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x78]
mov r12, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x68]
add rsp, 0x80
pop rbp
ret