Function at 0x140021ef0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rdi, rcx
xor r13d, r13d
mov r14d, r13d
mov dword [rsp + 0x80], r13d
lea r12, [0x140036100]
mov rcx, r12
mov rax, qword [0x140036100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x98], rax
mov rcx, r12
mov rax, qword [0x140036100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
mov rax, r13
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x158], r13d
mov rcx, r12
mov rax, qword [0x140036100]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x90], rsi
mov rcx, r12
mov rax, qword [0x140036100]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x88], rbx
mov rcx, r12
mov rax, qword [0x140036100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rcx, r12
mov rax, qword [0x140036100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov rcx, r12
mov rax, qword [0x140036100]
call qword [rax + 0x18]
lea r12, [rax + 0x18]
mov qword [rsp + 0xb8], r12
mov r8, rdi
lea rdx, [0x1400062e0]
lea rcx, [rsp + 0x98]
call fcn.1400181c8
mov rdx, qword [rsp + 0x98]
cmp dword [rdx - 0x10], r13d
jne 0x140022042
mov r14d, 0x8007000e
or r15, 0xffffffffffffffff
lea edi, [r13 + 1]
mov rax, r13
mov rcx, qword [rsp + 0x58]
jmp 0x140022127
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r13d
je 0x14002209e
movzx r14d, ax
or r14d, 0x80070000
cmp eax, r13d
cmovle r14d, eax
mov edx, 1
mov dword [rsp + 0x80], edx
cmp r14d, r13d
jge 0x1400220a3
or r15, 0xffffffffffffffff
mov rdi, rdx
mov rax, r13
mov rcx, qword [rsp + 0x58]
jmp 0x140022127
mov edx, 1
xor eax, eax
or r15, 0xffffffffffffffff
mov rcx, r15
repne scasw ax, word [rdi]
not rcx
sub rcx, rdx
lea eax, [rcx + 2]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x44], eax
mov edx, eax
lea eax, [r15 + 3]
mul rdx
cmovo rax, r15
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rax
mov edi, 1
mov rcx, qword [rsp + 0x58]
jmp 0x140022127
mov r10d, r13d
mov dword [rsp + 0x40], r13d
cmp r14d, r13d
jl 0x1400225a7
mov edx, dword [rsp + 0x158]
mov qword [rsp + 0xa8], rdx
mov word [rax], r13w
mov r9d, ecx
mov r8, rax
mov edx, r10d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x1400225a7
cmp eax, r13d
je 0x140022181
movzx r14d, ax
or r14d, 0x80070000
cmp eax, r13d
cmovle r14d, eax
cmp r14d, r13d
jl 0x14002223f
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x14002219a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r13d
je 0x1400221d9
movzx r14d, ax
or r14d, 0x80070000
cmp eax, r13d
cmovle r14d, eax
cmp r14d, r13d
jl 0x140022246
xor eax, eax
mov rcx, r15
mov rdi, qword [rsp + 0x140]
repne scasw ax, word [rdi]
not rcx
mov eax, 1
sub rcx, rax
add ecx, 2
mov qword [rsp + 0xa8], rcx
mov edx, eax
sub edx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, ecx
or eax, edx
jge 0x140022229
mov edx, ecx
lea rcx, [rsp + 0x90]
call fcn.14000ccbc
mov rsi, qword [rsp + 0x90]
mov rdi, rsi
mov qword [rsp + 0x48], rsi
cmp rsi, r13
mov eax, 0x8007000e
cmove r14d, eax
jmp 0x14002224b
mov rdi, qword [rsp + 0x48]
jmp 0x14002224b
mov rdi, qword [rsp + 0x48]
mov eax, r13d
mov dword [rsp + 0x44], eax
cmp r14d, r13d
jl 0x140022576
mov rcx, qword [rsp + 0xa8]
mov dword [rsp + 0xa0], ecx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0xa0]
mov r8, rdi
mov edx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x140022576
cmp eax, r13d
je 0x1400222b8
movzx r14d, ax
or r14d, 0x80070000
cmp eax, r13d
cmovle r14d, eax
cmp r14d, r13d
jl 0x140022563
xor eax, eax
mov rcx, r15
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdi, qword [rsp + 0x48]
mov eax, 0x7b
cmp ax, word [rdi]
jne 0x140022563
lea edx, [rcx - 2]
mov eax, 0x7d
cmp ax, word [rdi + rdx*2]
jne 0x140022563
xor eax, eax
mov rcx, r15
mov rdi, qword [rsp + 0x140]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov eax, r8d
cmp rcx, rax
jne 0x14002255e
mov dword [rsp + 0x158], r13d
lea rax, [rsp + 0x158]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, 2
mov rdi, qword [rsp + 0x48]
mov r8, rdi
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
cmp eax, r13d
je 0x140022368
movzx r14d, ax
or r14d, 0x80070000
cmp eax, r13d
cmovle r14d, eax
cmp r14d, r13d
jl 0x140022563
mov edx, dword [rsp + 0x158]
shr edx, 1
add edx, 2
mov dword [rsp + 0x158], edx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x1400223b1
lea rcx, [rsp + 0x88]
call fcn.14000ccbc
mov edx, dword [rsp + 0x158]
mov rbx, qword [rsp + 0x88]
lea eax, [rdx + rdx]
mov dword [rsp + 0x158], eax
lea rax, [rsp + 0x158]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
mov r9d, 2
mov r8, rdi
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
cmp eax, r13d
je 0x1400223ff
movzx r14d, ax
or r14d, 0x80070000
cmp eax, r13d
cmovle r14d, eax
cmp r14d, r13d
jl 0x140022563
cmp rbx, r13
jne 0x140022412
mov ecx, r13d
jmp 0x140022431
xor eax, eax
mov rcx, r15
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r13d
jl 0x14002259c
mov rdi, qword [rsp + 0x48]
cmp ecx, dword [rbx - 0xc]
jg 0x14002259c
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], r13w
cmp dword [rbx - 0x10], r13d
je 0x140022563
xor eax, eax
mov rcx, r15
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdi, qword [rsp + 0x48]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14000cd0c
mov edx, 0x7b
lea rcx, [rsp + 0x70]
call fcn.140017850
mov edx, 0x7d
lea rcx, [rsp + 0x70]
call fcn.140017850
lea r8, [rsp + 0xd0]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp eax, r13d
je 0x140022512
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xec]
mov dword [rsp + 0xb4], eax
mov r8, qword [rsp + 0xb0]
lea rdx, [0x140006358]
lea rcx, [rsp + 0x78]
call fcn.1400181c8
cmp dword [rsp + 0x40], r13d
jne 0x1400224f2
cmp dword [rsp + 0x44], r13d
jne 0x1400224f2
lea rdx, [0x140006368]
jmp 0x1400224f9
lea rdx, [0x140006378]
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x150]
call fcn.140022d50
jmp 0x14002253e
xor eax, eax
mov rcx, r15
lea rdi, [0x14000638c]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14000638c]
lea rcx, [rsp + 0x78]
call fcn.14000cd0c
mov rdi, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x148]
call fcn.140022bac
cmp rax, r13
mov eax, 0x8007000e
cmove r14d, eax
jmp 0x140022563
mov rdi, qword [rsp + 0x48]
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp r14d, r13d
jge 0x14002225b
mov edi, 1
mov r10d, dword [rsp + 0x40]
add r10d, edi
mov dword [rsp + 0x40], r10d
cmp r14d, r13d
jl 0x1400225a7
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
jmp 0x140022147
mov ecx, 0x80070057
call fcn.140008378
int3
mov rax, qword [rsp + 0x60]
cmp rax, r13
je 0x1400225b9
mov rcx, rax
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
cmp r14d, r13d
jge 0x1400225ca
cmp dword [rsp + 0x80], r13d
cmovne r14d, edi
lea rdx, [r12 - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r13d
jg 0x1400225e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r13d
jg 0x14002260b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r13d
jg 0x14002262e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r13d
jg 0x140022654
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r13d
jg 0x14002267a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r13
je 0x14002268f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x68]
cmp rcx, r13
je 0x1400226a4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r13
mov rdx, qword [rsp + 0xc0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, r13d
jg 0x1400226ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov ecx, r15d
lock xadd dword [rdx + 0x10], ecx
add ecx, r15d
cmp ecx, r13d
jg 0x1400226ef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, r14d
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret