Function at 0x18002f4f0
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 [0x18017c280]
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, [0x18015e408]
call fcn.18000b080
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 0x18002f7ac
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 0x18002f7a1
cmp dword [rbp - 0x24], 1
jne 0x18002f7a1
mov eax, dword [rbp - 0x28]
cmp eax, 2
jbe 0x18002f7a1
xorps xmm0, xmm0
mov esi, eax
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
cmp rax, 2
jb 0x18002f643
and rsi, 0xfffffffffffffffe
jne 0x18002f5e9
mov eax, r14d
jmp 0x18002f626
cmp rsi, 0x1000
jb 0x18002f61e
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x18002f7d0
call fcn.180085248
mov rcx, rax
test rax, rax
je 0x18002f7d6
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18002f626
mov rcx, rsi
call fcn.180085248
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.1800b94b0
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 0x18002f6c6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18002f7ac
mov rax, qword [rbp - 0x10]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002f6bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002f7d6
call fcn.180085240
jmp 0x18002f7ac
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, qword [rbp - 0x20]
cmp word [r9], 0
jne 0x18002f717
mov rax, qword [rbp - 0x10]
sub rax, r9
sar rax, 1
lea rdx, [rax + rax]
mov rax, r9
cmp rdx, 0x1000
jb 0x18002f70a
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002f7d6
mov rcx, r9
call fcn.180085240
jmp 0x18002f7ac
mov rdx, qword [rbp - 0x18]
sub rdx, r9
sub rdx, 2
sar rdx, 1
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x18002f757
mov rsi, rdi
cmp rax, 7
jbe 0x18002f73a
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.1800b8e10
mov word [rsi + rbx], r14w
jmp 0x18002f760
mov rcx, rdi
call fcn.180028b10
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18002f7ac
mov rax, qword [rbp - 0x10]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002f6bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002f7d6
jmp 0x18002f6bc
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.180085220
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.180002d50
nop
call fcn.18009a08c
int3