Function at 0x180041ff0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b0
mov qword [r11 - 0xa8], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1800c9088]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x110], rcx
lea rcx, [r11 - 0x118]
call fcn.18005cfa8
nop
call fcn.18005d514
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.18000a1a8
nop
lea rdx, str.OBJID
or rdi, 0xffffffffffffffff
mov rax, rdi
xor r14d, r14d
inc rax
cmp word [rdx + rax*2], r14w
jne 0x180042061
mov r8d, eax
lea rcx, [rsp + 0x68]
call fcn.1800148f0
lea r15, [0x1800ab140]
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r14
call fcn.18005d56c
mov r12d, eax
or r12d, 0x20019
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov r9d, r12d
mov r8, qword [rsp + 0x68]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x78]
call fcn.180064050
test eax, eax
jne 0x180042155
lea rsi, [0x1800c9a10]
mov rcx, qword [0x1800c9a10]
cmp rcx, rsi
je 0x180042111
test byte [rcx + 0x1c], 1
je 0x180042111
cmp byte [rcx + 0x19], 2
jb 0x180042111
lea edx, [rax + 0x13]
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
lea r8, [0x1800a2c28]
mov rcx, qword [rcx + 0x10]
call fcn.180001594
nop
mov qword [rsp + 0x78], r15
lea rcx, [rsp + 0x78]
call fcn.1800646d0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x180042141
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0xc0]
call fcn.18005d030
xor al, al
jmp 0x1800426b5
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x64], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x180042241
lea rsi, [0x1800c9a10]
mov rax, qword [0x1800c9a10]
cmp rax, rsi
je 0x1800421fd
test byte [rax + 0x1c], 1
je 0x1800421fd
cmp byte [rax + 0x19], 2
jb 0x1800421fd
mov rbx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, SafeArrayUnaccessData
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1800a2c28]
mov rcx, qword [0x1800c9a10]
mov rcx, qword [rcx + 0x10]
call fcn.180001594
nop
mov qword [rsp + 0x78], r15
lea rcx, [rsp + 0x78]
call fcn.1800646d0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x18004222d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0xc0]
call fcn.18005d030
xor al, al
jmp 0x1800426b5
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov edx, eax
mov word [rsp + 0x60], r14w
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x118]
call fcn.180042730
nop
mov rcx, qword [rsp + 0x118]
mov r15, rcx
mov r13d, r14d
lea rsi, [0x1800c9a10]
mov bl, byte [rsp + 0x60]
cmp r13d, dword [rsp + 0x70]
jae 0x180042608
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0xa8], eax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xa8]
mov r8, r15
mov edx, r13d
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x8c], eax
test eax, eax
je 0x18004230e
mov rcx, qword [0x1800c9a10]
cmp rcx, rsi
je 0x1800425f8
test byte [rcx + 0x1c], 1
je 0x1800425f8
cmp byte [rcx + 0x19], 3
jb 0x1800425f8
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
lea r8, [0x1800a2c28]
mov rcx, qword [rcx + 0x10]
call fcn.180001ae4
jmp 0x1800425f8
lea rdx, [rsp + 0x160]
mov rcx, r15
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jns 0x18004234e
mov rcx, qword [0x1800c9a10]
cmp rcx, rsi
je 0x1800425f8
test byte [rcx + 0x1c], 1
je 0x1800425f8
cmp byte [rcx + 0x19], 3
jb 0x1800425f8
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
jmp 0x1800422f9
lea rax, [0x1800ab140]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], r14
and qword [rsp + 0xa0], 0
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov r9d, r12d
mov r8, r15
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x90]
call fcn.180064050
test eax, eax
jne 0x1800423f2
mov rcx, qword [0x1800c9a10]
cmp rcx, rsi
je 0x1800423d1
test byte [rcx + 0x1c], 1
je 0x1800423d1
cmp byte [rcx + 0x19], 3
jb 0x1800423d1
lea edx, [rax + 0x17]
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x20], eax
mov r9, r15
lea r8, [0x1800a2c28]
mov rcx, qword [rcx + 0x10]
call fcn.180001594
nop
lea rax, [0x1800ab140]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x90]
call fcn.1800646d0
jmp 0x1800425f8
call fcn.180001d84
mov rcx, rax
test rax, rax
je 0x1800426e2
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0xb0], rax
lea r8, [rsp + 0xb0]
lea rdx, str.InProc64
lea rcx, [rsp + 0x90]
call fcn.180064714
test eax, eax
jne 0x180042495
mov rcx, qword [0x1800c9a10]
cmp rcx, rsi
je 0x18004246d
test byte [rcx + 0x1c], 1
je 0x18004246d
cmp byte [rcx + 0x19], 3
jb 0x18004246d
lea edx, [rax + 0x18]
mov qword [rsp + 0x20], r15
lea r9, str.InProc64
lea r8, [0x1800a2c28]
mov rcx, qword [rcx + 0x10]
call fcn.18000c17c
nop
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x180042490
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1800423d1
movups xmm0, xmmword [rsp + 0x160]
movdqu xmmword [rsp + 0x170], xmm0
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
mov eax, dword [rdi - 8]
shr eax, 0x1f
test al, al
jne 0x1800424d5
cmp rcx, qword [rdi - 0x18]
jne 0x1800424d5
lea r14, [rdi - 0x18]
lock inc dword [rdi - 8]
jmp 0x18004250c
mov rax, qword [rcx]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov r14, rax
test rax, rax
je 0x1800426ed
mov eax, dword [rdi - 0x10]
mov dword [r14 + 8], eax
mov r8, rdi
lea rcx, [r14 + 0x18]
mov r9d, dword [rdi - 0x10]
inc r9d
movsxd rdx, r9d
call fcn.1800018f0
lea rax, [r14 + 0x18]
mov qword [rsp + 0x180], rax
mov rcx, qword [rsp + 0x110]
add rcx, 8
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x170]
lea rdx, [rsp + 0x150]
call fcn.1800428b8
nop
mov rdx, qword [rsp + 0x180]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
xor r14d, r14d
sub eax, 1
jg 0x180042564
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp byte [rsp + 0x158], r14b
je 0x18004258d
mov rcx, qword [0x1800c9a10]
cmp rcx, rsi
je 0x1800425bc
test byte [rcx + 0x1c], 1
je 0x1800425bc
cmp byte [rcx + 0x19], 4
jb 0x1800425bc
mov edx, 0x19
jmp 0x1800425aa
mov rcx, qword [0x1800c9a10]
cmp rcx, rsi
je 0x1800425bc
test byte [rcx + 0x1c], 1
je 0x1800425bc
cmp byte [rcx + 0x19], 4
jb 0x1800425bc
mov edx, 0x1a
lea r9, [rsp + 0x160]
mov rcx, qword [rcx + 0x10]
call fcn.18002da0c
nop
or eax, 0xffffffff
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x1800425d8
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [0x1800ab140]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x90]
call fcn.1800646d0
or rdi, 0xffffffffffffffff
inc r13d
mov rcx, qword [rsp + 0x118]
jmp 0x18004227f
test rcx, rcx
je 0x18004265d
mov rax, qword [rsp + 0x128]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180042644
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800426f3
call fcn.180045d54
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x118], xmm0
mov qword [rsp + 0x128], r14
lea rax, [0x1800ab140]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.1800646d0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x180042695
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0xc0]
call fcn.18005d030
mov al, 1
jmp 0x1800426b5
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.180045d30
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80004005
call fcn.180001b3c
nop
call fcn.180001a24
nop
call fcn.18004c3ec
int3