Function at 0x14011c330
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 0x14011c37c
xor eax, eax
jmp 0x14011c884
call fcn.14011bff0
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 0x14011c4d7
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 0x14011c43a
mov dword [rsp + 0xa8], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xa8]
call fcn.1400b0fac
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 0x14011c484
mov dword [rsp + 0xac], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xac]
call fcn.1400b0fac
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 0x14011c4d5
mov dword [rsp + 0xb0], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xb0]
call fcn.1400b0fac
jmp 0x14011c4f6
mov dword [rsp + 0xb4], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xb4]
call fcn.1400b0fac
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x14011c529
mov dword [rsp + 0xb8], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xb8]
call fcn.1400b0fac
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 0x14011c56c
mov dword [rsp + 0xbc], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xbc]
call fcn.1400b0fac
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400a87c0
mov dword [rsp + 0x64], 8
cmp qword [rsp + 0x80], 0
je 0x14011c5d3
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 0x14011c5d3
mov dword [rsp + 0xc0], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xc0]
call fcn.1400b0fac
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 0x14011c634
mov dword [rsp + 0xc4], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xc4]
call fcn.1400b0fac
mov r8d, 2
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x14011c66c
mov dword [rsp + 0xc8], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xc8]
call fcn.1400b0fac
mov r9d, 1
mov r8, qword [rsp + 0x58]
mov edx, 0x10000003
mov rcx, qword [rsp + 0x38]
call fcn.14011c160
cmp dword [rsp + 0x70], 0
je 0x14011c76f
cmp dword [rsp + 0x60], 0
je 0x14011c76f
mov dword [rsp + 0x30], 0
jmp 0x14011c6b1
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x14011c76f
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 0x14011c6fc
mov dword [rsp + 0xcc], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xcc]
call fcn.1400b0fac
mov rdx, qword [rsp + 0xa0]
add rdx, 8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14011c719
jmp 0x14011c6a6
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 0x14011c76a
mov dword [rsp + 0xd0], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xd0]
call fcn.1400b0fac
jmp 0x14011c6a6
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 0x14011c7aa
mov dword [rsp + 0xd4], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xd4]
call fcn.1400b0fac
mov r8, qword [rsp + 0x48]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x14011c7e2
mov dword [rsp + 0xd8], 0
lea rdx, [0x1402a35f8]
lea rcx, [rsp + 0xd8]
call fcn.1400b0fac
mov dword [rsp + 0x50], 1
cmp qword [rsp + 0x38], 0
je 0x14011c808
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 0x14011c82c
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 0x14011c84a
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 0x14011c868
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