Function at 0x14005c8b0
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 [0x1400cd4d0]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r15d, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14005c90a
call fcn.14005a9a0
mov r15d, eax
cmp eax, 0xffffffff
jne 0x14005c90a
xor al, al
jmp 0x14005cb5c
xor r12d, r12d
mov qword [rsp + 0x30], r12
lea rdx, [rbx + 0xb0]
cmp qword [rdx + 0x18], 0x10
jb 0x14005c923
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 0x14005c966
test rdi, rdi
je 0x14005cb5a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov qword [rsp + 0x30], r12
test rdi, rdi
je 0x14005cb5a
mov esi, 1
mov ebx, esi
cmp r15d, ebx
jl 0x14005cb51
nop
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x70]
call fcn.1400291f0
mov dword [rsp + 0x38], 0x3ff
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140063880
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 0x14005cac2
cmp esi, ebx
je 0x14005cac0
mov edx, esi
lea rcx, [rsp + 0x68]
call fcn.140063880
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005ca02
mov rdx, qword [rax]
lea rcx, [rbp - 0x70]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14005ca10
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 0x14005ca8f
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, 0x1000
jb 0x14005ca8a
test cl, 0x1f
jne 0x14005cb33
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14005cb2d
sub rcx, rax
cmp rcx, 8
jb 0x14005cb27
cmp rcx, 0x27
ja 0x14005cb21
mov rcx, rax
call fcn.140026f68
mov qword [rbp - 0x80], 0xf
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x68], 0
test r14b, r14b
je 0x14005cac0
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 0x14005cb02
mov rcx, qword [rsp + 0x48]
inc rax
cmp rax, 0x1000
jb 0x14005cafd
test cl, 0x1f
jne 0x14005cb4b
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14005cb45
sub rcx, rax
cmp rcx, 8
jb 0x14005cb3f
cmp rcx, 0x27
ja 0x14005cb39
mov rcx, rax
call fcn.140026f68
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], r12
mov byte [rsp + 0x48], 0
inc ebx
cmp ebx, r15d
jg 0x14005cb51
jmp 0x14005c980
call fcn.14002b858
int3
call fcn.14002b858
int3
call fcn.14002b858
int3
call fcn.14002b858
nop
call fcn.14002b858
int3
call fcn.14002b858
int3
call fcn.14002b858
int3
call fcn.14002b858
int3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140026f00
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