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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x5c8
mov qword [rsp + 0x610], rcx
lea rcx, [0x1400185a0]
call fcn.140005cd5
mov r14, rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0
test eax, eax
jne 0x1400035c4
mov ecx, 0x40000
call fcn.140004e20
mov rsi, rax
test rax, rax
je 0x1400035b6
mov byte [rax], 0
lea rcx, [0x140018610]
call fcn.140005cd5
mov r15, rax
lea rcx, [0x140018630]
call fcn.140005cd5
mov qword [rsp + 0x48], rax
lea rcx, [0x140018658]
call fcn.140005cd5
mov qword [rsp + 0x50], rax
lea rcx, [0x140018677]
call fcn.140005c50
mov qword [rsp + 0x40], rax
lea rcx, [0x140018681]
call fcn.140005c50
mov qword [rsp + 0x58], rax
mov ebx, 0
mov rdi, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rbp, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x140003370
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_strcat
jmp 0x14000347a
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov dword [rsp + 0x78], 0x104
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003345
mov eax, dword [rsp + 0x78]
mov byte [rax + r13], 0
mov eax, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov byte [rax + rdx], 0
lea rcx, [rsp + 0x1a0]
call fcn.14000280d
mov r12, rax
test rax, rax
je 0x14000335f
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, r12
call sub.msvcrt.dll_strlen
lea r13, [rsp + 0x90]
mov r8d, eax
mov rdx, r12
mov rcx, r13
call fcn.14000159e
mov rdx, r13
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, r12
call fcn.140004e72
jmp 0x14000335f
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 1
mov dword [rsp + 0x7c], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x7c]
lea r8, [rsp + 0x3b0]
mov edx, ebx
mov rcx, qword [rsp + 0x88]
call rdi
test eax, eax
jne 0x140003571
lea rdx, [rsp + 0x3b0]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
mov r8d, 0
mov rcx, qword [rsp + 0x88]
call rbp
test eax, eax
jne 0x14000336d
mov dword [rsp + 0x78], 0x104
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov rdx, r15
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000335f
lea r13, [rsp + 0x1a0]
mov eax, dword [rsp + 0x78]
mov byte [rsp + rax + 0x1a0], 0
lea rax, [rsp + 0x1a1]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x78]
mov byte [rsp + rax + 0x1a1], 0
mov rcx, r13
call fcn.14000280d
mov r12, rax
test rax, rax
je 0x1400034b2
cmp byte [rsi], 0
je 0x14000347a
test ebx, ebx
jne 0x14000326c
mov rcx, r12
call sub.msvcrt.dll_strlen
lea rdx, [rsp + 0x90]
mov rcx, rdx
mov r8d, eax
mov rdx, r12
mov qword [rsp + 0x68], rcx
call fcn.14000159e
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, r12
call fcn.140004e72
mov dword [rsp + 0x78], 0x104
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000327e
mov eax, dword [rsp + 0x78]
mov byte [rax + r13], 0
mov eax, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov byte [rax + rdx], 0
lea rcx, [rsp + 0x1a0]
call fcn.14000280d
mov r12, rax
test rax, rax
je 0x140003298
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, r12
call sub.msvcrt.dll_strlen
lea rdx, [rsp + 0x90]
mov rcx, rdx
mov r8d, eax
mov rdx, r12
mov qword [rsp + 0x68], rcx
call fcn.14000159e
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call sub.msvcrt.dll_strcat
mov rcx, r12
call fcn.140004e72
jmp 0x140003298
mov rcx, rsi
call sub.msvcrt.dll_strlen
add eax, 1
mov rdi, qword [rsp + 0x610]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x58]
call fcn.140005d5c
mov rcx, qword [rsp + 0x40]
call fcn.140005d5c
mov rcx, qword [rsp + 0x50]
call fcn.140005d5c
mov rcx, qword [rsp + 0x48]
call fcn.140005d5c
mov rcx, r15
call fcn.140005d5c
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.140005d5c
mov rax, rsi
add rsp, 0x5c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret