Function at 0x14006d950
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140111200]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerVirtualDesktops
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006da18
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x30], 0x10
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CurrentVirtualDesktop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006da18
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x70], xmm0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14006dbba
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rsp + 0x70]
jmp 0x14006dbba
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14006da28
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x14006db00
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x80]
call fcn.1400a18d0
mov r9d, dword [rsp + 0x30]
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionExplorerSessionInfo_dVirtualDesktops
mov edx, 0x100
lea rcx, [rbp - 0x80]
call fcn.1400057c0
test eax, eax
js 0x14006db00
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006daf0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x38], 0x10
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CurrentVirtualDesktop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006daf0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x40], xmm0
mov dil, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14006db00
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x14006db0f
movups xmm0, xmmword [rsp + 0x40]
jmp 0x14006dbba
lea rdx, [rsp + 0x40]
call fcn.14006dbf0
nop
mov rcx, qword [rsp + 0x40]
movzx edx, byte [rsp + 0x58]
test dl, dl
je 0x14006db78
mov rax, qword [rsp + 0x48]
sub rax, rcx
sar rax, 4
test rax, rax
je 0x14006db78
movups xmm0, xmmword [rcx]
movups xmmword [rbx], xmm0
test rcx, rcx
je 0x14006dbbd
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006db71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006dbe4
call fcn.14009ecd8
jmp 0x14006dbbd
test dl, dl
je 0x14006dbb3
test rcx, rcx
je 0x14006dbb3
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006dbae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006dbe4
call fcn.14009ecd8
movups xmm0, xmmword [0x1400e6558]
movups xmmword [rbx], xmm0
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14009ea10
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400a5cd4
int3