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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x4a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400e44d0]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r15d, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14006baea
call fcn.140069b80
mov r15d, eax
cmp eax, 0xffffffff
jne 0x14006baea
xor al, al
jmp 0x14006bd3c
xor r12d, r12d
mov qword [rsp + 0x30], r12
lea rdx, [rbx + 0xb0]
cmp qword [rdx + 0x18], 0x10
jb 0x14006bb03
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rdi, qword [rsp + 0x30]
test eax, eax
je 0x14006bb46
test rdi, rdi
je 0x14006bd3a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov qword [rsp + 0x30], r12
test rdi, rdi
je 0x14006bd3a
mov esi, 1
mov ebx, esi
cmp r15d, ebx
jl 0x14006bd31
nop
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x70]
call fcn.140037fb0
mov dword [rsp + 0x38], 0x3ff
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140072a60
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14006bca2
cmp esi, ebx
je 0x14006bca0
mov edx, esi
lea rcx, [rsp + 0x68]
call fcn.140072a60
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14006bbe2
mov rdx, qword [rax]
lea rcx, [rbp - 0x70]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14006bbf0
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete r14b
mov rax, qword [rbp - 0x80]
cmp rax, 0x10
jb 0x14006bc6f
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, 0x1000
jb 0x14006bc6a
test cl, 0x1f
jne 0x14006bd13
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14006bd0d
sub rcx, rax
cmp rcx, 8
jb 0x14006bd07
cmp rcx, 0x27
ja 0x14006bd01
mov rcx, rax
call fcn.140035bd8
mov qword [rbp - 0x80], 0xf
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x68], 0
test r14b, r14b
je 0x14006bca0
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc esi
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x14006bce2
mov rcx, qword [rsp + 0x48]
inc rax
cmp rax, 0x1000
jb 0x14006bcdd
test cl, 0x1f
jne 0x14006bd2b
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14006bd25
sub rcx, rax
cmp rcx, 8
jb 0x14006bd1f
cmp rcx, 0x27
ja 0x14006bd19
mov rcx, rax
call fcn.140035bd8
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], r12
mov byte [rsp + 0x48], 0
inc ebx
cmp ebx, r15d
jg 0x14006bd31
jmp 0x14006bb60
call fcn.14003a538
int3
call fcn.14003a538
int3
call fcn.14003a538
int3
call fcn.14003a538
nop
call fcn.14003a538
int3
call fcn.14003a538
int3
call fcn.14003a538
int3
call fcn.14003a538
int3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140035b70
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret