Function at 0x14009b4a8
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 [0x1400ca1c0]
xor rax, rsp
mov qword [rbp - 1], rax
mov rsi, qword [rbp + 0x7f]
mov rdi, r9
mov qword [rbp - 0x21], r9
mov r12d, r8d
mov r15, rdx
mov qword [rbp - 0x19], rcx
mov r14, rcx
mov r10, qword [section..data]
lea rax, section..data
mov r13d, 5
cmp r10, rax
je 0x14009b530
test byte [r10 + 0x1c], 1
je 0x14009b530
cmp byte [r10 + 0x19], r13b
jb 0x14009b530
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.14009cc8c
mov r10, qword [section..data]
cmp dword [rsi], 0x100
mov ebx, 4
jae 0x14009b97f
mov rcx, qword [r14]
lea rax, [rbp - 0x31]
mov r9d, r12d
mov qword [rsp + 0x20], rax
or r9d, 0xf003f
lea r8d, [rbx + 4]
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [section..data]
lea rax, section..data
xor r13d, r13d
lea edx, [r13 + 5]
cmp r10, rax
je 0x14009b5c2
test byte [r10 + 0x1c], 2
je 0x14009b5c2
movzx eax, byte [r10 + 0x19]
lea ecx, [rdx - 3]
test ebx, ebx
cmove ecx, edx
cmp eax, ecx
jb 0x14009b5c2
mov rax, qword [r14]
mov r9d, ebx
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.14009c74c
mov r10, qword [section..data]
lea edx, [r13 + 5]
test ebx, ebx
jne 0x14009b979
mov ecx, dword [rsi]
lea r9d, [rbx + 0xc]
mov rax, qword [rbp - 0x31]
lea r8, [rbp - 0x11]
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], r13d
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [section..data]
lea rax, section..data
cmp r10, rax
je 0x14009b655
test byte [r10 + 0x1c], 2
je 0x14009b655
mov ecx, 2
test ebx, ebx
lea eax, [rcx + 3]
cmove ecx, eax
movzx eax, byte [r10 + 0x19]
cmp eax, ecx
jb 0x14009b655
mov rax, qword [rbp - 0x31]
lea r8, [0x1400aca20]
mov rcx, qword [r10 + 0x10]
mov edx, 0x5b
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.14005da6c
mov r10, qword [section..data]
test ebx, ebx
js 0x14009b979
test byte [rbp - 0xd], 2
je 0x14009b827
lea r14, section..data
cmp r10, r14
je 0x14009b696
test byte [r10 + 0x1c], 2
je 0x14009b696
cmp byte [r10 + 0x19], 4
jb 0x14009b696
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400aca20]
mov edx, 0x5c
call fcn.140045cf4
mov dword [rbp - 0x35], r13d
mov eax, 0x80
or r13, 0xffffffffffffffff
mov dword [rbp - 0x39], eax
xor esi, esi
shr eax, 1
lea ecx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140044530
mov rcx, qword [rbp - 0x31]
lea r9, [rbp - 0x35]
mov rdi, rax
lea rdx, [0x1400b91a0]
lea rax, [rbp - 0x39]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14009b73a
cmp dword [rbp - 0x35], 6
jne 0x14009b73a
test byte [rbp - 0x39], 1
jne 0x14009b73a
mov eax, dword [rbp - 0x39]
shr rax, 1
mov word [rdi + rax*2], si
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14009b73a
test byte [rcx + 0x1c], 2
je 0x14009b73a
cmp byte [rcx + 0x19], 4
jb 0x14009b73a
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x5d]
mov r9, rdi
lea r8, [0x1400aca20]
call fcn.140043490
mov rcx, rdi
call fcn.140044524
cmp ebx, 0xea
jne 0x14009b752
mov eax, dword [rbp - 0x39]
jmp 0x14009b6a8
test ebx, ebx
jne 0x14009b972
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop dword [rax + rax]
mov edi, eax
mov r10, qword [section..data]
lea r13d, [rbx + 5]
cmp r10, r14
je 0x14009b7bb
test byte [r10 + 0x1c], 2
je 0x14009b7bb
test eax, eax
lea ecx, [rbx + 2]
movzx eax, byte [r10 + 0x19]
cmove ecx, r13d
cmp eax, ecx
jb 0x14009b7bb
mov rax, qword [rbp - 0x31]
lea edx, [rbx + 0x5e]
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400aca20]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.14005da6c
mov r10, qword [section..data]
test edi, edi
js 0x14009b7ff
cmp r10, r14
je 0x14009b9bf
test byte [r10 + 0x1c], 2
je 0x14009b97f
cmp byte [r10 + 0x19], 4
jb 0x14009b97f
mov edx, 0x5f
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400aca20]
call fcn.140045cf4
mov r10, qword [section..data]
jmp 0x14009b97f
mov ebx, edi
cmp r10, r14
je 0x14009b9bf
test byte [r10 + 0x1c], 2
je 0x14009b97f
cmp byte [r10 + 0x19], 4
jb 0x14009b97f
mov edx, 0x60
jmp 0x14009b7e3
mov rcx, qword [rbp - 0x31]
lea rax, [rbp - 0x35]
mov qword [rsp + 0x58], r13
xor r9d, r9d
mov qword [rsp + 0x50], r13
xor r8d, r8d
mov qword [rsp + 0x48], r13
xor edx, edx
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov dword [rbp - 0x35], r13d
call qword [sym.imp.KERNEL32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14009b972
mov ecx, dword [rbp - 0x35]
lea eax, [rbx + 2]
inc ecx
mov r13, 0xffffffffffffffff
mov edx, ecx
mul rdx
mov dword [rbp - 0x39], ecx
cmovo rax, r13
mov rcx, rax
call fcn.140044530
mov rcx, qword [rbp - 0x31]
lea r9, [rbp - 0x39]
xor r13d, r13d
mov r8, rax
mov qword [rsp + 0x38], r13
xor edx, edx
mov qword [rsp + 0x30], r13
mov rdi, rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14009b948
mov r13, qword [rbp - 0x21]
xor r14d, r14d
mov eax, dword [rbp - 0x39]
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rsi
mov r9, r13
mov r8d, r12d
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rdx, rdi
mov word [rdi + rax*2], r14w
call fcn.14009b4a8
mov ebx, eax
test eax, eax
jne 0x14009b944
mov eax, dword [rbp - 0x35]
lea r9, [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
inc eax
mov qword [rsp + 0x38], r14
mov r8, rdi
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov dword [rbp - 0x39], eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14009b8dc
mov r14, qword [rbp - 0x19]
mov rcx, rdi
call fcn.140044524
cmp ebx, 0x103
jne 0x14009b972
mov rcx, qword [r14]
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [section..data]
mov r13d, 5
lea rax, section..data
cmp r10, rax
je 0x14009b9bf
test byte [r10 + 0x1c], 1
je 0x14009b9bf
mov eax, ebx
neg eax
movzx eax, byte [r10 + 0x19]
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, r13d
cmp eax, ecx
jb 0x14009b9bf
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400aca20]
mov edx, 0x61
mov r9d, ebx
call fcn.1400438d8
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140044080
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret