Function at 0x140018928
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea rdi, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x14001899c
test byte [rcx + 0x1c], 1
je 0x14001899c
mov edx, 0x141
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
mov rcx, qword [0x14014dd40]
mov r14d, 1
xor r12d, r12d
mov eax, r12d
mov qword [rsp + 0x48], rax
mov r15d, r12d
or r13, 0xffffffffffffffff
mov sil, 2
cmp rcx, rdi
je 0x1400189e5
test byte [rcx + 0x1c], sil
je 0x1400189e5
cmp byte [rcx + 0x19], 5
jb 0x1400189e5
mov edx, 0x142
mov r9d, r15d
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400189f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], r12
mov rbx, r12
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x68], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x14011b750]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018e2f
mov eax, r12d
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x70], rbx
test eax, eax
jne 0x140018e2f
mov dword [rsp + 0x58], pe_nt_image_headers64
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x50]
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140018e25
test eax, eax
jne 0x140018df3
lea rdx, [0x14011b750]
lea rcx, [rsp + 0x40]
call fcn.140004d1c
nop
lea rcx, [rbp - 0x50]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140018aaf
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400046e8
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018cd6
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, [0x14011b720]
lea rcx, [rbp - 0x70]
call fcn.1400bdba4
test eax, eax
je 0x140018bc8
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x140018b7d
test byte [rcx + 0x1c], sil
je 0x140018b7d
cmp byte [rcx + 0x19], 5
jb 0x140018b7d
mov edx, 0x146
mov r9d, eax
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
nop
mov rsi, qword [rsp + 0x60]
mov eax, r13d
lock xadd dword [rsi - 8], eax
add eax, r13d
test eax, eax
jg 0x140018baf
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140018d09
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140018d09
mov qword [rbp - 0x78], r12
lea rdx, [0x14011a1b8]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, r12d
test eax, eax
sete dil
test edi, edi
jne 0x140018c60
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x78]
lea eax, [rdi + 1]
mov r8d, eax
mov edx, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x140018c60
mov edi, 1
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x140018ca4
test byte [rcx + 0x1c], sil
je 0x140018c67
cmp byte [rcx + 0x19], 5
jb 0x140018c67
mov edx, 0x147
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.1400056b0
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x140018c9c
test byte [rcx + 0x1c], sil
je 0x140018c9c
cmp byte [rcx + 0x19], 4
jb 0x140018c9c
mov edx, 0x148
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x50]
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.1400056b0
test edi, edi
je 0x140018d68
lea rsi, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rsi + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140018baf
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, rsi
jmp 0x140018ba9
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x140018d09
test byte [rcx + 0x1c], sil
je 0x140018d09
cmp byte [rcx + 0x19], sil
jb 0x140018d09
mov edx, 0x145
mov r9, qword [rsp + 0x40]
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.140003638
nop
mov rsi, qword [rsp + 0x40]
add rsi, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rsi + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140018d3d
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, rsi
mov rcx, rdi
call rbx
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140018d4d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r15d
mov rax, qword [rsp + 0x48]
mov rcx, qword [0x14014dd40]
lea rdi, [0x14014dd40]
jmp 0x1400189b4
mov r14d, 1
lea rsi, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rsi + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140018d9d
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, rsi
mov rcx, rdi
call rbx
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140018dae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rsi, qword [rsp + 0x40]
mov eax, r13d
lock xadd dword [rsi - 8], eax
add eax, r13d
test eax, eax
jg 0x140018de0
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140018e82
jmp 0x140018e7c
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x140018e74
test byte [rcx + 0x1c], sil
je 0x140018e74
cmp byte [rcx + 0x19], sil
jb 0x140018e74
mov edx, 0x144
mov r9d, eax
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x140018e6d
mov r14d, r12d
test rbx, rbx
jne 0x140018e79
jmp 0x140018e82
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x140018e74
test byte [rcx + 0x1c], sil
je 0x140018e74
cmp byte [rcx + 0x19], sil
jb 0x140018e74
mov edx, 0x143
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov rcx, qword [0x14014dd40]
test rbx, rbx
je 0x140018e89
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x14014dd40]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140018ea8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], r12
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x140018ed8
test byte [rcx + 0x1c], 1
je 0x140018ed8
cmp byte [rcx + 0x19], 5
jb 0x140018ed8
mov edx, 0x149
mov r9d, r14d
lea r8, [0x14011b7b0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov eax, r14d
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140106ed0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret