Function at 0x140116d00
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 0x140116d4c
xor eax, eax
jmp 0x140117254
call fcn.1401169c0
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 0x140116ea7
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 0x140116e0a
mov dword [rsp + 0xa8], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xa8]
call fcn.1400b091c
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 0x140116e54
mov dword [rsp + 0xac], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xac]
call fcn.1400b091c
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 0x140116ea5
mov dword [rsp + 0xb0], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xb0]
call fcn.1400b091c
jmp 0x140116ec6
mov dword [rsp + 0xb4], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xb4]
call fcn.1400b091c
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x140116ef9
mov dword [rsp + 0xb8], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xb8]
call fcn.1400b091c
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 0x140116f3c
mov dword [rsp + 0xbc], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xbc]
call fcn.1400b091c
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400a8080
mov dword [rsp + 0x64], 8
cmp qword [rsp + 0x80], 0
je 0x140116fa3
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 0x140116fa3
mov dword [rsp + 0xc0], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xc0]
call fcn.1400b091c
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 0x140117004
mov dword [rsp + 0xc4], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xc4]
call fcn.1400b091c
mov r8d, 2
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x14011703c
mov dword [rsp + 0xc8], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xc8]
call fcn.1400b091c
mov r9d, 1
mov r8, qword [rsp + 0x58]
mov edx, 0x10000003
mov rcx, qword [rsp + 0x38]
call fcn.140116b30
cmp dword [rsp + 0x70], 0
je 0x14011713f
cmp dword [rsp + 0x60], 0
je 0x14011713f
mov dword [rsp + 0x30], 0
jmp 0x140117081
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x14011713f
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 0x1401170cc
mov dword [rsp + 0xcc], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xcc]
call fcn.1400b091c
mov rdx, qword [rsp + 0xa0]
add rdx, 8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1401170e9
jmp 0x140117076
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 0x14011713a
mov dword [rsp + 0xd0], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xd0]
call fcn.1400b091c
jmp 0x140117076
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 0x14011717a
mov dword [rsp + 0xd4], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xd4]
call fcn.1400b091c
mov r8, qword [rsp + 0x48]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x1401171b2
mov dword [rsp + 0xd8], 0
lea rdx, [0x14029a008]
lea rcx, [rsp + 0xd8]
call fcn.1400b091c
mov dword [rsp + 0x50], 1
cmp qword [rsp + 0x38], 0
je 0x1401171d8
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 0x1401171fc
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 0x14011721a
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 0x140117238
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