Function at 0x140012b10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140287748]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r15d, r15d
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012f2c
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x208
mov dword [rsp + 0x58], 1
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.BuildLabEx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012f21
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
lea rax, [rbp - 0x70]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x140012bf0
movabs r14, 0x7ffffffffffffffe
cmp rbx, r14
ja 0x140012f64
mov r12d, 0xa
mov qword [rsp + 0x78], 7
cmp rbx, 8
jae 0x140012c43
mov qword [rsp + 0x70], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x60], r15w
jmp 0x140012c92
mov rsi, rbx
or rsi, 7
cmp rsi, r14
jbe 0x140012c54
mov rsi, r14
jmp 0x140012c5b
cmp rsi, r12
cmovb rsi, r12
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x60]
call fcn.1400028e0
mov rdi, rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x70]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r15w
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0x60]
mov r10, qword [rsp + 0x78]
cmp r10, 8
cmovae r9, r8
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140012ce6
mov rcx, rax
mov rdx, r9
mov rbx, r15
cmp word [r9], 0x2e
je 0x140012cd6
cmp rcx, 1
je 0x140012cd9
dec rcx
add rdx, 2
cmp word [rdx], 0x2e
jne 0x140012cc3
mov rbx, rdx
test rbx, rbx
je 0x140012ce6
sub rbx, r9
sar rbx, 1
jmp 0x140012ced
mov rbx, 0xffffffffffffffff
lea rsi, [rbx + 1]
lea rdx, [rsp + 0x60]
cmp r10, 8
cmovae rdx, r8
cmp rsi, rax
jae 0x140012d38
sub rax, rsi
lea rcx, [rdx + rsi*2]
mov rdi, r15
je 0x140012d2b
cmp word [rcx], 0x2e
je 0x140012d28
cmp rax, 1
je 0x140012d2b
dec rax
add rcx, 2
cmp word [rcx], 0x2e
jne 0x140012d15
mov rdi, rcx
test rdi, rdi
je 0x140012d38
sub rdi, rdx
sar rdi, 1
jmp 0x140012d3f
mov rdi, 0xffffffffffffffff
cmp rdi, rbx
jbe 0x140012ee3
cmp rbx, 0xffffffffffffffff
je 0x140012ee3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x70]
cmp rax, rsi
jb 0x140012f6a
sub rdi, rbx
lea rbx, [rdi - 1]
sub rax, rsi
cmp rax, rbx
cmovb rbx, rax
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
lea rsi, [rax + rsi*2]
cmp rbx, r14
ja 0x140012f5e
mov qword [rsp + 0x48], 7
cmp rbx, 8
jae 0x140012dd6
mov qword [rsp + 0x40], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x30], r15w
jmp 0x140012e23
mov rax, rbx
or rax, 7
cmp rax, r14
ja 0x140012ded
mov r14, rax
cmp rax, 0xa
cmovb r14, r12
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x30]
call fcn.1400028e0
mov rdi, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r14
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r15w
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, r12d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140012e86
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012e81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012e81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140113d64
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r15w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140012edf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012eda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012eda
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140113d64
mov eax, ebx
jmp 0x140012f2e
cmp r10, 8
jb 0x140012f21
lea rdx, [r10*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140012f19
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012f19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140113d64
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401140d0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140001450
nop
call fcn.140001450
nop
call fcn.140011a30
int3