Function at 0x1400b62f4
Capabilities:
Compare security identifiers
Get user security identifier

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp], rax
xor edi, edi
mov r13, r8
mov r15, rcx
mov byte [r8], dil
mov rsi, rdx
lea rcx, [rbp - 0x80]
lea r8d, [rdi + 0x28]
xor edx, edx
mov ebx, edi
mov dword [rsp + 0x78], edi
call sub.msvcrt.dll_memset
xor eax, eax
lea r8d, [rdi + 0x40]
lea rcx, [rbp - 0x48]
xor edx, edx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rdi
mov r14d, edi
mov dword [rsp + 0x40], edi
mov r12d, edi
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x48], 8
mov qword [rbp - 0x50], rax
call sub.msvcrt.dll_memset
xor eax, eax
xor edx, edx
mov dword [rsp + 0x58], 0x44
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
test rsi, rsi
je 0x1400b63c4
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rsi + rcx*2], dx
jne 0x1400b6398
add cx, cx
mov word [rsp + 0x68], cx
inc rax
cmp word [rsi + rax*2], dx
jne 0x1400b63a9
add ax, ax
mov qword [rsp + 0x70], rsi
lea rdi, [rsp + 0x68]
mov word [rsp + 0x6a], ax
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x78]
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
mov edi, eax
test eax, eax
jns 0x1400b6409
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b645b
test byte [rcx + 0x1c], 1
je 0x1400b645b
cmp byte [rcx + 0x19], 2
jb 0x1400b645b
mov edx, CoDisconnectObject
jmp 0x1400b6448
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov edx, 5
call qword [sym.imp.ADVAPI32.dll_LsaQueryInformationPolicy]
mov edi, eax
test eax, eax
jns 0x1400b6476
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b645b
test byte [rcx + 0x1c], 1
je 0x1400b645b
cmp byte [rcx + 0x19], 2
jb 0x1400b645b
mov edx, reloc.ole32.dll_CoDisconnectObject
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a8c0]
mov r9d, edi
call fcn.14001de24
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400b66b9
mov rcx, qword [rsp + 0x50]
xor edi, edi
cmp qword [rcx + 0x10], rdi
je 0x1400b6680
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1400b6680
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400b651c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400b651c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b66b9
test byte [rcx + 0x1c], 1
je 0x1400b66b9
cmp byte [rcx + 0x19], 2
jb 0x1400b66b9
lea edx, [rdi + 0x15]
jmp 0x1400b65e3
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r14, rax
test rax, rax
je 0x1400b6552
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov ecx, dword [rsp + 0x44]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r12, rax
test rax, rax
jne 0x1400b655c
mov ebx, 0x8007000e
jmp 0x1400b66b9
mov r8d, dword [rsp + 0x44]
xor edx, edx
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov r8, r14
mov rdx, r15
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400b65ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b66b9
test byte [rcx + 0x1c], 1
je 0x1400b66b9
cmp byte [rcx + 0x19], 2
jb 0x1400b66b9
mov edx, 0x16
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a8c0]
mov r9, r15
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x1400b66b9
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_GetWindowsAccountDomainSid]
test eax, eax
jne 0x1400b6662
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b66b9
test byte [rcx + 0x1c], 1
je 0x1400b66b9
cmp byte [rcx + 0x19], 2
jb 0x1400b66b9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a8c0]
mov edx, 0x17
mov r9d, ebx
call fcn.14001de24
jmp 0x1400b66b9
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x50]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
sete al
mov byte [r13], al
jmp 0x1400b66b9
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400b66b4
test byte [rcx + 0x1c], 1
je 0x1400b66b4
cmp byte [rcx + 0x19], 2
jb 0x1400b66b4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a8c0]
mov edx, 0x14
call fcn.14001dd24
mov ebx, 0x8000ffff
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400b66c9
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400b66d9
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret