Function at 0x18008a730
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push rbp
push rbx
push r13
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov r13, rcx
mov dword [rbp + 0x3e0], 0xff
lea rcx, [rbp + 0x190]
lea rdx, [rbp + 0x3e0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rax, [rsp + 0x60]
mov dword [rbp + 0x3d8], 0xff
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x3d8]
lea rax, [rbp + 0x3e8]
mov dword [rbp + 0x3e8], 0xff
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x90]
lea rax, [rbp + 0x290]
xor ecx, ecx
lea rdx, [rbp + 0x190]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
lea rdx, [0x1801041f8]
mov rbx, rax
lea rcx, [rsp + 0x68]
call fcn.1800a79d0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.18008a600
cmp qword [rax + 0x18], 0x10
jb 0x18008a7f0
mov rax, qword [rax]
mov r8d, 1
lea rcx, [rbp - 0x70]
mov rdx, rax
call fcn.180089260
mov rdx, qword [rsp + 0x58]
mov dword [rbp + 0x3d8], eax
cmp rdx, 0x10
jb 0x18008a845
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008a840
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008ab60
call fcn.1800afef0
lea rdx, [0x180103fd8]
mov qword [rsp + 0x490], r15
lea rcx, [rsp + 0x68]
call fcn.1800a79d0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.18008a600
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x18008a878
mov rdx, qword [rax]
movzx r8d, byte [rbx + 5]
lea rcx, [rbp - 0x70]
mov r15, 0xffffffffffffffff
mov rax, r15
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x18008a890
lea rcx, [rbp - 0x70]
add rcx, rax
call fcn.180089260
add dword [rbp + 0x3d8], eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x18008a8e8
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008a8e3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008ab66
call fcn.1800afef0
mov qword [rsp + 0x4d0], rsi
lea rcx, [rbp + 0x90]
mov qword [rsp + 0x4a8], rdi
mov qword [rsp + 0x4a0], r12
mov qword [rsp + 0x498], r14
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor r14d, r14d
movzx r12d, byte [rax]
test r12d, r12d
je 0x18008aa6e
cmp qword [0x1801039f0], 0x10
lea rsi, [0x1801039d8]
mov rdi, qword [0x1801039e8]
movabs rax, 0x7fffffffffffffff
cmovae rsi, qword [0x1801039d8]
cmp rdi, 0x10
jae 0x18008a966
movups xmm0, xmmword [rsi]
mov qword [rsp + 0x58], 0xf
movups xmmword [rsp + 0x40], xmm0
jmp 0x18008a9d7
mov rbx, rdi
or rbx, 0xf
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x18008a9b0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18008ab72
mov rcx, rax
call fcn.1800afef8
mov rcx, rax
test rax, rax
je 0x18008ab5a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x18008a9be
test rcx, rcx
je 0x18008a9bc
call fcn.1800afef8
jmp 0x18008a9be
xor eax, eax
lea r8, [rdi + 1]
mov qword [rsp + 0x40], rax
mov rdx, rsi
mov rcx, rax
call fcn.1800b2f60
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x68]
call fcn.18008a600
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x18008a9f8
mov rbx, qword [rax]
mov edx, r14d
lea rcx, [rbp + 0x90]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, dword [rbp + 0x3d8]
lea rdx, [rbp - 0x70]
add rcx, rdx
mov rdx, rbx
mov r8d, dword [rax]
call fcn.180089260
add dword [rbp + 0x3d8], eax
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x18008aa62
mov rcx, qword [rsp + 0x68]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008aa5d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008ab5a
call fcn.1800afef0
inc r14d
cmp r14d, r12d
jl 0x18008a925
mov qword [rsp + 0x50], 0
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
nop dword [rax]
inc r15
cmp byte [rax + r15], 0
jne 0x18008aa90
mov r8, r15
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.1800a7f50
mov r8d, 0x28
mov qword [r13 + 0x10], 0
cmp qword [rsp + 0x50], r8
lea rdx, [rsp + 0x40]
mov rcx, r13
mov qword [r13 + 0x18], 0xf
cmovb r8, qword [rsp + 0x50]
cmp qword [rsp + 0x58], 0x10
mov byte [r13], 0
cmovae rdx, qword [rsp + 0x40]
call fcn.1800a7f50
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x18008ab23
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008ab1e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008ab6c
call fcn.1800afef0
mov r14, qword [rsp + 0x498]
mov rax, r13
mov r12, qword [rsp + 0x4a0]
mov rdi, qword [rsp + 0x4a8]
mov rsi, qword [rsp + 0x4d0]
mov r15, qword [rsp + 0x490]
add rsp, 0x4b0
pop r13
pop rbx
pop rbp
ret
call fcn.1800bb0c0
int3
call fcn.1800bb0c0
int3
call fcn.1800bb0c0
int3
call fcn.1800bb0c0
int3
call fcn.1800893c0
int3