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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17c0]
mov eax, 0x18c0
call fcn.1402cb740
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1910], rbx
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x17b0], rax
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x64], r12d
mov r15, qword [rdx]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov r14d, r12d
cmp dword [rsp + 0x64], r12d
jbe 0x1401f38c1
lea r13, [0x140348ca0]
nop dword [rax]
nop word [rax + rax]
mov r9d, 0x400
lea r8, [rbp + 0x7b0]
mov edx, r14d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1401f38ac
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x7b0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1401f38b3
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, r12d
cmp dword [rsp + 0x60], r12d
jbe 0x1401f38a0
nop
mov dword [rbp - 0x68], 0x800
mov dword [rsp + 0x68], 0x800
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x68]
lea r8, [rbp + 0xfb0]
mov edx, edi
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc edi
test eax, eax
jne 0x1401f388f
cmp dword [rsp + 0x68], 8
jb 0x1401f3896
cmp word [rbp - 0x4e], 0x3a
jne 0x1401f3896
lea rax, [rbp - 0x50]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f3790
mov qword [rbp - 0x78], r12
test ebx, ebx
jne 0x1401f37a8
mov qword [rbp - 0x80], r13
jmp 0x1401f37cb
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rbp - 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x50]
mov rcx, qword [rbp - 0x80]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140200570
nop
lea rdx, [rbp - 0x80]
mov rcx, qword [rsi + 8]
call fcn.1400f5e30
nop
cmp dword [rbp - 0x78], 0
jle 0x1401f37f4
mov rcx, qword [rbp - 0x80]
call fcn.1402b9c20
mov edx, 0x5c
lea rcx, [rbp - 0x50]
call fcn.1402bcbec
test rax, rax
je 0x1401f3896
mov word [rax + 2], r12w
lea rax, [rbp - 0x50]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f3820
mov qword [rsp + 0x78], r12
test ebx, ebx
jne 0x1401f383a
mov qword [rsp + 0x70], r13
jmp 0x1401f3860
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x50]
mov rcx, qword [rsp + 0x70]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140200570
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 8]
call fcn.1400f5e30
nop
cmp dword [rsp + 0x78], 0
jle 0x1401f3896
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
jmp 0x1401f3896
cmp eax, 0x103
je 0x1401f38a0
cmp edi, dword [rsp + 0x60]
jb 0x1401f3720
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f38b3
cmp eax, 0x103
je 0x1401f38c1
inc r14d
cmp r14d, dword [rsp + 0x64]
jb 0x1401f3690
mov rcx, qword [rbp + 0x17b0]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0x1910]
add rsp, 0x18c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret