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

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x4b0
mov rax, qword [0x14002e260]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rax, r8
mov rbp, rcx
mov esi, edx
lea rcx, [rsp + 0x68]
mov ebx, edx
mov dword [rsp + 0x64], edx
mov qword [rsp + 0x20], rcx
or esi, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, rbp
mov r9d, esi
mov qword [rsp + 0x78], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140006bb4
cmp dword [0x14002fa10], 0
je 0x140006d9c
lea rcx, str._n_h_is_not_supported_on_Nano_Server__please_use_PowerShell_cmdlet_Get_WindowsPackage__Online_instead._n
call fcn.140007f24
jmp 0x140006d9c
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x80]
mov r9d, 0x208
xor edx, edx
mov qword [rsp + 0x4e8], rdi
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140006d89
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
lea rdx, [rsp + 0x80]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006d64
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea rdx, str.Description
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006d26
lea ecx, [rax + 0x28]
call fcn.140007da8
xor ecx, ecx
xor r9d, r9d
mov qword [rax + 0x20], rcx
mov qword [rax + 8], rcx
mov dword [rax + 0x1c], ecx
mov rbx, rax
add rax, 0x18
xor r8d, r8d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov dword [rax], ecx
mov qword [rbx + 0x10], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [rsp + 0x60]
add rcx, 2
call fcn.140007da8
lea rcx, [rsp + 0x60]
lea rdx, str.Description
mov qword [rsp + 0x28], rcx
mov qword [rbx], rax
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140006cf4
mov rcx, qword [rbx]
call fcn.140007d68
mov rcx, rbx
mov qword [rbx], 0
call fcn.140007d68
mov ebx, dword [rsp + 0x64]
jmp 0x140006d59
mov rax, qword [0x140031a98]
test rax, rax
cmove rax, rbx
mov qword [0x140031a98], rax
mov rax, qword [0x140031ca8]
test rax, rax
je 0x140006d19
mov qword [rax + 0x20], rbx
mov qword [0x140031ca8], rbx
mov ebx, dword [rsp + 0x64]
jmp 0x140006d59
mov r8, qword [rsp + 0x78]
lea r9, [rsp + 0x80]
lea rdx, str._s_s
lea rcx, [rsp + 0x290]
call fcn.140007ff8
lea r8, [rsp + 0x290]
mov edx, ebx
mov rcx, rbp
call fcn.140006b40
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
inc edi
lea r8, [rsp + 0x80]
mov edx, edi
mov r9d, 0x208
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140006be1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x4e8]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140008390
add rsp, 0x4b0
pop rsi
pop rbp
pop rbx
ret