Function at 0x180025d8c
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rax, qword [rbp + 0x260]
mov r14, r9
mov rbx, qword [rbp + 0x250]
mov rsi, r8
mov r12, qword [rbp + 0x270]
mov r15, qword [rbp + 0x268]
mov rdi, qword [rbp + 0x278]
mov qword [rbp - 0x50], rax
xor eax, eax
mov dword [rsp + 0x54], eax
mov r13d, eax
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x68], eax
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], r12
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x180025e4f
test byte [rcx + 0x1c], 8
je 0x180025e4f
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x2d]
lea r8, [0x180073228]
call fcn.18001171c
lea rax, [rsp + 0x54]
mov r8, rdi
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x78]
lea rax, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.18005c17c
mov ebx, eax
test eax, eax
jns 0x180025f4f
xor esi, esi
test rdi, rdi
je 0x180025e88
mov rdi, qword [rdi]
jmp 0x180025e8f
lea rdi, [0x180072958]
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov r9, rdi
mov ecx, 1
mov edx, eax
mov r8d, 0x1c69
call fcn.180038d90
test dword [rbp + 0x280], 0x10000
je 0x180025fa2
mov edx, dword [0x18008b2a0]
mov rax, qword gs:[0x58]
mov ecx, 0xc
mov rax, qword [rax + rdx*8]
cmp dword [rcx + rax], 2
je 0x180025fa2
mov rax, qword [rbp - 0x60]
or r15, 0xffffffffffffffff
test rax, rax
je 0x180025fa6
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x180025fa6
cmp qword [rbp - 0x50], rsi
je 0x180025fa6
test r12, r12
je 0x180025fa6
cmp ebx, 0xc0000073
jne 0x180025fa6
mov r9, r15
inc r9
cmp word [r12 + r9*2], si
jne 0x180025f24
mov dword [rsp + 0x30], esi
mov rdx, rcx
mov dword [rsp + 0x28], 1
mov rcx, rax
mov r8, r12
mov qword [rsp + 0x20], rsi
call fcn.180044d0c
jmp 0x180025fa6
mov r8d, dword [rbp + 0x258]
lea r9, [rsp + 0x78]
mov edx, 0x2000000
mov rcx, rsi
call qword [sym.imp.SAMLIB.dll_SamOpenAlias]
nop dword [rax + rax]
xor esi, esi
mov ebx, eax
test eax, eax
jns 0x18002612f
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov r8d, 0x1c6a
mov ecx, 1
lea r9, [0x180072958]
mov edx, eax
call fcn.180038d90
or r15, 0xffffffffffffffff
mov r14, qword [rsp + 0x70]
test r14, r14
je 0x180025fee
cmp dword [rsp + 0x54], esi
jbe 0x180025fdf
mov esi, dword [rsp + 0x54]
mov rdi, r14
xor eax, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x180025fd5
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor eax, eax
add rdi, 8
sub rsi, 1
jne 0x180025fbf
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180026004
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
cmp qword [rbp - 0x78], rsi
je 0x18002602d
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x78]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov r13, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180026043
call qword [sym.imp.SAMLIB.dll_SamCloseHandle]
nop dword [rax + rax]
test dword [rbp + 0x280], 0x10000
je 0x1800260cb
mov edx, dword [0x18008b2a0]
mov rax, qword gs:[0x58]
mov ecx, 0xc
mov rax, qword [rax + rdx*8]
cmp dword [rcx + rax], 2
je 0x1800260cb
mov rdi, qword [rbp - 0x60]
test rdi, rdi
je 0x1800260cb
mov rsi, qword [rbp - 0x58]
xor r14d, r14d
test rsi, rsi
je 0x1800260cb
cmp qword [rbp - 0x50], r14
je 0x1800260cb
test r12, r12
je 0x1800260cb
cmp dword [rsp + 0x68], r14d
je 0x1800260cb
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
inc r15
cmp word [r12 + r15*2], r14w
jne 0x1800260a2
mov dword [rsp + 0x30], eax
mov r9, r15
mov dword [rsp + 0x28], r14d
mov r8, r12
mov rdx, rsi
mov qword [rsp + 0x20], r13
mov rcx, rdi
call fcn.180044d0c
test r13, r13
je 0x1800260d8
mov rcx, r13
call fcn.1800119d0
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x180026109
test byte [rcx + 0x1c], 8
je 0x180026109
mov rcx, qword [rcx + 0x10]
lea r8, [0x180073228]
mov edx, 0x2e
mov r9d, ebx
call fcn.180011748
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.180002a90
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rsp + 0x78]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
call qword [sym.imp.SAMLIB.dll_SamGetMembersInAlias]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x180026169
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov r8d, 0x1c6d
jmp 0x180025f8f
test dword [rbp + 0x280], 0x10000
je 0x180026203
mov edx, dword [0x18008b2a0]
mov rax, qword gs:[0x58]
mov ecx, 0xc
mov rax, qword [rax + rdx*8]
cmp dword [rcx + rax], 2
je 0x180026203
cmp qword [rbp - 0x60], rsi
je 0x180026203
cmp qword [rbp - 0x58], rsi
je 0x180026203
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180026203
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov rdx, rcx
mov eax, dword [rsp + 0x50]
mov rcx, r14
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
lea r8d, [r9 + 4]
mov qword [rsp + 0x20], rax
call fcn.18002c318
test eax, eax
je 0x1800261f7
xor edx, edx
mov qword [rsp + 0x20], r15
mov r9d, eax
mov r8d, 0x1cf2
lea ecx, [rdx + 1]
call fcn.180038d90
jmp 0x1800261ff
mov dword [rsp + 0x68], 1
mov r13, qword [rbp - 0x70]
xor edi, edi
mov r14d, 0x100
cmp dword [rsp + 0x54], edi
jbe 0x180026353
mov r15, qword [rsp + 0x70]
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x200
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x78]
lea rcx, [rbp - 0x30]
mov r8d, esi
mov edx, 0x100
add r8, r8
mov r14d, esi
movzx r9d, word [rax + r8*8]
mov r8, qword [rax + r8*8 + 8]
shr r9, 1
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
cmp qword [r15 + r14*8], rdi
jne 0x180026289
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
lea r9, [rbp - 0x30]
mov ecx, 1
mov edx, eax
mov r8d, 0x1c57
call fcn.180038d90
jmp 0x180026341
xor eax, eax
cmp dword [rsp + 0x50], eax
jbe 0x1800262d4
mov rdx, qword [rsp + 0x58]
mov rcx, qword [r15 + r14*8]
mov eax, edi
mov rdx, qword [rdx + rax*8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x1800262ba
inc edi
cmp edi, dword [rsp + 0x50]
jb 0x180026291
jmp 0x1800262ce
xor edx, edx
lea r9, [rbp - 0x30]
mov r8d, 0x1c9a
lea ecx, [rdx + 3]
call fcn.180038d90
cmp edi, dword [rsp + 0x50]
jb 0x18002633f
xor edx, edx
lea r9, [rbp - 0x30]
mov r8d, 0x1be4
lea ecx, [rdx + 2]
call fcn.180038d90
mov rdx, qword [r15 + r14*8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SAMLIB.dll_SamAddMemberToAlias]
nop dword [rax + rax]
xor edi, edi
mov ebx, eax
test eax, eax
jns 0x180026341
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
lea r9, [rbp - 0x30]
mov r8d, 0x1be8
mov edx, eax
lea ecx, [rdi + 1]
call fcn.180038d90
cmp ebx, 0xc000017a
je 0x18002633b
cmp ebx, 0xc0000034
jne 0x1800266f1
mov ebx, edi
jmp 0x180026341
xor edi, edi
inc esi
cmp esi, dword [rsp + 0x54]
jb 0x18002621a
mov r14d, 0x100
xor esi, esi
mov r15d, esi
cmp dword [rsp + 0x50], esi
jbe 0x180025fa2
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x200
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x80]
mov r12d, r15d
mov rcx, qword [rcx + r12*8]
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertSidToStringSidW]
nop dword [rax + rax]
test eax, eax
je 0x1800263cc
mov r9, qword [rbp - 0x80]
test r9, r9
je 0x1800263cc
lea r8, str.SID:__s
mov rdx, r14
lea rcx, [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov qword [rbp - 0x80], rsi
jmp 0x180026407
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 3
mov r8d, 0x1cdd
mov edx, eax
call fcn.180038d90
mov r9d, r15d
lea r8, str.Member__d
mov rdx, r14
lea rcx, [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
mov edi, esi
xor r14d, r14d
mov esi, dword [rsp + 0x54]
test esi, esi
je 0x180026466
mov rcx, qword [rsp + 0x70]
mov eax, edi
mov rdx, qword [rcx + rax*8]
test rdx, rdx
je 0x180026442
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + r12*8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x18002644a
mov rcx, qword [rsp + 0x70]
inc edi
cmp edi, esi
jb 0x180026419
jmp 0x18002645e
xor edx, edx
lea r9, [rbp - 0x30]
mov r8d, 0x1c9a
lea ecx, [rdx + 3]
call fcn.180038d90
cmp edi, esi
jb 0x1800266d4
mov rax, qword [rsp + 0x58]
lea r9, [rsp + 0x60]
mov rcx, qword [rbp - 0x38]
mov edx, 1
mov qword [rsp + 0x60], r14
mov dword [rbp - 0x68], r14d
lea r8, [rax + r12*8]
mov qword [rbp - 0x48], r14
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
call fcn.180062384
mov rsi, qword [rbp - 0x48]
mov r14d, eax
test rsi, rsi
je 0x180026538
movzx ebx, word [rsi + 0xa]
lea rcx, [rbx + 0x20]
call fcn.180011ee0
mov rdi, rax
test rax, rax
je 0x180026502
lea r8, [rbx + 0x20]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov eax, dword [rsi]
lea rbx, [rdi + 0x20]
mov dword [rdi], eax
mov rcx, rbx
mov eax, dword [rsi + 0x18]
mov dword [rdi + 0x18], eax
movups xmm0, xmmword [rsi + 8]
movdqu xmmword [rdi + 8], xmm0
movzx r8d, word [rsi + 8]
mov rdx, qword [rsi + 0x10]
call sub.msvcrt.dll_memcpy
mov qword [rdi + 0x10], rbx
jmp 0x180026525
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18002651f
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor eax, eax
mov qword [rsp + 0x60], rax
mov r14d, 0xc000009a
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor esi, esi
jmp 0x18002653b
mov rdi, rsi
test r14d, r14d
js 0x180026644
test rdi, rdi
je 0x180026644
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x180026623
cmp dword [rax], esi
jbe 0x180026623
cmp dword [rdi], 5
je 0x180026623
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180026623
cmp dword [rdi + 0x18], 0xffffffff
je 0x180026623
movsxd rax, dword [rdi + 0x18]
lea rdx, [rax + rax*2]
cmp qword [rcx + rdx*8 + 8], rsi
je 0x180026623
mov rcx, qword [rcx + rdx*8 + 0x10]
call fcn.180013644
test eax, eax
je 0x180026623
movsxd rax, dword [rdi + 0x18]
mov edx, 0x100
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 8]
movzx ebx, word [r8 + rcx*8]
mov r8, qword [r8 + rcx*8 + 8]
lea rcx, [rbp - 0x30]
shr bx, 1
movzx esi, bx
mov r9d, esi
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
mov ecx, 0x100
cmp bx, cx
jae 0x180026600
lea rax, [rsi + rsi]
cmp rax, 0x200
jae 0x1800266eb
xor esi, esi
mov word [rbp + rax - 0x30], si
jmp 0x180026609
xor esi, esi
mov word [rbp + 0x1ce], si
mov rdx, rcx
lea r8, [0x18007a640]
lea rcx, [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
movzx r9d, word [rdi + 8]
lea rcx, [rbp - 0x30]
mov r8, qword [rdi + 0x10]
mov edx, 0x100
shr r9, 1
call qword [sym.imp.msvcrt.dll_wcsncat_s]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18002665f
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov qword [rsp + 0x60], rsi
test rdi, rdi
je 0x180026673
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor edx, edx
lea r9, [rbp - 0x30]
mov r8d, 0x1bfe
lea ecx, [rdx + 2]
call fcn.180038d90
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rdx + r12*8]
call qword [sym.imp.SAMLIB.dll_SamRemoveMemberFromAlias]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1800266d6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
lea r9, [rbp - 0x30]
mov ecx, 1
mov edx, eax
mov r8d, 0x1bf3
call fcn.180038d90
mov r12, qword [rbp - 0x40]
jmp 0x180025fa2
xor esi, esi
inc r15d
cmp r15d, dword [rsp + 0x50]
jae 0x1800266cb
mov r14d, 0x100
jmp 0x180026362
call fcn.180002c68
int3
or r15, 0xffffffffffffffff
xor esi, esi
jmp 0x180025fa6