Function at 0x140008e40
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rax - 0x378]
sub rsp, 0x450
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x80], rcx
xor r12d, r12d
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x48], 8
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r12
mov word [rbp - 0x78], r12w
cmp qword [r8 + 0x18], 8
jb 0x140008ec2
mov rdx, qword [r8]
jmp 0x140008ec5
mov rdx, r8
cmp qword [rbx + 0x18], 8
jb 0x140008ed1
mov rcx, qword [rbx]
jmp 0x140008ed4
mov rcx, rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140008f3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140008f3d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea r9, str.::LookupAccountNameW_failed_to_retrieve_size_of_account_security_identifier__systemname_s__accountname_s_.
mov r8d, eax
mov edx, 0xf
lea rcx, [rbp - 0x50]
call fcn.140006610
lea rdx, [0x14008f3c8]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov edx, dword [rsp + 0x40]
dec edx
cmp rdx, qword [rbp - 0x68]
ja 0x140008f62
mov qword [rbp - 0x68], rdx
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rax, qword [rbp - 0x78]
mov word [rax + rdx*2], r12w
jmp 0x140008f72
xor r8d, r8d
sub rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x78]
call fcn.140005044
mov edx, dword [rsp + 0x44]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
lea rcx, [rsp + 0x58]
call fcn.14000a5e0
nop
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r8, qword [rbp - 0x78]
mov r14, qword [rsp + 0x60]
sub r14, qword [rsp + 0x58]
mov rax, r14
neg rax
sbb r10, r10
and r10, qword [rsp + 0x58]
cmp qword [rdi + 0x18], 8
jb 0x140008fc1
mov rdx, qword [rdi]
jmp 0x140008fc4
mov rdx, rdi
cmp qword [rbx + 0x18], 8
jb 0x140008fd0
mov rcx, qword [rbx]
jmp 0x140008fd3
mov rcx, rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x44]
mov r8, r10
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140009037
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea r9, str.::LookupAccountNameW_failed_to_retrieve_account_security_identifier__systemname_s__accountname_s_.
mov edx, 0xf
lea rcx, [rbp - 0x50]
call fcn.140006520
lea rdx, [0x14008f3c8]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
neg r14
sbb rax, rax
and rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140007fac
nop
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14000a578
mov dword [rsp + 0x4c], 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000907c
call sub.Mso20Win32Client.dll_Ordinal_192_1
nop
lea rcx, [rsp + 0x58]
call fcn.14000a0f0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x14000909d
inc rdx
mov rcx, qword [rbp - 0x78]
call fcn.140003198
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r12
mov word [rbp - 0x78], r12w
mov rax, rsi
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x498]
add rsp, 0x450
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret