Function at 0x18002e320
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x18021a280]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov qword [rbp - 0x38], rcx
mov dword [rbp - 0x40], 1
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x24], r14d
mov dword [rbp - 0x28], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
mov r8d, 3
lea rdx, [0x1801fb2b0]
call fcn.180008f40
nop
mov dword [rbp - 0x40], 1
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18002e5dc
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x24]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18002e5d1
cmp dword [rbp - 0x24], 1
jne 0x18002e5d1
mov eax, dword [rbp - 0x28]
cmp eax, 2
jbe 0x18002e5d1
xorps xmm0, xmm0
mov esi, eax
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
cmp rax, 2
jb 0x18002e473
and rsi, 0xfffffffffffffffe
jne 0x18002e419
mov eax, r14d
jmp 0x18002e456
cmp rsi, 0x1000
jb 0x18002e44e
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x18002e600
call fcn.18008a538
mov rcx, rax
test rax, rax
je 0x18002e606
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18002e456
mov rcx, rsi
call fcn.18008a538
mov qword [rbp - 0x20], rax
lea rbx, [rsi + rax]
mov qword [rbp - 0x10], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1800b9d20
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x24]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x30]
test eax, eax
je 0x18002e4f6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18002e5dc
mov rax, qword [rbp - 0x10]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002e4ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002e606
call fcn.18008a530
jmp 0x18002e5dc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, qword [rbp - 0x20]
cmp word [r9], 0
jne 0x18002e547
mov rax, qword [rbp - 0x10]
sub rax, r9
sar rax, 1
lea rdx, [rax + rax]
mov rax, r9
cmp rdx, 0x1000
jb 0x18002e53a
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002e606
mov rcx, r9
call fcn.18008a530
jmp 0x18002e5dc
mov rdx, qword [rbp - 0x18]
sub rdx, r9
sub rdx, 2
sar rdx, 1
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x18002e587
mov rsi, rdi
cmp rax, 7
jbe 0x18002e56a
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.1800b9680
mov word [rsi + rbx], r14w
jmp 0x18002e590
mov rcx, rdi
call fcn.180029400
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18002e5dc
mov rax, qword [rbp - 0x10]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002e4ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002e606
jmp 0x18002e4ec
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18008a510
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.180002b80
nop
call fcn.1800997f4
int3