Function at 0x100006ae4
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x140
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x10000b138]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r12, rdx
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x50], rdi
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.1000041f8
mov rsi, qword [rsp + 0x50]
mov dword [rsp + 0x44], 0x44
mov r13d, 0x80
mov dword [rsp + 0x40], r13d
lea rbp, [rbx + 0x50]
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x44]
lea r8, [rsp + 0xe0]
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp eax, edi
jne 0x100006cc1
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x100006d4f
cmp dword [rsp + 0x44], 0x44
jbe 0x100006ba0
mov ecx, 0x80004005
call fcn.100005f10
int3
cmp dword [rsp + 0x40], r13d
jbe 0x100006c8d
mov esi, dword [rsp + 0x40]
add rsi, rsi
mov eax, edi
movabs rcx, 0x7fffffffffffffff
cmp rsi, rcx
setb al
cmp eax, edi
jne 0x100006bd3
mov ecx, 0x80004005
call fcn.100005f10
int3
add rsi, rsi
cmp qword [rsp + 0x50], rdi
jne 0x100006c03
cmp rsi, r13
jbe 0x100006bf4
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1000041f8
jmp 0x100006c88
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
jmp 0x100006c88
cmp rsi, r13
jbe 0x100006c7e
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jne 0x100006c6f
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1000041f8
mov r9, r13
lea r8, [rsp + 0x58]
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_memcpy_s
cmp eax, edi
je 0x100006c88
cmp eax, 0xc
je 0x100006c64
cmp eax, 0x16
je 0x100006c59
cmp eax, 0x22
je 0x100006c59
cmp eax, 0x50
je 0x100006c88
mov ecx, 0x80004005
call fcn.100005f10
int3
mov ecx, 0x80070057
call fcn.100005f10
int3
mov ecx, 0x8007000e
call fcn.100005f10
int3
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.10000711c
jmp 0x100006c88
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x44]
lea r8, [rsp + 0xe0]
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp eax, edi
je 0x100006d4f
mov byte [rbx + 0x4c], 1
lea rdx, [rbx + 8]
lea r8, [rsp + 0xe0]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_CopySid]
cmp eax, edi
je 0x100006d4f
or rbp, 0xffffffffffffffff
cmp rsi, rdi
je 0x100006cf9
xor eax, eax
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx - 1]
mov r8d, edi
mov rdx, rsi
lea rcx, [rbx + 0x60]
call fcn.100005ce4
xor eax, eax
mov rcx, rbp
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r12
lea rcx, [rbx + 0x58]
call fcn.100005ce4
lea rcx, [rbx + 0x70]
xor r8d, r8d
xor edx, edx
call fcn.100005ce4
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x50], rcx
je 0x100006d4b
lea rcx, [rsp + 0x50]
call fcn.10000422c
mov al, 1
jmp 0x100006d96
mov dword [rbp], 7
lea rcx, [rbx + 0x58]
call fcn.100005b14
lea rcx, [rbx + 0x60]
call fcn.100005b14
lea rcx, [rbx + 0x68]
call fcn.100005b14
lea rcx, [rbx + 0x70]
call fcn.100005b14
mov byte [rbx + 0x4c], dil
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x100006d94
lea rcx, [rsp + 0x50]
call fcn.10000422c
xor al, al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.100007a20
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret