Function at 0x7ff7c00db620
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, 0xd0
mov rbx, qword [0x7ff7c01d0840]
mov rdi, rcx
add rbx, qword [rcx]
mov rdx, qword [0x7ff7c01d3b58]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
xor r14d, r14d
mov rsi, rax
lea rdx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rdx
mov word [rdx + rbx], r14w
mov r8, qword [0x7ff7c01d0840]
mov rdx, qword [0x7ff7c01d0848]
mov rcx, qword [rax + 8]
call fcn.7ff7c0125120
mov rcx, qword [0x7ff7c01d0840]
add rcx, qword [rsi + 8]
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
call fcn.7ff7c0125120
movzx eax, word [rsi]
mov word [rbp - 9], ax
movzx eax, word [rsi]
add ax, 2
mov word [rbp - 7], ax
mov rax, qword [rsi + 8]
mov qword [rbp - 1], rax
mov rax, qword [rsi]
cmp rax, 0xfffe
jbe 0x7ff7c00db6e4
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7c00db6d1
call fcn.7ff7c00c6290
mov eax, 0xc0000106
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov word [rbp - 0x59], ax
lea r9, [rbp + 7]
add ax, 2
lea rdx, [rbp - 0x59]
mov word [rbp - 0x57], ax
xor r8d, r8d
mov rax, qword [rsi + 8]
xor ecx, ecx
mov qword [rbp - 0x51], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
call fcn.7ff7c00e0390
mov ebx, eax
test eax, eax
js 0x7ff7c00db890
lea rax, [rbp + 0x6f]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rbp + 7]
mov dword [rsp + 0x28], r14d
lea rcx, [rbp + 0x77]
mov edx, 0x30006
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rbp + 0x7f]
mov ebx, eax
test rcx, rcx
je 0x7ff7c00db757
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x7ff7c00db890
cmp dword [rbp + 0x6f], 1
jne 0x7ff7c00db868
mov rcx, qword [rbp + 0x77]
lea rax, [0x7ff7c01890b0]
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
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 - 0x49], 0x1a0018
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword ds:[rbp + 0x77]
lea rax, [0x7ff7c01890d0]
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 ds:[rbp + 0x77]
lea rax, [0x7ff7c0175ce0]
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x29]
lea rax, [rbp + 0x67]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x29], 0xa0008
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov eax, dword [0x7ff7c01d0860]
lea rcx, [0x7ff7c01890e0]
add eax, 2
mov qword [rbp - 0x11], rcx
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov dword [rsp + 0x28], eax
mov r9d, 1
mov rax, qword [0x7ff7c01d0868]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x19], 0x140012
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 0x7ff7c00db886
mov rcx, qword ds:[rbp + 0x77]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, ds:[rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x7ff7c00db8aa
call fcn.7ff7c00c6290
mov eax, ebx
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret