Function at 0x14009e490
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 [0x140173708]
xor rax, rsp
mov qword [rbp], rax
xor eax, eax
mov dword [rsp + 0x48], 8
xorps xmm0, xmm0
mov byte [r8], al
mov r12, r8
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov qword [rsp + 0x50], rax
mov r15, rcx
mov dword [rsp + 0x44], eax
lea r8d, [rax + 0x48]
mov dword [rsp + 0x40], eax
xor edx, edx
lea rcx, [rbp - 0x50]
mov ebx, eax
mov r14d, eax
movups xmmword [rsp + 0x78], xmm0
mov r13d, eax
mov edi, eax
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
call sub.msvcrt.dll_memset
xor edx, edx
mov dword [rsp + 0x58], 0x44
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
test rsi, rsi
je 0x14009e555
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rsi + rcx*2], dx
jne 0x14009e529
add cx, cx
mov word [rsp + 0x68], cx
inc rax
cmp word [rsi + rax*2], dx
jne 0x14009e53a
add ax, ax
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x6a], ax
lea rdi, [rsp + 0x68]
lea r9, [rsp + 0x60]
mov r8d, 1
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x14009e5d7
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14009e5b1
test byte [rcx + 0x1c], 1
je 0x14009e5b1
cmp byte [rcx + 0x19], 2
jb 0x14009e5b1
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157670]
mov r9d, edi
call fcn.14000c354
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14009e8ab
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14009e8ab
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov edx, 5
call qword [sym.imp.ADVAPI32.dll_LsaQueryInformationPolicy]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x14009e61e
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14009e5b1
test byte [rcx + 0x1c], 1
je 0x14009e5b1
cmp byte [rcx + 0x19], 2
jb 0x14009e5b1
mov edx, 0x13
jmp 0x14009e59e
mov rax, qword [rsp + 0x50]
xor edi, edi
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14009e872
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
nop dword [rax + rax]
test eax, eax
je 0x14009e872
lea rax, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14009e6f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
je 0x14009e6f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14009e6a9
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14009e8ab
test byte [rcx + 0x1c], 1
je 0x14009e8ab
cmp byte [rcx + 0x19], 2
jb 0x14009e8ab
mov edx, 0x15
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157670]
mov r9, r15
mov dword [rsp + 0x20], ebx
call fcn.1400151b8
jmp 0x14009e8ab
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x14009e717
mov ebx, 0x8007000e
jmp 0x14009e8ab
mov r8d, dword [rsp + 0x44]
xor edx, edx
mov rcx, r14
call sub.msvcrt.dll_memset
mov ecx, dword [rsp + 0x40]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x14009e70d
mov r8d, dword [rsp + 0x40]
xor edx, edx
add r8, r8
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x48]
mov r8, r14
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14009e7da
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14009e7a5
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14009e8ab
test byte [rcx + 0x1c], 1
je 0x14009e8ab
cmp byte [rcx + 0x19], 2
jb 0x14009e8ab
mov edx, 0x16
jmp 0x14009e6d9
lea r8, [rsp + 0x58]
mov rcx, r14
lea rdx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_GetWindowsAccountDomainSid]
nop dword [rax + rax]
test eax, eax
jne 0x14009e84e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14009e811
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14009e8ab
test byte [rcx + 0x1c], 1
je 0x14009e8ab
cmp byte [rcx + 0x19], 2
jb 0x14009e8ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157670]
mov edx, 0x17
mov r9d, ebx
call fcn.14000c354
jmp 0x14009e8ab
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x50]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
sete al
mov byte [r12], al
jmp 0x14009e8ab
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14009e8a6
test byte [rcx + 0x1c], 1
je 0x14009e8a6
cmp byte [rcx + 0x19], 2
jb 0x14009e8a6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157670]
mov edx, 0x14
call fcn.14000c328
mov ebx, 0x8000ffff
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14009e8c1
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14009e8d7
call qword [sym.imp.ADVAPI32.dll_LsaClose]
nop dword [rax + rax]
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret