Function at 0x10004bba4
Capabilities:
Compare security identifiers
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f0
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x100152198]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
lea rbx, [0x100153eb8]
mov r15d, 1
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x10004bc1c
test byte [rcx + 0x1c], r15b
je 0x10004bc1c
mov edx, 0x142
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100034784
mov rcx, qword [0x100153eb8]
mov esi, r15d
xor r12d, r12d
mov rax, r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r12
mov ebp, r12d
mov r14b, 2
or r13, 0xffffffffffffffff
cmp rcx, rbx
je 0x10004bc67
test byte [rcx + 0x1c], r14b
je 0x10004bc67
cmp byte [rcx + 0x19], 5
jb 0x10004bc67
mov edx, 0x143
mov r9d, ebp
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
mov rax, qword [rsp + 0x58]
cmp rax, r12
je 0x10004bc7a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x58], r12
mov rcx, qword [rsp + 0x60]
cmp rcx, r12
je 0x10004bc8f
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x60], r12
mov rdi, r12
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r12
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x88], r12
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x10001e5b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x10004bcf4
mov eax, r12d
mov rdi, qword [rsp + 0x88]
mov qword [rsp + 0x90], rdi
cmp eax, r12d
jne 0x10004c3ce
mov dword [rsp + 0x78], 0x100
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
lea r8, [rsp + 0xe0]
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x10004c3ab
cmp eax, r12d
jne 0x10004c359
lea rdx, [0x10001e5b0]
lea rcx, [rsp + 0x40]
call fcn.100035db8
nop
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0xe0]
repne scasw ax, word [rdi]
not rcx
sub rcx, r15
mov r8d, ecx
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.10003579c
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xb8], 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]
cmp eax, r12d
jne 0x10004c25f
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa8], rax
lea rcx, [0x100152100]
mov rax, qword [0x100152100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, [0x10001e610]
lea rcx, [rsp + 0xa8]
call fcn.1000e5910
cmp eax, r12d
je 0x10004beb2
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x10004be3f
test byte [rcx + 0x1c], r14b
je 0x10004be3f
cmp byte [rcx + 0x19], 5
jb 0x10004be3f
mov edx, 0x147
mov r9d, eax
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004be62
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x10004be73
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004be96
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10004c2d1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c2d1
mov qword [rsp + 0x70], r12
lea rdx, [0x10001e918]
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, r12d
cmp eax, r12d
sete bl
cmp ebx, r12d
jne 0x10004c1a8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
mov r8d, r15d
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, r12d
je 0x10004bf66
mov ebx, r15d
mov rcx, qword [0x100153eb8]
lea rdx, [0x100153eb8]
cmp rcx, rdx
je 0x10004c1f1
test byte [rcx + 0x1c], r14b
je 0x10004c1af
cmp byte [rcx + 0x19], 5
jb 0x10004c1af
mov edx, 0x148
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
mov rcx, qword [0x100153eb8]
jmp 0x10004c1af
lea rdx, [0x10001ff30]
lea rcx, [rsp + 0x68]
call fcn.100035db8
nop
mov rdx, qword [rsp + 0x40]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.10003579c
mov qword [rsp + 0x80], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov r8d, r15d
mov edx, 0xc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, r12d
je 0x10004c0a4
mov rcx, qword [0x100153eb8]
lea rbx, [0x100153eb8]
cmp rcx, rbx
je 0x10004c00e
test byte [rcx + 0x1c], r14b
je 0x10004c00e
cmp byte [rcx + 0x19], 5
jb 0x10004c00e
mov edx, 0x149
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004c031
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004c054
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x10004c065
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004c088
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10004c2d1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c2d1
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, r12d
jne 0x10004c16a
mov byte [rsp + 0xc8], r15b
mov byte [rsp + 0xc9], r15b
mov byte [rsp + 0xca], r12b
mov byte [rsp + 0xcb], r12b
mov byte [rsp + 0xcc], r12b
mov byte [rsp + 0xcd], r12b
mov byte [rsp + 0xce], r12b
mov byte [rsp + 0xcf], r15b
mov dword [rsp + 0xd0], r12d
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, r12d
jne 0x10004c16a
mov ebx, r15d
mov rcx, qword [0x100153eb8]
lea rdx, [0x100153eb8]
cmp rcx, rdx
je 0x10004c16a
test byte [rcx + 0x1c], r14b
je 0x10004c16a
cmp byte [rcx + 0x19], 4
jb 0x10004c16a
mov edx, 0x14a
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.10003b958
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004c19a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x48]
mov rcx, qword [0x100153eb8]
jmp 0x10004c1af
mov rdi, qword [rsp + 0x48]
mov rcx, qword [0x100153eb8]
jmp 0x10004c1af
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x10004c1e8
test byte [rcx + 0x1c], r14b
je 0x10004c1e8
cmp byte [rcx + 0x19], 4
jb 0x10004c1e8
mov edx, 0x14b
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0xe0]
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
cmp ebx, r12d
je 0x10004c2e5
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004c20f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x10004c220
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004c243
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10004c2ca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rbx, [0x100153eb8]
jmp 0x10004c2d1
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x10004c292
test byte [rcx + 0x1c], r14b
je 0x10004c292
cmp byte [rcx + 0x19], r14b
jb 0x10004c292
mov edx, 0x146
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.1000347a8
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004c2b5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10004c2d1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c2d1
lea rbx, [0x100153eb8]
add ebp, r15d
mov rax, qword [rsp + 0x58]
mov rcx, qword [0x100153eb8]
jmp 0x10004bc39
mov esi, r15d
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004c306
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x10004c317
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004c33a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10004c3c5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100153eb8]
jmp 0x10004c429
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x10004c390
test byte [rcx + 0x1c], r14b
je 0x10004c390
cmp byte [rcx + 0x19], r14b
jb 0x10004c390
mov edx, 0x145
mov r9d, eax
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
mov rcx, qword [0x100153eb8]
cmp rdi, r12
je 0x10004c429
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100153eb8]
jmp 0x10004c429
mov esi, r12d
cmp rdi, r12
je 0x10004c3c5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100153eb8]
jmp 0x10004c429
mov rcx, qword [0x100153eb8]
jmp 0x10004c429
movzx r9d, ax
or r9d, 0x80070000
cmp eax, r12d
cmovle r9d, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rbx
je 0x10004c414
test byte [rcx + 0x1c], r14b
je 0x10004c414
cmp byte [rcx + 0x19], r14b
jb 0x10004c414
mov edx, 0x144
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
mov rcx, qword [0x100153eb8]
cmp rdi, r12
je 0x10004c429
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100153eb8]
mov rax, qword [rsp + 0x58]
cmp rax, r12
je 0x10004c448
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x58], r12
mov rcx, qword [0x100153eb8]
mov rax, qword [rsp + 0x60]
cmp rax, r12
je 0x10004c467
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x60], r12
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x10004c497
test byte [rcx + 0x1c], r15b
je 0x10004c497
cmp byte [rcx + 0x19], 5
jb 0x10004c497
mov edx, 0x14c
mov r9d, esi
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
mov eax, esi
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.10011be80
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret