Function at 0x1800405b0
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 [0x1801d0100]
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, [0x1801b6bc0]
call fcn.180007ce0
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 0x18004086c
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 0x180040861
cmp dword [rbp - 0x24], 1
jne 0x180040861
mov eax, dword [rbp - 0x28]
cmp eax, 2
jbe 0x180040861
xorps xmm0, xmm0
mov esi, eax
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
cmp rax, 2
jb 0x180040703
and rsi, 0xfffffffffffffffe
jne 0x1800406a9
mov eax, r14d
jmp 0x1800406e6
cmp rsi, 0x1000
jb 0x1800406de
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x180040890
call fcn.18007bb28
mov rcx, rax
test rax, rax
je 0x180040896
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800406e6
mov rcx, rsi
call fcn.18007bb28
mov qword [rbp - 0x20], rax
lea rbx, [rax + rsi]
mov qword [rbp - 0x10], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1800aba60
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 0x180040786
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18004086c
mov rax, qword [rbp - 0x10]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004077c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040896
call fcn.18007bb20
jmp 0x18004086c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, qword [rbp - 0x20]
cmp word [r9], 0
jne 0x1800407d7
mov rax, qword [rbp - 0x10]
sub rax, r9
sar rax, 1
lea rdx, [rax + rax]
mov rax, r9
cmp rdx, 0x1000
jb 0x1800407ca
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040896
mov rcx, r9
call fcn.18007bb20
jmp 0x18004086c
mov rdx, qword [rbp - 0x18]
sub rdx, r9
sub rdx, 2
sar rdx, 1
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x180040817
mov rsi, rdi
cmp rax, 7
jbe 0x1800407fa
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.1800ab3c0
mov word [rsi + rbx], r14w
jmp 0x180040820
mov rcx, rdi
call fcn.1800252d0
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18004086c
mov rax, qword [rbp - 0x10]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004077c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040896
jmp 0x18004077c
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.18007bb00
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.180001950
nop
call fcn.18008a6e4
int3