Function at 0x14011dc20
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xf0
mov qword [rsp + 0xe0], 0xfffffffffffffffe
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x60019
xor r8d, r8d
mov rdx, qword [rsp + 0x100]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14011dc6c
xor eax, eax
jmp 0x14011e174
call fcn.14011d8e0
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x98], 0
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x7c], 4
lea r9, [rsp + 0x88]
mov r8, qword [rsp + 0x90]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
cmp eax, 0x7a
jne 0x14011ddc7
mov ebx, dword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x14011dd2a
mov dword [rsp + 0xa8], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xa8]
call fcn.1400b20ec
mov ebx, dword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14011dd74
mov dword [rsp + 0xac], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xac]
call fcn.1400b20ec
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x98], eax
lea r9, [rsp + 0x88]
mov r8, qword [rsp + 0x90]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
test eax, eax
je 0x14011ddc5
mov dword [rsp + 0xb0], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xb0]
call fcn.1400b20ec
jmp 0x14011dde6
mov dword [rsp + 0xb4], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xb4]
call fcn.1400b20ec
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x14011de19
mov dword [rsp + 0xb8], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xb8]
call fcn.1400b20ec
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x14011de5c
mov dword [rsp + 0xbc], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xbc]
call fcn.1400b20ec
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400a9850
mov dword [rsp + 0x64], 8
cmp qword [rsp + 0x80], 0
je 0x14011dec3
mov r9d, 2
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x14011dec3
mov dword [rsp + 0xc0], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xc0]
call fcn.1400b20ec
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, eax
mov eax, dword [rsp + 0x64]
lea rax, [rax + rcx + 8]
mov dword [rsp + 0x78], eax
mov ebx, dword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14011df24
mov dword [rsp + 0xc4], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xc4]
call fcn.1400b20ec
mov r8d, 2
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x14011df5c
mov dword [rsp + 0xc8], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xc8]
call fcn.1400b20ec
mov r9d, 1
mov r8, qword [rsp + 0x58]
mov edx, 0x10000003
mov rcx, qword [rsp + 0x38]
call fcn.14011da50
cmp dword [rsp + 0x70], 0
je 0x14011e05f
cmp dword [rsp + 0x60], 0
je 0x14011e05f
mov dword [rsp + 0x30], 0
jmp 0x14011dfa1
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x14011e05f
lea r8, [rsp + 0xa0]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x14011dfec
mov dword [rsp + 0xcc], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xcc]
call fcn.1400b20ec
mov rdx, qword [rsp + 0xa0]
add rdx, 8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14011e009
jmp 0x14011df96
mov rax, qword [rsp + 0xa0]
movzx eax, word [rax + 2]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xa0]
mov r8d, 0xffffffff
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x14011e05a
mov dword [rsp + 0xd0], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xd0]
call fcn.1400b20ec
jmp 0x14011df96
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x14011e09a
mov dword [rsp + 0xd4], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xd4]
call fcn.1400b20ec
mov r8, qword [rsp + 0x48]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x14011e0d2
mov dword [rsp + 0xd8], 0
lea rdx, [0x1402b6798]
lea rcx, [rsp + 0xd8]
call fcn.1400b20ec
mov dword [rsp + 0x50], 1
cmp qword [rsp + 0x38], 0
je 0x14011e0f8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x90], 0
je 0x14011e11c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x48], 0
je 0x14011e13a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x58], 0
je 0x14011e158
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
add rsp, 0xf0
pop rbx
ret