Function at 0x14001b880
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov rax, qword [0x1401bce90]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15, r8
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x60], rdx
movzx eax, byte [0x1401c4d64]
neg al
sbb rdi, rdi
add rdi, 0xffffffff80000002
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], r12
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [0x140150020]
test rdx, 0xffffffffffff0000
jne 0x14001b948
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14001b953
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400025a0
jmp 0x14001b953
lea rcx, [rsp + 0x50]
call fcn.140003350
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.14000f690
nop
lea r8, [0x1401c5128]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14000f690
nop
lea r8, [0x14014ffb0]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001a720
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000f690
nop
mov qword [rsp + 0x68], r12
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14001b9dd
mov dword [rsp + 0x40], r12d
mov ecx, r12d
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
test ecx, ecx
setne dil
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
lock add dword [rdx + 0x10], ebx
jg 0x14001b9fe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ba18
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ba31
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ba4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ba64
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14001babe
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001ba7e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ba9d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001bab9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14001bcae
mov dword [rsp + 0x30], r12d
mov r8d, dword [0x1401c4d60]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x15
jne 0x14001bb15
mov ecx, 1
cmp r8d, ecx
jle 0x14001bb0f
nop dword [rax]
mov eax, r8d
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, r8d
jl 0x14001bb00
mov dword [0x1401c4d60], ecx
mov dword [rsp + 0x64], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, qword [rsi]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001bbeb
cmp dword [rsp + 0x60], 4
jne 0x14001bbeb
test rdi, rdi
je 0x14001bb73
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov eax, dword [rsp + 0x30]
mov dword [r15], eax
test rdi, rdi
je 0x14001bb92
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bbb1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001bbcd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bbe4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
jmp 0x14001bcc7
test rdi, rdi
je 0x14001bc01
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov r11d, dword [0x1401c4d60]
lea ecx, [r11 + 1]
imul ecx, r11d
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 0xb
jne 0x14001bc60
mov r8d, r12d
lea r9, [rbp - 0x50]
mov r10d, r11d
nop word [rax + rax]
lea ecx, [r11 + r8]
mov eax, r10d
cdq
idiv ecx
mov dword [r9], edx
inc r8d
dec r10d
lea r9, [r9 + 4]
movsxd rax, r8d
cmp rax, 0x1b
jb 0x14001bc40
test rdi, rdi
je 0x14001bc73
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bc92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14001bcae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001bcc5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400ce2d0
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret