Function at 0x1c7ec
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbp
mov qword [r11 + 0x10], rdi
push r12
sub rsp, 0x130
mov rax, qword [0x00016100]
xor rax, rsp
mov qword [rsp + 0x120], rax
xor eax, eax
xor r12d, r12d
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0x5a], rax
mov dword [rsp + 0x62], eax
mov word [rsp + 0x66], ax
mov dword [rsp + 0x54], eax
lea eax, [r12 + 0x31]
lea ebp, [rax - 1]
mov word [r11 - 0x78], ax
lea r8d, [r12 + 0x5c]
lea eax, [rbp + 0x22]
lea ecx, [rbp + 0x39]
lea edx, [rbp + 0x1d]
mov word [r11 - 0x66], ax
lea eax, [rbp + 0x37]
mov word [r11 - 0x60], cx
mov word [r11 - 0x62], ax
lea eax, [rbp + 0x43]
mov word [r11 - 0x4c], cx
mov word [r11 - 0x5e], ax
lea eax, [rbp + 0x44]
lea ecx, [rbp + 0x23]
mov word [r11 - 0x5c], ax
lea eax, [rbp + 0x42]
mov dword [rsp + 0x68], r12d
mov word [r11 - 0x5a], ax
lea eax, [rbp + 0x49]
mov word [r11 - 0x54], dx
mov word [r11 - 0x58], ax
lea eax, [rbp + 0x31]
mov word [r11 - 0x44], cx
mov word [r11 - 0x52], ax
lea eax, [rbp + 0x33]
mov word [r11 - 0x40], cx
mov word [r11 - 0x50], ax
lea eax, [rbp + 0x38]
mov word [r11 - 0x3a], dx
mov word [r11 - 0x4e], ax
lea eax, [rbp + 0x3e]
lea edi, [rbp + 0x35]
mov word [r11 - 0x4a], ax
lea eax, [rbp + 0x29]
mov qword [rsp + 0x40], r12
mov word [r11 - 0x42], ax
lea eax, [rbp + 0x24]
mov dword [rsp + 0x48], r12d
mov word [r11 - 0x3e], ax
lea eax, [rbp + 0x15]
mov word [rsp + 0x58], r12w
mov word [r11 - 0x3c], ax
mov dword [rsp + 0x50], r12d
mov word [r11 - 0x76], bp
mov word [r11 - 0x74], bp
mov word [r11 - 0x72], bp
mov word [r11 - 0x70], bp
mov word [r11 - 0x6e], bp
mov word [r11 - 0x6c], r12w
mov word [r11 - 0x6a], r12w
mov word [r11 - 0x68], r8w
mov word [r11 - 0x64], di
mov word [r11 - 0x56], r8w
mov word [r11 - 0x48], di
mov word [r11 - 0x46], r8w
mov word [r11 - 0x38], r8w
mov word [r11 - 0x36], bp
mov word [r11 - 0x34], bp
mov word [r11 - 0x32], bp
mov word [r11 - 0x30], bp
mov word [r11 - 0x2e], bp
mov word [r11 - 0x2c], r12w
mov word [r11 - 0x2a], r12w
mov word [r11 - 0x28], r12w
mov word [r11 - 0x26], r12w
movabs rax, 0xfffff78000000014
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
movsx r8d, word [rsp + 0x62]
movsx r11d, word [rsp + 0x64]
movsx edi, word [rsp + 0x60]
mov eax, 0x38e38e39
mov r10d, 0x92492493
mov r9d, r11d
imul r11d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub r9d, eax
mov eax, r8d
add word [rsp + 0xc0], r9w
add word [rsp + 0xc8], r9w
add word [rsp + 0x108], r9w
cdq
and edx, 7
add eax, edx
and eax, 7
sub eax, edx
add word [rsp + 0xc2], ax
mov ecx, eax
mov eax, r10d
add word [rsp + 0xca], cx
imul edi
add edx, edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edi
imul edx, edx, 7
sub eax, edx
add word [rsp + 0xc6], ax
mov eax, 0x38e38e39
imul r8d
sar edx, 1
mov eax, r11d
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*8]
mov edx, r8d
sub edx, ecx
add word [rsp + 0x102], dx
cdq
and edx, 7
add eax, edx
and eax, 7
sub eax, edx
add word [rsp + 0x104], ax
mov eax, r10d
imul r8d
add edx, r8d
mov eax, edi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea rcx, [rsp + 0xb0]
imul edx, edx, 7
sub r8d, edx
cdq
add word [rsp + 0x106], r8w
and edx, 7
add eax, edx
and eax, 7
sub eax, edx
lea rdx, [rsp + 0xd0]
add word [rsp + 0x10a], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x88], r12
mov dword [rsp + 0x98], 0x240
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, r12d
jl 0x1cc31
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x70]
mov dword [0x000176e4], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xc0]
lea r9d, [r12 + 1]
lea rdx, [rsp + 0x70]
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea edi, [rbp - 0x2e]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, edi
mov dword [0x000176e4], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
mov dword [0x000176e4], 5
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
mov dword [0x000176e4], 4
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov dword [0x000176e4], edi
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov rcx, qword [rsp + 0x40]
mov dword [0x000176e4], 3
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov rcx, qword [rsp + 0x40]
mov dword [0x000176e4], 6
cmp rcx, r12
je 0x1cc31
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.000130a0
lea r11, [rsp + 0x130]
mov rbp, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret