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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xa8
mov rax, qword [0x1400d3258]
xor rax, rsp
mov qword [rbp - 1], rax
mov rsi, qword [rbp + 0x7f]
mov rdi, r9
mov qword [rbp - 0x21], r9
mov r13d, r8d
mov r12, rdx
mov qword [rbp - 0x19], rcx
mov r15, rcx
mov r10, qword [0x1400d0018]
lea rax, [0x1400d0018]
mov r14d, 5
cmp r10, rax
je 0x14008c000
test byte [r10 + 0x1c], 1
je 0x14008c000
cmp byte [r10 + 0x19], r14b
jb 0x14008c000
mov eax, dword [rsi]
mov r9, qword [rcx]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rdx
call fcn.14008a5a4
mov r10, qword [0x1400d0018]
cmp dword [rsi], 0x100
mov ebx, 4
jae 0x14008c480
mov rcx, qword [r15]
lea rax, [rbp - 0x31]
mov r9d, r13d
mov qword [rsp + 0x20], rax
or r9d, 0xf003f
lea r8d, [rbx + 4]
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [0x1400d0018]
lea rax, [0x1400d0018]
xor r14d, r14d
lea r11d, [r14 + 5]
cmp r10, rax
je 0x14008c094
test byte [r10 + 0x1c], 2
je 0x14008c094
movzx edx, byte [r10 + 0x19]
lea ecx, [r14 + 2]
test ebx, ebx
cmove ecx, r11d
cmp edx, ecx
jb 0x14008c094
mov rax, qword [r15]
mov r9d, ebx
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.14008a020
mov r10, qword [0x1400d0018]
lea r11d, [r14 + 5]
test ebx, ebx
jne 0x14008c47a
mov ecx, dword [rsi]
lea r9d, [rbx + 0xc]
mov rax, qword [rbp - 0x31]
lea r8, [rbp - 0x11]
mov edx, r11d
mov qword [rdi + rcx*8], rax
lea rax, [rbp - 0x29]
inc dword [rsi]
mov rcx, qword [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x29], r14d
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp r10, rax
je 0x14008c12a
test byte [r10 + 0x1c], 2
je 0x14008c12a
movzx ecx, byte [r10 + 0x19]
mov eax, 2
test ebx, ebx
lea edx, [rax + 3]
cmove eax, edx
cmp ecx, eax
jb 0x14008c12a
mov rax, qword [rbp - 0x31]
lea r8, [0x1400ba760]
mov rcx, qword [r10 + 0x10]
mov edx, 0x5b
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.14000adac
mov r10, qword [0x1400d0018]
test ebx, ebx
js 0x14008c47a
test byte [rbp - 0xd], 2
je 0x14008c311
lea r15, [0x1400d0018]
cmp r10, r15
je 0x14008c16b
test byte [r10 + 0x1c], 2
je 0x14008c16b
cmp byte [r10 + 0x19], 4
jb 0x14008c16b
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400ba760]
mov edx, 0x5c
call fcn.1400034f0
mov dword [rbp - 0x35], r14d
mov eax, 0x80
or r14, 0xffffffffffffffff
mov dword [rbp - 0x39], eax
xor esi, esi
shr eax, 1
lea ecx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400a2d8c
mov rdi, rax
test rax, rax
je 0x14008c237
mov rcx, qword [rbp - 0x31]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x35]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [0x1400ba738]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14008c218
cmp dword [rbp - 0x35], 6
jne 0x14008c218
test byte [rbp - 0x39], 1
jne 0x14008c218
mov eax, dword [rbp - 0x39]
shr rax, 1
mov word [rdi + rax*2], si
mov rcx, qword [0x1400d0018]
cmp rcx, r15
je 0x14008c218
test byte [rcx + 0x1c], 2
je 0x14008c218
cmp byte [rcx + 0x19], 4
jb 0x14008c218
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x5d]
mov r9, rdi
lea r8, [0x1400ba760]
call fcn.14000351c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
cmp ebx, 0xea
jne 0x14008c23c
mov eax, dword [rbp - 0x39]
jmp 0x14008c17d
mov ebx, SafeArrayGetDim
test ebx, ebx
jne 0x14008c473
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop dword [rax + rax]
mov edi, eax
mov r10, qword [0x1400d0018]
lea r14d, [rbx + 5]
cmp r10, r15
je 0x14008c2a5
test byte [r10 + 0x1c], 2
je 0x14008c2a5
movzx edx, byte [r10 + 0x19]
lea ecx, [rbx + 2]
test eax, eax
cmove ecx, r14d
cmp edx, ecx
jb 0x14008c2a5
mov rax, qword [rbp - 0x31]
lea edx, [rbx + 0x5e]
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400ba760]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.14000adac
mov r10, qword [0x1400d0018]
test edi, edi
js 0x14008c2e9
cmp r10, r15
je 0x14008c4c0
test byte [r10 + 0x1c], 2
je 0x14008c480
cmp byte [r10 + 0x19], 4
jb 0x14008c480
mov edx, 0x5f
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400ba760]
call fcn.1400034f0
mov r10, qword [0x1400d0018]
jmp 0x14008c480
mov ebx, edi
cmp r10, r15
je 0x14008c4c0
test byte [r10 + 0x1c], 2
je 0x14008c480
cmp byte [r10 + 0x19], 4
jb 0x14008c480
mov edx, 0x60
jmp 0x14008c2cd
mov rcx, qword [rbp - 0x31]
lea rax, [rbp - 0x35]
mov qword [rsp + 0x58], r14
xor r9d, r9d
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
xor edx, edx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov dword [rbp - 0x35], r14d
call qword [sym.imp.KERNEL32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14008c473
mov ecx, dword [rbp - 0x35]
lea eax, [rbx + 2]
inc ecx
mov r14, 0xffffffffffffffff
mov edx, ecx
mul rdx
mov dword [rbp - 0x39], ecx
cmovo rax, r14
mov rcx, rax
call fcn.1400a2d8c
xor r14d, r14d
mov rdi, rax
test rax, rax
je 0x14008c46e
mov rcx, qword [rbp - 0x31]
lea r9, [rbp - 0x39]
mov qword [rsp + 0x38], r14
mov r8, rax
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14008c43b
mov r14, qword [rbp - 0x21]
xor r15d, r15d
mov eax, dword [rbp - 0x39]
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rsi
mov r9, r14
mov r8d, r13d
mov dword [rsp + 0x20], 0x100
mov rdx, rdi
mov word [rdi + rax*2], r15w
call fcn.14008bf78
mov ebx, eax
test eax, eax
jne 0x14008c437
mov eax, dword [rbp - 0x35]
lea r9, [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
inc eax
mov qword [rsp + 0x38], r15
mov r8, rdi
mov qword [rsp + 0x30], r15
xor edx, edx
mov qword [rsp + 0x28], r15
mov dword [rbp - 0x39], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14008c3cf
mov r15, qword [rbp - 0x19]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
cmp ebx, 0x103
jne 0x14008c473
mov rcx, qword [r15]
xor r9d, r9d
mov r8d, r13d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14008c473
mov ebx, SafeArrayGetDim
mov r10, qword [0x1400d0018]
mov r14d, 5
lea rax, [0x1400d0018]
cmp r10, rax
je 0x14008c4c0
test byte [r10 + 0x1c], 1
je 0x14008c4c0
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, r14d
cmp edx, ecx
jb 0x14008c4c0
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400ba760]
mov edx, 0x61
mov r9d, ebx
call fcn.1400035c4
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400a3a80
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret