Function at 0x14000faf0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
push rbx
push r12
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rbp + 0x1f], rax
xor eax, eax
lea r12, [rcx + 8]
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rdx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], eax
mov qword [rbp - 9], r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000ff39
cmp qword [rbx], 0
je 0x14000ff2f
mov qword [rsp + 0x100], rsi
lea rdx, [0x140000000]
mov qword [rsp + 0xc8], rdi
mov edi, 0xffff8001
mov qword [rsp + 0xc0], r13
mov r13d, 0x7fff
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xb0], r15
lea r15, [rbx + 0x10]
nop dword [rax]
movsxd rsi, dword [r15 - 8]
cmp esi, 9
ja case.default.0x14000fbb7
mov ecx, dword [rdx + rsi*4 + 0xff54]
add rcx, rdx
jmp rcx
mov rax, qword [r15]
mov r9d, 4
mov dword [rsp + 0x28], 4
mov ecx, dword [rax]
lea rax, [rbp - 0x29]
mov dword [rbp - 0x29], ecx
jmp 0x14000fed6
mov rax, qword [r15]
mov r9d, 4
mov dword [rsp + 0x28], 4
movzx ecx, byte [rax]
lea rax, [rbp - 0x21]
mov dword [rbp - 0x21], ecx
jmp 0x14000fed6
mov rax, qword [r15]
mov dword [rsp + 0x28], 8
movsd xmm0, qword [rax]
lea rax, [rbp - 0x11]
movsd qword [rbp - 0x11], xmm0
jmp 0x14000fed0
mov rax, qword [r15]
mov rbx, qword [r15 - 0x10]
movsx eax, word [rax]
cmp esi, 3
jne 0x14000fc47
mov r8d, dword [0x1400a4660]
lea edx, [rsi + 0x5d]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, edi
jge 0x14000fc3f
movzx eax, di
jmp 0x14000fc47
cmp eax, r13d
cmovg ax, r13w
cwde
mov r9d, 4
mov dword [rbp - 0x1d], eax
mov rdx, rbx
lea rax, [rbp - 0x1d]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
jmp 0x14000fedf
mov rcx, qword [r15]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000fc74
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
jmp 0x14000fedb
mov esi, dword [r15 - 4]
lea rax, [rbp - 0x19]
mov rdx, qword [r15 - 0x10]
xor ebx, ebx
mov rcx, qword [r12]
xor r9d, r9d
mov r14, qword [r15]
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
shr esi, 2
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000feec
test esi, esi
je 0x14000fd48
mov rdi, r14
nop dword [rax]
mov r8d, ebx
lea rdx, [0x14007a7c8]
lea rcx, [rbp - 1]
call fcn.140006e40
cmp dword [rdi], 0
lea rdx, [rbp - 1]
je 0x14000fd34
mov eax, ebx
mov r9d, 4
mov dword [rsp + 0x28], 4
xor r8d, r8d
lea rcx, [r14 + rax*4]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14000fd3e
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc ebx
add rdi, 4
cmp ebx, esi
jb 0x14000fcf0
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000feec
mov r14d, dword [r15 - 4]
lea rax, [rbp - 0x31]
mov rdx, qword [r15 - 0x10]
xor edi, edi
mov rcx, qword [r12]
xor r9d, r9d
mov rbx, qword [r15]
xor r8d, r8d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
shr r14d, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000feec
test r14d, r14d
je 0x14000feb9
cmp esi, 7
jne 0x14000fe60
mov r12d, 0xffff8001
nop word [rax + rax]
mov r8d, edi
lea rdx, [0x14007a7c8]
lea rcx, [rbp - 1]
call fcn.140006e40
movsx eax, word [rbx]
test ax, ax
je 0x14000fe30
mov r8d, dword [0x1400a4660]
mov ecx, eax
mov edx, 0x60
call qword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, r12d
jge 0x14000fdfa
movzx eax, r12w
jmp 0x14000fe02
cmp eax, r13d
jle 0x14000fe02
mov eax, r13d
mov rcx, qword [rbp - 0x31]
lea rdx, [rbp - 1]
cwde
mov r9d, 4
mov dword [rbp - 0x39], eax
xor r8d, r8d
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14000fe3e
mov rcx, qword [rbp - 0x31]
lea rdx, [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc edi
add rbx, 2
cmp edi, r14d
jb 0x14000fdc0
mov rcx, qword [rbp - 0x31]
mov r12, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000feec
mov r8d, edi
lea rdx, [0x14007a7c8]
lea rcx, [rbp - 1]
call fcn.140006e40
movsx eax, word [rbx]
lea rdx, [rbp - 1]
mov rcx, qword [rbp - 0x31]
test ax, ax
je 0x14000fea8
mov dword [rbp - 0x39], eax
mov r9d, 4
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14000feae
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc edi
add rbx, 2
cmp edi, r14d
jb 0x14000fe60
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000feec
mov eax, dword [r15 - 4]
mov dword [rsp + 0x28], eax
mov rax, qword [r15]
mov r9d, 3
mov qword [rsp + 0x20], rax
mov rdx, qword [r15 - 0x10]
mov rcx, qword [r12]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, [0x140000000]
add r15, 0x20
mov edi, 0xffff8001
cmp qword [r15 - 0x10], 0
jne 0x14000fba0
mov r15, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0x100]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14004bd30
add rsp, 0xd0
pop r12
pop rbx
pop rbp
ret