Function at 0x16fa0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
mov r11, rsp
mov byte [r11 + 0x18], r8b
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xc8
xor eax, eax
mov rdi, rcx
xor ecx, ecx
mov word [rsp + 0x78], cx
lea r8d, [rcx + 0x28]
mov esi, ecx
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x3c], ecx
mov ebp, ecx
mov dword [r11 + 0x20], ecx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x40], ecx
mov word [rsp + 0x48], cx
mov word [rsp + 0x60], cx
mov qword [rsp + 0x30], rcx
mov qword [r11 - 0x78], rcx
lea rcx, [r11 - 0x58]
xor edx, edx
mov qword [rsp + 0x4a], rax
mov dword [rsp + 0x52], eax
mov word [rsp + 0x56], ax
mov qword [rsp + 0x62], rax
mov dword [rsp + 0x6a], eax
mov word [rsp + 0x6e], ax
mov qword [r11 - 0x6e], rax
mov dword [r11 - 0x66], eax
mov word [r11 - 0x62], ax
call fcn.000407c0
mov ebx, 0xc000000d
test rdi, rdi
je 0x1704a
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.0001676c
jmp 0x1704c
mov eax, ebx
test eax, eax
js 0x175df
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x17071
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
call fcn.000167d0
mov edi, eax
jmp 0x17073
mov edi, ebx
test edi, edi
jns 0x17099
mov rax, qword [0x0006a6e0]
mov rcx, qword [rsp + 0x30]
test rax, rax
je 0x1708c
call rax
jmp 0x17092
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
jmp 0x175df
xor edx, edx
lea rcx, [rsp + 0x90]
lea r8d, [rdx + 0x28]
call fcn.000407c0
mov rax, qword [rsp + 0xf8]
test rax, rax
je 0x170d0
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.000166f4
mov ebx, eax
test ebx, ebx
jns 0x170de
mov rcx, qword [rsp + 0x30]
jmp 0x175c7
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x173bc
mov rax, qword [0x0006a688]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
test rax, rax
je 0x17119
lea rcx, [rsp + 0x108]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x20], r8d
call rax
jmp 0x17136
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x108]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x173bc
mov ebp, dword [rsp + 0x108]
mov ebx, 0x20
mov r8d, 0x6e65654b
mov rdx, rbp
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x17172
add ebx, 0xffffffff
jne 0x1714f
jmp 0x1717f
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.000407c0
test rdi, rdi
je 0x1742a
mov rax, qword [0x0006a688]
mov ebp, dword [rsp + 0x108]
xor r8d, r8d
mov r9, rdi
mov edx, esi
test rax, rax
je 0x171bd
lea rcx, [rsp + 0x108]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], ebp
call rax
jmp 0x171d9
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x108]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
test eax, eax
js 0x17394
mov rax, qword [rsp + 0xf0]
mov dword [rsp + 0x38], 0x20
movzx esi, word [rax]
add esi, dword [rdi + 0xc]
lea rdx, [rsi + 2]
mov r8d, 0x6e65654b
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x1721f
add dword [rsp + 0x38], 0xffffffff
jne 0x171f9
jmp 0x1722d
lea r8, [rsi + 2]
xor edx, edx
mov rcx, rax
call fcn.000407c0
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x1741c
mov rsi, qword [rsp + 0xf0]
mov rcx, rbx
movzx r8d, word [rsi]
mov rdx, qword [rsi + 8]
movzx eax, r8w
add ax, word [rdi + 0xc]
add ax, 2
mov word [rsp + 0x4a], ax
mov word [rsp + 0x48], ax
call fcn.00040300
mov rax, qword [rsp + 0x50]
movzx r11d, word [rsi]
mov ecx, 0x5c
mov word [r11 + rax], cx
movzx ecx, word [rsi]
mov rax, qword [rsp + 0x50]
mov r8d, dword [rdi + 0xc]
lea rdx, [rdi + 0x10]
lea rcx, [rcx + rax + 2]
call fcn.00040300
mov r10, qword [rsp + 0xf8]
mov dword [rsp + 0x38], 0x20
movzx esi, word [r10]
add esi, dword [rdi + 0xc]
lea rdx, [rsi + 2]
mov r8d, 0x6e65654b
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x172d3
add dword [rsp + 0x38], 0xffffffff
jne 0x172ad
jmp 0x172e1
lea r8, [rsi + 2]
xor edx, edx
mov rcx, rax
call fcn.000407c0
mov qword [rsp + 0x68], rbx
test rbx, rbx
je 0x173f7
mov rax, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xf8]
mov rcx, rbx
movzx eax, word [rax]
movzx r8d, word [rsi]
mov rdx, qword [rsi + 8]
add ax, word [rdi + 0xc]
add ax, 2
mov word [rsp + 0x62], ax
mov word [rsp + 0x60], ax
call fcn.00040300
mov rax, qword [rsp + 0x68]
movzx r11d, word [rsi]
mov ecx, 0x5c
mov word [r11 + rax], cx
movzx ecx, word [rsi]
mov rax, qword [rsp + 0x68]
mov r8d, dword [rdi + 0xc]
lea rdx, [rdi + 0x10]
lea rcx, [rcx + rax + 2]
call fcn.00040300
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
mov r8b, 1
call fcn.00016fa0
mov rcx, qword [rsp + 0x50]
mov esi, 0x6e65654b
mov edx, esi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x68]
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rsp + 0x68], 0
and qword [rsp + 0x50], 0
mov esi, dword [rsp + 0x58]
mov edx, 0x6e65654b
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor ebp, ebp
test ebx, ebx
js 0x17584
inc esi
mov dword [rsp + 0x58], esi
cmp esi, dword [rsp + 0x40]
jb 0x170ea
test ebx, ebx
js 0x17584
mov rax, qword [0x0006a690]
xor r9d, r9d
lea r8d, [r9 + 1]
test rax, rax
je 0x17434
lea rcx, [rsp + 0x108]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], ebp
mov ebp, dword [rsp + 0x3c]
mov edx, ebp
call rax
jmp 0x17456
mov edx, 0x6e65654b
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
mov edx, 0x6e65654b
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ebx, 0xc000009a
jmp 0x173bc
mov edx, 0x6e65654b
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ebx, 0xc000009a
jmp 0x17584
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x108]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov ebp, dword [rsp + 0x3c]
mov edx, ebp
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x1757a
mov esi, dword [rsp + 0x108]
mov ebx, 0x20
mov r8d, 0x6e65654b
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x17492
add ebx, 0xffffffff
jne 0x1746f
jmp 0x1749f
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.000407c0
test rdi, rdi
je 0x1742a
mov r10, qword [0x0006a690]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x108]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x108]
mov r9, rdi
mov r8d, 1
mov edx, ebp
mov dword [rsp + 0x20], eax
test r10, r10
je 0x174dd
call r10
jmp 0x174e3
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov ebx, eax
test eax, eax
js 0x17557
mov r10, qword [0x0006a680]
mov rsi, qword [rsp + 0x70]
lea rax, [rdi + 0x14]
mov qword [rsp + 0x80], rax
movzx eax, word [rdi + 0x10]
lea rdx, [rsp + 0x78]
mov word [rsp + 0x7a], ax
mov word [rsp + 0x78], ax
mov ecx, dword [rdi + 0xc]
mov eax, dword [rdi + 8]
mov r9d, dword [rdi + 4]
mov r8d, dword [rdi]
add rax, rdi
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
test r10, r10
je 0x1753a
call r10
jmp 0x17540
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ebx, eax
test eax, eax
js 0x17557
mov rax, cr8
test al, al
jne 0x17557
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov edx, 0x6e65654b
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor ebp, ebp
test ebx, ebx
js 0x17584
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
jmp 0x173c4
cmp ebx, 0x8000001a
jne 0x17584
xor ebx, ebx
cmp byte [rsp + 0x100], 0
jne 0x175a7
mov rcx, qword [rsp + 0xf0]
test ebx, ebx
jns 0x175a2
mov rcx, qword [rsp + 0xf8]
call fcn.00016c98
mov rax, qword [0x0006a6e0]
mov rcx, qword [rsp + 0x30]
test rax, rax
je 0x175bc
call rax
jmp 0x175c2
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x0006a6e0]
test rax, rax
je 0x175d7
call rax
jmp 0x175dd
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0xc8
pop rdi
pop rsi
pop rbp
pop rbx
ret