Function at 0x140022424
Capabilities:
Get user security identifier

Disassembly:
push rbp
push r12
push r14
sub rsp, 0x2f0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rbp + 0x2d8], rbx
mov qword [rbp + 0x2e0], rsi
mov qword [rbp + 0x2e8], rdi
mov rax, qword [0x140078790]
xor rax, rbp
mov qword [rbp + 0x2a0], rax
mov rbx, rcx
mov eax, 0x40
mov word [rbp], ax
lea esi, [rax - 0x3f]
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp]
call fcn.140021ef8
cmp rax, 0xffffffffffffffff
jne 0x1400226d1
lea eax, [rsi + 0x5b]
mov word [rbp], ax
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp]
mov rcx, rbx
call fcn.140021ef8
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400226d1
lea rcx, [rbp + 0x18]
call fcn.140002fd4
nop
mov r9, rdi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x18]
call fcn.1400120b8
lea eax, [rsi + 0x2d]
mov word [rbp], ax
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp + 0x18]
call fcn.140021ef8
lea r12d, [rsi + 0xf]
xor r14d, r14d
cmp rax, 0xffffffffffffffff
je 0x1400226ae
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x90]
call fcn.140034b00
mov dword [rbp + 8], 0x104
mov dword [rbp], r14d
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
lea rax, [rbp + 0xc]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [rbp]
test eax, eax
je 0x1400226ae
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140022571
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140033c40
sub rsp, rcx
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
lea rax, [rbp + 0xc]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x1400226ae
lea rcx, [rbp + 0x90]
call fcn.140037f9c
test rax, rax
je 0x1400226ae
cmp word [rbp + 0x90], r14w
jne 0x1400225e9
mov rax, r14
jmp 0x1400225f5
lea rcx, [rbp + 0x90]
call fcn.140037f9c
mov r8, rax
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x18]
call fcn.140012210
or r9, 0xffffffffffffffff
mov r8, rdi
lea rdx, [rbp + 0x68]
mov rcx, rbx
call fcn.1400223e0
nop
mov r8, rax
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x40]
call fcn.140012cf4
mov rdi, rax
lea rax, [rbp + 0x18]
cmp rax, rdi
je 0x140022654
xor r8d, r8d
mov dl, sil
lea rcx, [rbp + 0x18]
call fcn.140011b58
mov rdx, rdi
lea rcx, [rbp + 0x18]
call fcn.1400111b0
nop
xor r8d, r8d
mov dl, sil
lea rcx, [rbp + 0x40]
call fcn.140011b58
nop
mov r8, r12
mov rdx, rsi
mov rcx, qword [rbp + 0x40]
call fcn.140011434
mov qword [rbp + 0x40], r14
xor r8d, r8d
mov dl, sil
lea rcx, [rbp + 0x68]
call fcn.140011b58
nop
mov r8, r12
mov rdx, rsi
mov rcx, qword [rbp + 0x68]
call fcn.140011434
mov qword [rbp + 0x68], r14
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x18]
mov rcx, rbx
call fcn.1400120b8
nop
xor r8d, r8d
mov dl, sil
lea rcx, [rbp + 0x18]
call fcn.140011b58
nop
mov r8, r12
mov rdx, rsi
mov rcx, qword [rbp + 0x18]
call fcn.140011434
mov qword [rbp + 0x18], r14
mov rcx, qword [rbp + 0x2a0]
xor rcx, rbp
call fcn.140033cb0
mov rbx, qword [rbp + 0x2d8]
mov rsi, qword [rbp + 0x2e0]
mov rdi, qword [rbp + 0x2e8]
lea rsp, [rbp + 0x2b0]
pop r14
pop r12
pop rbp
ret