Function at 0x140013140
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1401c61a8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, rcx
mov qword [rbp - 0x41], rcx
xor r14d, r14d
mov dword [rbp - 0x39], r14d
mov qword [rbp - 0x11], r14
mov r15d, r14d
mov qword [rbp - 1], r14
mov r13d, 0xf
mov qword [rbp + 7], r13
mov byte [rbp - 0x11], r14b
mov qword [rbp - 0x41], r14
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001343e
mov dword [rbp - 0x49], r14d
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProductId
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001336b
mov esi, dword [rbp - 0x49]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], r14
xor edi, edi
test rsi, rsi
je 0x140013271
cmp rsi, 0x1000
jb 0x140013244
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x1400135a0
call fcn.140158280
test rax, rax
je 0x140013356
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14001324f
mov rcx, rsi
call fcn.140158280
mov rdi, rax
mov rbx, rdi
mov qword [rbp - 0x31], rbx
lea r14, [rdi + rsi]
mov qword [rbp - 0x21], r14
mov r8, rsi
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x29], r14
jmp 0x140013275
mov rbx, qword [rbp - 0x31]
test rdi, rdi
je 0x14001332d
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProductId
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001332d
mov r8d, dword [rbp - 0x49]
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.140013d90
lea rcx, [rbp - 0x11]
cmp rcx, rax
je 0x1400132ee
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r13, qword [rbp + 7]
mov r15, qword [rbp - 1]
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x14001332d
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013327
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013327
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401582c0
nop
test rbx, rbx
je 0x140013368
sub r14, rbx
mov rax, rbx
cmp r14, 0x1000
jb 0x14001335d
add r14, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001335d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r14
mov rcx, rbx
call fcn.1401582c0
xor r14d, r14d
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15, r15
je 0x14001343e
lea rbx, [rbp - 0x11]
mov rdi, qword [rbp - 0x11]
cmp r13, 0x10
cmovae rbx, rdi
cmp r15, 0x10
jae 0x1400133b5
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x27], 0xf
mov qword [rbp + 0x1f], r15
lea rax, [rbp + 0xf]
mov ebx, 2
jmp 0x140013481
mov rsi, r15
or rsi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
cmova rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x140013409
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001359a
mov rcx, rax
call fcn.140158280
mov rcx, rax
test rax, rax
je 0x140013523
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140013418
test rcx, rcx
je 0x140013415
call fcn.140158280
jmp 0x140013418
mov rax, r14
mov qword [rbp + 0xf], rax
lea r8, [r15 + 1]
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x1f], r15
lea rax, [rbp + 0xf]
mov ebx, 2
jmp 0x140013481
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x19], 0xf
mov qword [rbp - 0x21], 7
mov eax, dword [str.UNKNOWN]
mov dword [rbp - 0x31], eax
movzx eax, word [0x14016c3ac]
mov word [rbp - 0x2d], ax
movzx eax, byte [0x14016c3ae]
mov byte [rbp - 0x2b], al
mov byte [rbp - 0x2a], 0
lea rax, [rbp - 0x31]
mov ebx, 1
mov rdi, qword [rbp - 0x11]
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r12 + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or ebx, 4
test bl, 2
je 0x1400134ec
and ebx, 0xfffffffd
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x1400134ec
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400134e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400134e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401582c0
nop
test bl, 1
je 0x140013530
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140013530
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001352a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001352a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401582c0
nop
cmp r13, 0x10
jb 0x14001356a
lea rdx, [r13 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140013562
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013562
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1401582c0
mov rax, r12
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140158360
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140008530
nop
call fcn.140008530
int3