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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x17b0]
mov eax, 0x18b0
call fcn.1400ad480
sub rsp, rax
mov rax, qword [rbp + 0x1808]
mov rsi, rdx
mov rdx, qword [rbp + 0x1818]
mov rdi, rcx
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x60]
mov rax, qword [rbp + 0x1810]
xor ebx, ebx
mov r8d, 0x3ff
mov qword [rbp - 0x68], rax
mov dword [rbp + 0xfa0], ebx
mov word [rbp + 0x7a0], bx
call fcn.1400a1224
lea rcx, [rbp - 0x60]
mov word [rbp + 0x79e], bx
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x14002d2b0
test rax, rax
je 0x14002d2cb
cmp word [rbp + rax*2 - 0x62], 0x5c
jne 0x14002d2cb
mov word [rbp + rax*2 - 0x62], bx
mov rax, qword [0x1400ebaa8]
lea rdx, [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
mov r9d, dword [rax + 0x108]
lea rax, [rsp + 0x68]
or r9d, 9
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002d71f
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14002d714
mov rbx, qword [0x1400ebaa8]
mov eax, dword [rbp - 0x80]
mov ecx, dword [rbp + 0x17f8]
mov qword [rbp - 0x78], rbx
test eax, eax
je 0x14002d4e0
cmp ecx, 2
je 0x14002d4e0
xor ecx, ecx
lea esi, [rax - 1]
mov qword [rbp + 0xfa4], rcx
mov qword [rsp + 0x38], rcx
lea rax, [rbp + 0xfa0]
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x7a0]
mov qword [rsp + 0x20], rcx
mov edx, esi
mov word [rbp + 0x7a0], cx
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x64], esi
mov dword [rsp + 0x70], 0x400
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14002d48e
lea rax, [rbp - 0x70]
mov qword [rbx + 0x18], rax
mov rcx, qword [rdi + 0x20]
cmp byte [rcx], 0x73
jne 0x14002d413
mov rsi, qword [rbp + 0x17d8]
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x78]
mov r8, rsi
mov edx, 2
call fcn.140025eb0
mov rcx, qword [rdi + 0x20]
mov ebx, eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x78]
cmp rax, rcx
je 0x14002d3e3
mov esi, dword [rsp + 0x64]
jmp 0x14002d434
mov r8, qword [rbp + 0x17d8]
lea r9, [rsp + 0x78]
mov edx, 3
call fcn.140025eb0
mov ebx, eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14002d45f
cmp ebx, 6
jne 0x14002d49b
cmp rax, rdi
je 0x14002d469
mov rcx, qword [rbp + 0x17e8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002d724
cmp ebx, 1
je 0x14002d469
cmp ebx, 6
jne 0x14002d4c1
mov rax, qword [rbp + 0x17f0]
test rax, rax
je 0x14002d486
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14002c840
test al, al
jne 0x14002d4bd
mov rbx, qword [rbp - 0x78]
inc qword [rbx + 8]
test esi, esi
je 0x14002d4d3
dec esi
xor ecx, ecx
jmp 0x14002d37c
cmp rax, rdi
jne 0x14002d443
mov r8, qword [rbp + 0x17e0]
mov rcx, qword [rsp + 0x68]
mov byte [r8], 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002d724
mov ebx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002d724
mov rsi, qword [rbp + 0x17d8]
mov ecx, dword [rbp + 0x17f8]
mov eax, dword [rbp - 0x7c]
test eax, eax
je 0x14002d714
cmp ecx, 1
jne 0x14002d4fd
cmp byte [rbp + 0x1800], 0
je 0x14002d714
mov dword [rbp + 0xfa0], 0xfffffffe
dec eax
lea rcx, [rbp + 0xfa4]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x38], rcx
lea r9, [rsp + 0x70]
xor ecx, ecx
mov dword [rsp + 0x70], 0x400
mov qword [rsp + 0x30], rcx
lea r8, [rbp + 0x7a0]
mov qword [rsp + 0x28], rcx
mov edx, eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14002d6df
cmp dword [rbp + 0x17f8], 1
je 0x14002d60c
lea rax, [rbp - 0x70]
mov qword [rbx + 0x18], rax
mov rcx, qword [rdi + 0x20]
cmp byte [rcx], 0x73
jne 0x14002d59d
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x78]
mov r8, rsi
mov edx, 2
call fcn.140025eb0
mov rcx, qword [rdi + 0x20]
mov ebx, eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x78]
cmp rax, rcx
je 0x14002d571
jmp 0x14002d5ba
lea r9, [rsp + 0x78]
mov r8, rsi
mov edx, 3
call fcn.140025eb0
mov ebx, eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14002d5d3
cmp ebx, 6
jne 0x14002d6f2
cmp rax, rdi
jne 0x14002d443
jmp 0x14002d5e1
cmp ebx, 1
je 0x14002d5e1
cmp ebx, 6
jne 0x14002d4c1
mov rbx, qword [rbp + 0x17f0]
test rbx, rbx
je 0x14002d602
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14002c840
test al, al
jne 0x14002d4bd
mov rax, qword [rbp - 0x78]
inc qword [rax + 8]
jmp 0x14002d613
mov rbx, qword [rbp + 0x17f0]
cmp byte [rbp + 0x1800], 0
je 0x14002d6df
cmp word [rbp - 0x60], 0
lea rcx, [0x1400cfe4c]
lea rax, [0x1400bbf7c]
mov edx, 0x400
cmovne rax, rcx
lea r9, [rbp - 0x60]
lea rcx, [rbp + 0x7a0]
mov qword [rsp + 0x28], rcx
lea r8, [0x1400d4150]
lea rcx, [rbp + 0xfb0]
mov qword [rsp + 0x20], rax
call fcn.140078a50
mov r9, qword [rbp + 0x17e8]
lea rax, [rbp + 0xfb0]
mov r8, qword [rbp + 0x17e0]
mov rdx, rsi
mov qword [rsp + 0x48], rax
mov rcx, rdi
mov rax, qword [rbp + 0x1810]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x1808]
mov qword [rsp + 0x38], rax
movzx eax, byte [rbp + 0x1800]
mov byte [rsp + 0x30], al
mov eax, dword [rbp + 0x17f8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call fcn.14002d230
mov ebx, eax
cmp eax, 1
jne 0x14002d44d
mov rax, qword [rbp + 0x17e0]
cmp byte [rax], 0
jne 0x14002d714
mov rax, qword [rbp + 0x17e8]
cmp qword [rax], 0
jne 0x14002d714
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x14002d714
mov rbx, qword [rbp - 0x78]
dec eax
jmp 0x14002d509
cmp rax, rdi
jne 0x14002d443
mov rax, qword [rbp + 0x17e0]
mov rcx, qword [rsp + 0x68]
mov byte [rax], 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002d724
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rbx, qword [rsp + 0x18d0]
add rsp, 0x18b0
pop rdi
pop rsi
pop rbp
ret