Function at 0x10004b938
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 [0x100151198]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
lea rbx, [0x100152eb8]
mov r15d, 1
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x10004b9b0
test byte [rcx + 0x1c], r15b
je 0x10004b9b0
mov edx, 0x142
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100034764
mov rcx, qword [0x100152eb8]
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 0x10004b9fb
test byte [rcx + 0x1c], r14b
je 0x10004b9fb
cmp byte [rcx + 0x19], 5
jb 0x10004b9fb
mov edx, 0x143
mov r9d, ebp
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
mov rax, qword [rsp + 0x58]
cmp rax, r12
je 0x10004ba0e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x58], r12
mov rcx, qword [rsp + 0x60]
cmp rcx, r12
je 0x10004ba23
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 0x10004ba88
mov eax, r12d
mov rdi, qword [rsp + 0x88]
mov qword [rsp + 0x90], rdi
cmp eax, r12d
jne 0x10004c162
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 0x10004c13f
cmp eax, r12d
jne 0x10004c0ed
lea rdx, [0x10001e5b0]
lea rcx, [rsp + 0x40]
call fcn.100035d98
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.10003577c
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 0x10004bff3
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa8], rax
lea rcx, [0x100151100]
mov rax, qword [0x100151100]
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.1000e52b8
cmp eax, r12d
je 0x10004bc46
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x10004bbd3
test byte [rcx + 0x1c], r14b
je 0x10004bbd3
cmp byte [rcx + 0x19], 5
jb 0x10004bbd3
mov edx, 0x147
mov r9d, eax
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
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 0x10004bbf6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x10004bc07
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 0x10004bc2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10004c065
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c065
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 0x10004bf3c
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 0x10004bcfa
mov ebx, r15d
mov rcx, qword [0x100152eb8]
lea rdx, [0x100152eb8]
cmp rcx, rdx
je 0x10004bf85
test byte [rcx + 0x1c], r14b
je 0x10004bf43
cmp byte [rcx + 0x19], 5
jb 0x10004bf43
mov edx, 0x148
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.10009b2f4
mov rcx, qword [0x100152eb8]
jmp 0x10004bf43
lea rdx, [0x10001ff30]
lea rcx, [rsp + 0x68]
call fcn.100035d98
nop
mov rdx, qword [rsp + 0x40]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.10003577c
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 0x10004be38
mov rcx, qword [0x100152eb8]
lea rbx, [0x100152eb8]
cmp rcx, rbx
je 0x10004bda2
test byte [rcx + 0x1c], r14b
je 0x10004bda2
cmp byte [rcx + 0x19], 5
jb 0x10004bda2
mov edx, 0x149
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.10009b2f4
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 0x10004bdc5
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 0x10004bde8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x10004bdf9
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 0x10004be1c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10004c065
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c065
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, r12d
jne 0x10004befe
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 0x10004befe
mov ebx, r15d
mov rcx, qword [0x100152eb8]
lea rdx, [0x100152eb8]
cmp rcx, rdx
je 0x10004befe
test byte [rcx + 0x1c], r14b
je 0x10004befe
cmp byte [rcx + 0x19], 4
jb 0x10004befe
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.10003b878
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 0x10004bf2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x48]
mov rcx, qword [0x100152eb8]
jmp 0x10004bf43
mov rdi, qword [rsp + 0x48]
mov rcx, qword [0x100152eb8]
jmp 0x10004bf43
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x10004bf7c
test byte [rcx + 0x1c], r14b
je 0x10004bf7c
cmp byte [rcx + 0x19], 4
jb 0x10004bf7c
mov edx, 0x14b
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0xe0]
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.10009b2f4
cmp ebx, r12d
je 0x10004c079
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004bfa3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x10004bfb4
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 0x10004bfd7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10004c05e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rbx, [0x100152eb8]
jmp 0x10004c065
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x10004c026
test byte [rcx + 0x1c], r14b
je 0x10004c026
cmp byte [rcx + 0x19], r14b
jb 0x10004c026
mov edx, 0x146
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100034788
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 0x10004c049
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10004c065
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c065
lea rbx, [0x100152eb8]
add ebp, r15d
mov rax, qword [rsp + 0x58]
mov rcx, qword [0x100152eb8]
jmp 0x10004b9cd
mov esi, r15d
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r12d
jg 0x10004c09a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x10004c0ab
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 0x10004c0ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10004c159
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100152eb8]
jmp 0x10004c1bd
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x10004c124
test byte [rcx + 0x1c], r14b
je 0x10004c124
cmp byte [rcx + 0x19], r14b
jb 0x10004c124
mov edx, 0x145
mov r9d, eax
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
mov rcx, qword [0x100152eb8]
cmp rdi, r12
je 0x10004c1bd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100152eb8]
jmp 0x10004c1bd
mov esi, r12d
cmp rdi, r12
je 0x10004c159
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100152eb8]
jmp 0x10004c1bd
mov rcx, qword [0x100152eb8]
jmp 0x10004c1bd
movzx r9d, ax
or r9d, 0x80070000
cmp eax, r12d
cmovle r9d, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rbx
je 0x10004c1a8
test byte [rcx + 0x1c], r14b
je 0x10004c1a8
cmp byte [rcx + 0x19], r14b
jb 0x10004c1a8
mov edx, 0x144
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
mov rcx, qword [0x100152eb8]
cmp rdi, r12
je 0x10004c1bd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100152eb8]
mov rax, qword [rsp + 0x58]
cmp rax, r12
je 0x10004c1dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x58], r12
mov rcx, qword [0x100152eb8]
mov rax, qword [rsp + 0x60]
cmp rax, r12
je 0x10004c1fb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x60], r12
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x10004c22b
test byte [rcx + 0x1c], r15b
je 0x10004c22b
cmp byte [rcx + 0x19], 5
jb 0x10004c22b
mov edx, 0x14c
mov r9d, esi
lea r8, [0x10001e5a0]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
mov eax, esi
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.10011b980
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