Function at 0x140116c90
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 0x140116cdc
xor eax, eax
jmp 0x1401171e4
call fcn.140116950
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 0x140116e37
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 0x140116d9a
mov dword [rsp + 0xa8], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xa8]
call fcn.1400b08fc
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 0x140116de4
mov dword [rsp + 0xac], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xac]
call fcn.1400b08fc
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 0x140116e35
mov dword [rsp + 0xb0], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xb0]
call fcn.1400b08fc
jmp 0x140116e56
mov dword [rsp + 0xb4], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xb4]
call fcn.1400b08fc
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x140116e89
mov dword [rsp + 0xb8], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xb8]
call fcn.1400b08fc
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 0x140116ecc
mov dword [rsp + 0xbc], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xbc]
call fcn.1400b08fc
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400a8070
mov dword [rsp + 0x64], 8
cmp qword [rsp + 0x80], 0
je 0x140116f33
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 0x140116f33
mov dword [rsp + 0xc0], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xc0]
call fcn.1400b08fc
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 0x140116f94
mov dword [rsp + 0xc4], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xc4]
call fcn.1400b08fc
mov r8d, 2
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x140116fcc
mov dword [rsp + 0xc8], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xc8]
call fcn.1400b08fc
mov r9d, 1
mov r8, qword [rsp + 0x58]
mov edx, 0x10000003
mov rcx, qword [rsp + 0x38]
call fcn.140116ac0
cmp dword [rsp + 0x70], 0
je 0x1401170cf
cmp dword [rsp + 0x60], 0
je 0x1401170cf
mov dword [rsp + 0x30], 0
jmp 0x140117011
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x1401170cf
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 0x14011705c
mov dword [rsp + 0xcc], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xcc]
call fcn.1400b08fc
mov rdx, qword [rsp + 0xa0]
add rdx, 8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140117079
jmp 0x140117006
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 0x1401170ca
mov dword [rsp + 0xd0], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xd0]
call fcn.1400b08fc
jmp 0x140117006
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 0x14011710a
mov dword [rsp + 0xd4], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xd4]
call fcn.1400b08fc
mov r8, qword [rsp + 0x48]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x140117142
mov dword [rsp + 0xd8], 0
lea rdx, [0x14029adb8]
lea rcx, [rsp + 0xd8]
call fcn.1400b08fc
mov dword [rsp + 0x50], 1
cmp qword [rsp + 0x38], 0
je 0x140117168
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 0x14011718c
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 0x1401171aa
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 0x1401171c8
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