Function at 0x140016f90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xd8
mov rax, qword [0x14005b0e8]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor ebx, ebx
mov qword [rbp - 0x51], rcx
mov rsi, rcx
mov qword [rbp - 0x29], rbx
lea rax, [rbp - 0x29]
mov dword [rbp - 0x41], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
mov rcx, 0xffffffff80000002
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017084
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x31]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.ProductId
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017084
mov eax, dword [rbp - 0x41]
test eax, eax
je 0x140017084
mov ecx, eax
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140017084
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x31]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.ProductId
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017084
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.140004890
mov r8, rax
lea rdx, str.Product_Id
mov r9d, 0x1400
mov rcx, rsi
call fcn.1400118b0
jmp 0x140017098
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140017093
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x1400170a1
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
lea rax, [rbp - 0x29]
mov qword [rbp - 0x29], rbx
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x41], ebx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSoftwareProtectionPlatform
mov rcx, 0xffffffff80000002
mov rdi, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017176
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x31]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.BackupProductKeyDefault
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017176
mov eax, dword [rbp - 0x41]
test eax, eax
je 0x140017176
mov ecx, eax
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140017176
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x31]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.BackupProductKeyDefault
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017176
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.140004890
mov r8, rax
lea rdx, str.Product_Key
mov r9d, 0x1400
mov rcx, rsi
call fcn.1400118b0
mov rcx, rdi
jmp 0x14001763a
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140017185
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140017193
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
movups xmm0, xmmword [str.BCDFGHJKMPQRTVWXY2346789]
movzx eax, byte [0x140040768]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov byte [rbp + 0x1f], al
mov r9d, 1
xor eax, eax
mov qword [rbp - 0x39], rbx
movups xmmword [rbp + 7], xmm0
xor r8d, r8d
mov qword [rbp - 9], rax
movsd xmm0, qword [0x140040760]
mov rcx, 0xffffffff80000002
movsd qword [rbp + 0x17], xmm0
xorps xmm0, xmm0
mov dword [rbp - 1], eax
mov word [rbp + 3], ax
lea rax, [rbp - 0x39]
movups xmmword [rbp - 0x19], xmm0
mov dword [rbp - 0x41], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017623
mov rcx, qword [rbp - 0x39]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x31]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.DigitalProductId
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017623
mov eax, dword [rbp - 0x41]
test eax, eax
je 0x140017623
mov ecx, eax
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp - 0x49], rax
mov rbx, rax
test rax, rax
je 0x140017623
mov rcx, qword [rbp - 0x39]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x31]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.DigitalProductId
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017623
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp - 0x41], 0x48
jb 0x140017637
mov eax, dword [rbx + 0x3c]
lea rcx, [rbp + 3]
movsd xmm0, qword [rbx + 0x34]
mov r9d, 0x1c
movzx edx, byte [rbx + 0x42]
mov dword [rbp - 0x21], eax
movzx eax, word [rbx + 0x40]
movsd qword [rbp - 0x29], xmm0
movzx edi, al
movzx esi, byte [rbp - 0x22]
movzx ebx, byte [rbp - 0x23]
movzx r8d, byte [rbp - 0x24]
mov word [rbp - 0x1d], ax
movzx eax, byte [rbp - 0x25]
movzx r11d, byte [rbp - 0x1c]
mov dword [rbp - 0x69], eax
movzx eax, byte [rbp - 0x26]
mov qword [rsp + 0x108], r12
movzx r12d, byte [rbp - 0x20]
mov dword [rbp - 0x65], eax
movzx eax, byte [rbp - 0x27]
mov qword [rsp + 0x110], r13
movzx r13d, byte [rbp - 0x21]
mov dword [rbp - 0x61], eax
movzx eax, byte [rbp - 0x28]
mov qword [rsp + 0x118], r14
movzx r14d, byte [rbp - 0x1e]
mov dword [rbp - 0x5d], eax
movzx eax, byte [rbp - 0x29]
mov qword [rsp + 0xd0], r15
movzx r15d, byte [rbp - 0x1f]
mov dword [rbp - 0x59], eax
nop dword [rax]
nop word [rax + rax]
movzx r10d, dl
mov eax, 0xaaaaaaab
mul r10d
mov eax, edx
shr eax, 4
mov dword [rbp - 0x29], eax
lea eax, [rax + rax*2]
shl eax, 3
sub r10d, eax
movzx eax, r11b
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
mov r11d, edx
sar r11d, 2
mov eax, r11d
shr eax, 0x1f
add r11d, eax
lea eax, [r11 + r11*2]
shl eax, 3
sub r10d, eax
movzx eax, dil
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
mov edi, edx
sar edi, 2
mov eax, edi
shr eax, 0x1f
add edi, eax
lea eax, [rdi + rdi*2]
shl eax, 3
sub r10d, eax
movzx eax, r14b
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
mov r14d, edx
sar r14d, 2
mov eax, r14d
shr eax, 0x1f
add r14d, eax
lea eax, [r14 + r14*2]
shl eax, 3
sub r10d, eax
movzx eax, r15b
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
mov r15d, edx
sar r15d, 2
mov eax, r15d
shr eax, 0x1f
add r15d, eax
lea eax, [r15 + r15*2]
shl eax, 3
sub r10d, eax
movzx eax, r12b
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
mov r12d, edx
sar r12d, 2
mov eax, r12d
shr eax, 0x1f
add r12d, eax
lea eax, [r12 + r12*2]
shl eax, 3
sub r10d, eax
movzx eax, r13b
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
mov r13d, edx
sar r13d, 2
mov eax, r13d
shr eax, 0x1f
add r13d, eax
lea eax, [r13*2]
add eax, r13d
shl eax, 3
sub r10d, eax
movzx eax, sil
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
mov esi, edx
sar esi, 2
mov eax, esi
shr eax, 0x1f
add esi, eax
lea eax, [rsi + rsi*2]
shl eax, 3
sub r10d, eax
movzx eax, bl
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
mov ebx, edx
sar ebx, 2
mov eax, ebx
shr eax, 0x1f
add ebx, eax
lea eax, [rbx + rbx*2]
shl eax, 3
sub r10d, eax
movzx eax, r8b
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x55], edx
lea eax, [rdx + rdx*2]
shl eax, 3
sub r10d, eax
movzx eax, byte [rbp - 0x69]
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x69], edx
lea eax, [rdx + rdx*2]
shl eax, 3
sub r10d, eax
movzx eax, byte [rbp - 0x65]
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x65], edx
lea eax, [rdx + rdx*2]
shl eax, 3
sub r10d, eax
movzx eax, byte [rbp - 0x61]
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov dword [rbp - 0x61], edx
shl eax, 3
sub r10d, eax
movzx eax, byte [rbp - 0x5d]
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x5d], edx
lea eax, [rdx + rdx*2]
shl eax, 3
sub r10d, eax
movzx eax, byte [rbp - 0x59]
shl r10d, 8
xor r10d, eax
mov eax, 0x2aaaaaab
imul r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xffffffe8
mov dword [rbp - 0x59], edx
add r10d, eax
mov eax, 0xaaaaaaab
mul r9d
mov eax, r9d
shr edx, 2
lea r8d, [rdx + rdx*2]
add r8d, r8d
sub eax, r8d
cmp eax, 5
jne 0x1400175c5
dec r9d
mov byte [rcx], 0x2d
dec rcx
mov r8d, dword [rbp - 0x55]
movsxd rax, r10d
movzx edx, byte [rbp + rax + 7]
mov byte [rcx], dl
dec rcx
sub r9d, 1
mov edx, dword [rbp - 0x29]
jns 0x140017330
mov rcx, qword [rbp - 0x51]
lea r8, [rbp - 0x19]
mov r15, qword [rsp + 0xd0]
lea rdx, str.Product_Key
mov r14, qword [rsp + 0x118]
mov r9d, 0x1400
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x108]
call fcn.1400118b0
mov rcx, qword [rbp - 0x49]
jmp 0x14001763a
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140017632
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140017640
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140029990
add rsp, 0xd8
pop rdi
pop rsi
pop rbx
pop rbp
ret