Function at 0x7ff74b047cc
Capabilities:
Compare security identifiers

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x7ff74b58340]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x120]
mov r13, qword [rsp + 0x140]
mov ebx, dword [rsp + 0x130]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x148]
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x50], edx
mov r14, rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x68], r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [rsp + 0x128]
mov r12d, esi
and esi, 0xcfffffff
shr r12d, 0x1d
and r12b, 1
bt esi, 0x1e
jb 0x7ff74b25961
bt esi, 0x1f
jb 0x7ff74b25961
bt esi, 0x1f
jb 0x7ff74b25979
bt esi, 0x1e
jb 0x7ff74b2599c
mov r15d, dword [rsp + 0x138]
test r12b, r12b
jne 0x7ff74b04899
lea rbx, [r14 + 0x28]
mov rbp, qword [rbx]
cmp rbp, rbx
jne 0x7ff74b259dd
mov rax, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x48]
mov rcx, qword [r14 + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r15d
mov r8d, ebp
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], esi
call fcn.7ff74b04910
mov r14d, eax
test eax, eax
je 0x7ff74b25b26
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r14d
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.7ff74ae3090
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp ebx, 0xffffffff
jne 0x7ff74b04868
mov ebx, esi
and ebx, 0xfffff
dec ebx
jmp 0x7ff74b04868
mov edi, ebx
mov ecx, dword [r13 + rdi*8]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
and esi, 0x3fffffff
mov edx, eax
bts esi, 0x1e
mov qword [r13 + rdi*8], rdx
jmp 0x7ff74b04872
lea r8, [0x7ff74b51158]
lea rcx, [rsp + 0x70]
mov edx, 0x19
btr esi, 0x1e
call sub.msvcrt.dll_wcscpy_s
mov edi, ebx
mov ecx, dword [r13 + rdi*8]
lea rdx, [rsp + 0x74]
mov r8d, 0xa
call qword [sym.imp.msvcrt.dll__ultow]
lea r11, [rsp + 0x70]
mov qword [r13 + rdi*8], r11
jmp 0x7ff74b0487c
mov edx, dword [r14 + 0x38]
mov rdi, rbp
mov rbp, qword [rbp]
mov rcx, qword [rdi + 0x10]
call fcn.7ff74b46c90
test al, al
je 0x7ff74b25a11
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x7ff74b04890
mov eax, dword [rsp + 0x48]
cmp dword [rdi + 0x18], eax
jne 0x7ff74b04890
mov eax, dword [rsp + 0x50]
cmp dword [rdi + 0x1c], eax
jne 0x7ff74b04890
mov eax, dword [rsp + 0x4c]
cmp dword [rdi + 0x28], eax
jne 0x7ff74b04890
cmp dword [rdi + 0x38], r15d
jne 0x7ff74b04890
cmp dword [rdi + 0x48], esi
jne 0x7ff74b04890
test r15d, r15d
je 0x7ff74b25a69
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi + 0x30]
mov r8, r15
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x7ff74b04890
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x7ff74b25a93
mov rdx, qword [rdi + 0x20]
test rdx, rdx
je 0x7ff74b04890
mov rcx, rax
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
je 0x7ff74b04890
jmp 0x7ff74b25a9e
cmp qword [rdi + 0x20], 0
jne 0x7ff74b04890
xor r10d, r10d
test esi, esi
je 0x7ff74b25af0
mov r11, qword [rdi + 0x40]
mov rax, r13
sub r11, r13
cmp qword [r11 + rax], 0
jne 0x7ff74b25abc
cmp qword [rax], 0
jmp 0x7ff74b25ae2
mov r9, qword [rax]
test r9, r9
je 0x7ff74b25af0
mov r8, qword [r11 + rax]
sub r9, r8
movzx edx, word [r8]
movzx ecx, word [r8 + r9]
sub edx, ecx
jne 0x7ff74b25ae0
add r8, 2
test ecx, ecx
jne 0x7ff74b25acb
test edx, edx
jne 0x7ff74b25af0
inc r10d
add rax, 8
cmp r10d, esi
jb 0x7ff74b25aaf
cmp r10d, esi
jne 0x7ff74b04890
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
mov r14d, 0xb7
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rax, qword [rbx]
mov qword [rdi], rax
mov qword [rdi + 8], rbx
mov qword [rax + 8], rdi
mov qword [rbx], rdi
inc dword [rdi + 0x4c]
jmp 0x7ff74b048d5
test r12b, r12b
jne 0x7ff74b048d5
lea ebx, [r15 + 0x50]
mov r12d, 0xc0000095
cmp ebx, 0x50
jb 0x7ff74b25b42
xor ecx, ecx
jmp 0x7ff74b25b48
or ebx, 0xffffffff
mov ecx, r12d
test ecx, ecx
js 0x7ff74b048d5
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x7ff74b25b76
mov rcx, rdi
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetLengthSid]
lea ecx, [rax + rbx]
cmp ecx, ebx
jb 0x7ff74b25b70
mov ebx, ecx
xor ecx, ecx
jmp 0x7ff74b25b76
or ebx, 0xffffffff
mov ecx, r12d
test ecx, ecx
js 0x7ff74b048d5
xor r8d, r8d
test esi, esi
je 0x7ff74b25bf9
mov rdx, r13
test ecx, ecx
js 0x7ff74b048d5
lea eax, [rbx + 8]
cmp eax, ebx
jb 0x7ff74b25b9d
mov ebx, eax
xor ecx, ecx
jmp 0x7ff74b25ba3
or ebx, 0xffffffff
mov ecx, r12d
test ecx, ecx
js 0x7ff74b25be8
mov rdi, qword [rdx]
test rdi, rdi
je 0x7ff74b25be8
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx - 2]
add eax, ebx
cmp eax, ebx
jb 0x7ff74b25bcb
mov ebx, eax
xor ecx, ecx
jmp 0x7ff74b25bd1
or ebx, 0xffffffff
mov ecx, r12d
test ecx, ecx
js 0x7ff74b25be8
lea eax, [rbx + 2]
cmp eax, ebx
jb 0x7ff74b25be2
mov ebx, eax
xor ecx, ecx
jmp 0x7ff74b25be8
or ebx, 0xffffffff
mov ecx, r12d
inc r8d
add rdx, 8
cmp r8d, esi
jb 0x7ff74b25b88
mov rdi, qword [rsp + 0x58]
test ecx, ecx
js 0x7ff74b048d5
mov edx, ebx
xor ecx, ecx
mov r13d, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x7ff74b048d5
mov eax, dword [rsp + 0x48]
and qword [rbx + 0x20], 0
lea rcx, [rbx + 0x10]
mov dword [rbx + 0x18], eax
mov eax, dword [rsp + 0x4c]
mov dword [rbx + 0x1c], ebp
mov dword [rbx + 0x38], r15d
mov dword [rbx + 0x48], esi
mov dword [rbx + 0x4c], 1
mov dword [rbx + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea rdx, [rbx + 0x50]
mov qword [rbx + 0x40], rdx
mov r12d, esi
lea rbp, [rdx + rsi*8]
test rdi, rdi
je 0x7ff74b25c85
mov rcx, rdi
mov qword [rbx + 0x20], rbp
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetLengthSid]
mov rdx, rdi
mov rcx, rbp
mov r8d, eax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetLengthSid]
mov edx, eax
add rbp, rdx
test esi, esi
je 0x7ff74b25ce2
mov r15, qword [rsp + 0x68]
xor esi, esi
cmp qword [rsi + r15], 0
mov rax, qword [rbx + 0x40]
jne 0x7ff74b25ca2
and qword [rsi + rax], 0
jmp 0x7ff74b25cd0
mov qword [rsi + rax], rbp
mov r8, qword [rsi + r15]
mov rdx, r13
sub rdx, rbp
mov rcx, rbp
add rdx, rbx
call sub.msvcrt.dll_wcscpy_s
mov rdi, qword [rsi + r15]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rbp, [rbp + rcx*2]
add rsi, 8
sub r12, 1
jne 0x7ff74b25c90
mov r15d, dword [rsp + 0x138]
test r15d, r15d
je 0x7ff74b25cfb
mov rdx, qword [rsp + 0x60]
mov r8d, r15d
mov rcx, rbp
mov qword [rbx + 0x30], rbp
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx + 0x28]
mov rax, qword [rdx]
mov qword [rbx + 8], rdx
mov qword [rbx], rax
mov qword [rax + 8], rbx
mov qword [rdx], rbx
jmp 0x7ff74b048da