Function at 0x14009129c
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 [0x1400cd220]
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 0x140091324
test byte [r10 + 0x1c], 1
je 0x140091324
cmp byte [r10 + 0x19], r13b
jb 0x140091324
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.14009319c
mov r10, qword [section..data]
cmp dword [rsi], 0x100
mov ebx, 4
jae 0x140091773
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 0x1400913b6
test byte [r10 + 0x1c], 2
je 0x1400913b6
movzx eax, byte [r10 + 0x19]
lea ecx, [rdx - 3]
test ebx, ebx
cmove ecx, edx
cmp eax, ecx
jb 0x1400913b6
mov rax, qword [r14]
mov r9d, ebx
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.140092c30
mov r10, qword [section..data]
lea edx, [r13 + 5]
test ebx, ebx
jne 0x14009176d
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 0x140091449
test byte [r10 + 0x1c], 2
je 0x140091449
mov ecx, 2
test ebx, ebx
lea eax, [rcx + 3]
cmove ecx, eax
movzx eax, byte [r10 + 0x19]
cmp eax, ecx
jb 0x140091449
mov rax, qword [rbp - 0x31]
lea r8, [0x1400bd6b0]
mov rcx, qword [r10 + 0x10]
mov edx, 0x5b
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.14002a964
mov r10, qword [section..data]
test ebx, ebx
js 0x14009176d
test byte [rbp - 0xd], 2
je 0x14009161b
lea r14, section..data
cmp r10, r14
je 0x14009148a
test byte [r10 + 0x1c], 2
je 0x14009148a
cmp byte [r10 + 0x19], 4
jb 0x14009148a
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400bd6b0]
mov edx, 0x5c
call fcn.1400062b0
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.140003b34
mov rcx, qword [rbp - 0x31]
lea r9, [rbp - 0x35]
mov rdi, rax
lea rdx, [0x1400bd688]
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 0x14009152e
cmp dword [rbp - 0x35], 6
jne 0x14009152e
test byte [rbp - 0x39], 1
jne 0x14009152e
mov eax, dword [rbp - 0x39]
shr rax, 1
mov word [rdi + rax*2], si
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14009152e
test byte [rcx + 0x1c], 2
je 0x14009152e
cmp byte [rcx + 0x19], 4
jb 0x14009152e
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x5d]
mov r9, rdi
lea r8, [0x1400bd6b0]
call fcn.1400062dc
mov rcx, rdi
call fcn.140003b28
cmp ebx, 0xea
jne 0x140091546
mov eax, dword [rbp - 0x39]
jmp 0x14009149c
test ebx, ebx
jne 0x140091766
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 0x1400915af
test byte [r10 + 0x1c], 2
je 0x1400915af
test eax, eax
lea ecx, [rbx + 2]
movzx eax, byte [r10 + 0x19]
cmove ecx, r13d
cmp eax, ecx
jb 0x1400915af
mov rax, qword [rbp - 0x31]
lea edx, [rbx + 0x5e]
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400bd6b0]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.14002a964
mov r10, qword [section..data]
test edi, edi
js 0x1400915f3
cmp r10, r14
je 0x1400917b3
test byte [r10 + 0x1c], 2
je 0x140091773
cmp byte [r10 + 0x19], 4
jb 0x140091773
mov edx, 0x5f
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400bd6b0]
call fcn.1400062b0
mov r10, qword [section..data]
jmp 0x140091773
mov ebx, edi
cmp r10, r14
je 0x1400917b3
test byte [r10 + 0x1c], 2
je 0x140091773
cmp byte [r10 + 0x19], 4
jb 0x140091773
mov edx, 0x60
jmp 0x1400915d7
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 0x140091766
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.140003b34
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 0x14009173c
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], 0x100
mov rdx, rdi
mov word [rdi + rax*2], r14w
call fcn.14009129c
mov ebx, eax
test eax, eax
jne 0x140091738
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 0x1400916d0
mov r14, qword [rbp - 0x19]
mov rcx, rdi
call fcn.140003b28
cmp ebx, 0x103
jne 0x140091766
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 0x1400917b3
test byte [r10 + 0x1c], 1
je 0x1400917b3
mov eax, ebx
neg eax
movzx eax, byte [r10 + 0x19]
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, r13d
cmp eax, ecx
jb 0x1400917b3
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400bd6b0]
mov edx, 0x61
mov r9d, ebx
call fcn.14000ad20
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140003680
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret