Function at 0x18000aa10
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov qword [rbp + 0x2f], 0xfffffffffffffffe
mov qword [rsp + 0xf0], rbx
mov r12, rcx
xor r13d, r13d
mov dword [rbp + 0x6f], r13d
lea rcx, [0x1800509f0]
mov rax, qword [0x1800509f0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x21], rax
lea rcx, [0x1800509f0]
mov rax, qword [0x1800509f0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x21]
call fcn.18000a8c0
test al, al
jne 0x18000aad7
lea rdx, [0x180038c44]
mov rcx, r12
call fcn.18000a050
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000aab3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18000aacf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r12
jmp 0x18000b094
lea rcx, [0x1800509f0]
mov rax, qword [0x1800509f0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x29], rbx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
test rdx, 0xffffffffffff0000
jne 0x18000ab22
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.180001260
test rax, rax
je 0x18000ab35
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.1800057c0
jmp 0x18000ab31
mov r8d, 0x38
lea rcx, [rbp - 0x29]
call fcn.180005490
mov rbx, qword [rbp - 0x29]
mov qword [rbp - 9], r13
mov dword [rbp - 1], r13d
mov qword [rbp + 7], r13
mov r9d, 0x20019
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 9]
call fcn.180001320
test eax, eax
je 0x18000abc0
lea rdx, [0x180038c44]
mov rcx, r12
call fcn.18000a050
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18000ab7e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000ab9c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000abbb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x18000aab3
mov esi, r13d
lea rcx, [0x1800509f0]
mov rax, qword [0x1800509f0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x49], rax
mov edx, 0x104
mov dword [rbp + 0x6f], edx
or ebx, 0xffffffff
test edx, edx
js 0x18000b089
mov rax, qword [rbp - 0x49]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or eax, ecx
jge 0x18000ac0d
lea rcx, [rbp - 0x49]
call fcn.1800023c0
lea rax, [rbp + 0x27]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x6f]
mov r8, qword [rbp - 0x49]
mov edx, esi
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
test eax, eax
jne 0x18000ac44
mov dil, 1
jmp 0x18000ac47
xor dil, dil
mov rcx, qword [rbp - 0x49]
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x18000b07e
mov rcx, qword [rbp - 0x49]
cmp eax, dword [rcx - 0xc]
jg 0x18000b07e
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbp - 0x49]
mov word [rax + rcx*2], r13w
test dil, dil
je 0x18000affc
mov dword [rbp + 0x6f], 0x104
mov qword [rbp - 0x19], r13
lea rdx, [rbp - 0x19]
mov rcx, qword [rbp - 0x49]
call sub.ADVAPI32.dll_ConvertStringSidToSidW
cmp qword [rbp - 0x19], 0
jne 0x18000aca9
mov edx, dword [rbp + 0x6f]
jmp 0x18000abe7
lea rcx, [0x1800509f0]
mov rax, qword [0x1800509f0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x41], rax
lea rcx, [0x1800509f0]
mov rax, qword [0x1800509f0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x39], rax
mov dword [rbp + 0x7f], r13d
mov dword [rbp + 0x77], r13d
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x7f]
xor r8d, r8d
mov rdx, qword [rbp - 0x19]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000ae16
lea rax, [rbp - 0x39]
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], r13
mov dword [rbp + 0x1f], ebx
mov edx, dword [rbp + 0x77]
test edx, edx
js 0x18000af16
mov rdi, qword [rbp - 0x39]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, edx
or eax, ecx
jge 0x18000ad58
lea rcx, [rbp - 0x39]
call fcn.1800023c0
mov rdi, qword [rbp - 0x39]
mov qword [rbp + 0x17], rdi
mov edx, dword [rbp + 0x7f]
test edx, edx
js 0x18000af0b
mov r8, qword [rbp - 0x41]
mov ecx, 1
sub ecx, dword [r8 - 8]
mov eax, dword [r8 - 0xc]
sub eax, edx
or eax, ecx
jge 0x18000ad8b
lea rcx, [rbp - 0x41]
call fcn.1800023c0
mov r8, qword [rbp - 0x41]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x7f]
mov rdx, qword [rbp - 0x19]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov rcx, qword [rbp - 0x41]
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x18000af00
mov rcx, qword [rbp - 0x41]
cmp eax, dword [rcx - 0xc]
jg 0x18000af00
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbp - 0x41]
mov word [rax + rcx*2], r13w
mov rcx, qword [rbp - 0x39]
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x18000aef5
mov rcx, qword [rbp - 0x39]
cmp eax, dword [rcx - 0xc]
jg 0x18000aef5
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbp - 0x39]
mov word [rax + rcx*2], r13w
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11d, r13d
mov rax, qword [rbp - 0x41]
test rax, rax
setne r11b
test r11d, r11d
je 0x18000aff1
mov rcx, qword [rbp - 0x31]
sub rax, rcx
nop
movzx edx, word [rcx]
cmp dx, word [rcx + rax]
jne 0x18000ae57
add rcx, 2
test dx, dx
jne 0x18000ae40
mov eax, r13d
jmp 0x18000ae5c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
mov rcx, qword [rbp - 0x39]
test al, al
je 0x18000aeac
mov edx, r13d
mov rax, qword [rbp - 0x21]
test rax, rax
setne dl
test edx, edx
je 0x18000afe6
mov rdx, rcx
sub rax, rcx
movzx r8d, word [rdx]
cmp r8w, word [rdx + rax]
jne 0x18000ae9e
add rdx, 2
test r8w, r8w
jne 0x18000ae84
mov eax, r13d
jmp 0x18000aea3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x18000af21
lea rdx, [rcx - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000aec7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jle 0x18000aee4
mov edx, dword [rbp + 0x6f]
jmp 0x18000abe7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov edx, dword [rbp + 0x6f]
jmp 0x18000abe7
mov ecx, 0x80070057
call fcn.1800011a0
nop
mov ecx, 0x80070057
call fcn.1800011a0
int3
mov ecx, 0x80070057
call fcn.1800011a0
nop
mov ecx, 0x80070057
call fcn.1800011a0
int3
mov rcx, qword [rbp - 0x49]
add rcx, 0xffffffffffffffe8
call fcn.180002420
add rax, 0x18
mov qword [r12], rax
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000af55
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000af74
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000af93
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18000afa3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000afc2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000afe1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x18000aab3
mov ecx, 0x80004005
call fcn.1800011a0
int3
mov ecx, 0x80004005
call fcn.1800011a0
nop
lea rdx, [0x180038c44]
mov rcx, r12
call fcn.18000a050
nop
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b02b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18000b03b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b05a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b079
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x18000aab3
mov ecx, 0x80070057
call fcn.1800011a0
int3
mov ecx, 0x80070057
call fcn.1800011a0
nop
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret