Function at 0x1400163a0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x14002b028]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rdi, rcx
mov qword [rsp + 0x78], rcx
xor r13d, r13d
mov dword [rbp - 0x78], r13d
lea r14, str.NONE
cmp r14, rcx
je 0x140016445
mov r9, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140016400
mov r9, qword [rcx]
mov rsi, qword [rcx + 0x10]
mov rax, qword [0x14002b160]
cmp rsi, rax
ja 0x14001643a
mov rbx, r14
cmp rax, 0x10
cmovae rbx, qword [str.NONE]
mov qword [0x14002b158], rsi
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x140016445
mov rdx, rsi
mov rcx, r14
call fcn.140001470
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
mov rsi, r13
mov qword [rbp - 0x38], r13
lea rax, [rbp - 0x70]
mov qword [rbp - 0x80], rax
lea rdx, [0x140023bc0]
lea rcx, [rbp - 0x70]
call fcn.140001310
mov rbx, rax
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.14000c820
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001960
mov rbx, r13
mov r14, r13
lea rcx, [rbp - 0x48]
cmp rcx, rax
je 0x1400164c6
mov r14, qword [rax]
mov r15, r14
mov qword [rbp - 0x48], r14
mov rbx, qword [rax + 8]
mov r12, rbx
mov qword [rbp - 0x40], rbx
mov rsi, qword [rax + 0x10]
mov qword [rbp - 0x38], rsi
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
jmp 0x1400164ce
mov r12, qword [rbp - 0x40]
mov r15, qword [rbp - 0x48]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140016520
mov rdx, qword [rsp + 0x38]
call fcn.14000dd80
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001651b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001651b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e2dc
sub rbx, r14
and rbx, 0xffffffffffffffe0
lea r9, [rbx - 0x20]
add r9, r15
cmp qword [r9 + 0x18], 0x10
jb 0x140016538
mov r9, qword [r9]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [r9 + rbx], 0
jne 0x140016540
mov rax, qword [0x14002b0a0]
cmp rbx, rax
ja 0x140016585
lea r14, [0x14002b088]
cmp rax, 0x10
cmovae r14, qword [0x14002b088]
mov qword [0x14002b098], rbx
mov r8, rbx
mov rdx, r9
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rbx], 0
jmp 0x140016594
mov rdx, rbx
lea rcx, [0x14002b088]
call fcn.140001470
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140023b78]
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp - 0x78], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x10], r14
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x14], edx
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 8], rax
mov qword [rbp + 0x60], r13
mov dword [rbp + 0x68], 4
mov edx, ebx
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
mov dword [rbp - 0x78], 5
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov ecx, dword [rbp + 0x68]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140016688
mov rax, qword [rbp + 0x38]
mov rbx, qword [rax]
test rbx, rbx
je 0x140016688
mov rax, qword [rbp + 0x18]
mov r9, qword [rax]
cmp rbx, qword [rbp + 0x60]
cmovb rbx, qword [rbp + 0x60]
sub rbx, r9
jmp 0x1400166ad
test cl, 4
jne 0x1400166de
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400166de
mov rax, qword [rbp + 0x10]
mov r9, qword [rax]
mov rax, qword [rbp + 0x48]
movsxd rbx, dword [rax]
sub rbx, r9
add rbx, rcx
mov rax, r9
test rax, rax
je 0x1400166de
lea rcx, [rbp - 0x70]
cmp rbx, 0xf
ja 0x1400166d5
mov qword [rbp - 0x60], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx - 0x70], 0
jmp 0x1400166de
mov rdx, rbx
call fcn.140001470
nop
mov rdx, qword [0x14002b0e0]
cmp rdx, 0x10
jb 0x14001671f
mov rcx, qword [0x14002b0c8]
inc rdx
cmp rdx, 0x1000
jb 0x14001671a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016880
mov rcx, r8
call fcn.14001e2dc
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [0x14002b0c8], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [0x14002b0d8], xmm1
mov dword [rbp - 0x50], 0x101
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14001688c
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x70]
call fcn.14000c480
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.14000c5d0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001b30
mov rbx, rax
lea rax, [0x14002b168]
cmp rax, rbx
je 0x140016808
mov rdx, qword [0x14002b180]
cmp rdx, 0x10
jb 0x1400167cd
mov rcx, qword [0x14002b168]
inc rdx
cmp rdx, 0x1000
jb 0x1400167c8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001683c
mov rcx, r8
call fcn.14001e2dc
movdqa xmm0, xmmword [0x140024860]
movdqu xmmword [0x14002b178], xmm0
mov byte [0x14002b168], 0
movups xmm0, xmmword [rbx]
movups xmmword [0x14002b168], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x14002b178], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140016849
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016843
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016843
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e2dc
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14001688c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016887
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016887
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e2dc
mov qword [rsp + 0x70], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400168e9
mov dword [rbp - 0x78], 4
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp - 0x80]
lea edx, [r9 + 0x10]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [0x14002be68]
test eax, eax
cmovne ecx, dword [rbp - 0x80]
mov dword [0x14002be68], ecx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400168f9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.140004dc0
mov rbx, rax
lea rax, [0x14002be70]
cmp rax, rbx
je 0x1400169aa
mov rcx, qword [0x14002be70]
test rcx, rcx
je 0x14001697f
mov rdx, qword [0x14002be78]
call fcn.14000dd80
mov rcx, qword [0x14002be70]
mov rdx, qword [0x14002be80]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
cmp rdx, 0x1000
jb 0x140016968
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400169f0
mov rcx, r8
call fcn.14001e2dc
mov qword [0x14002be70], r13
xorps xmm0, xmm0
movdqu xmmword [0x14002be78], xmm0
mov rax, qword [rbx]
mov qword [0x14002be70], rax
mov rax, qword [rbx + 8]
mov qword [0x14002be78], rax
mov rax, qword [rbx + 0x10]
mov qword [0x14002be80], rax
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400169fc
mov rdx, qword [rsp + 0x38]
call fcn.14000dd80
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400169f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400169f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e2dc
lea rcx, [rbp - 0x70]
call fcn.140004ba0
mov rbx, rax
lea rax, [0x14002b128]
cmp rax, rbx
je 0x140016a8c
mov rdx, qword [0x14002b140]
cmp rdx, 0x10
jb 0x140016a51
mov rcx, qword [0x14002b128]
inc rdx
cmp rdx, 0x1000
jb 0x140016a4c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016abe
mov rcx, r8
call fcn.14001e2dc
movdqa xmm0, xmmword [0x140024860]
movdqu xmmword [0x14002b138], xmm0
mov byte [0x14002b128], 0
movups xmm0, xmmword [rbx]
movups xmmword [0x14002b128], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x14002b138], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140016aca
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016ac5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016ac5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e2dc
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
lea rdx, str.STATUS
lea rcx, [rsp + 0x50]
call fcn.140001310
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.1400068c0
nop
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
lea rbx, [0x14002b0a8]
cmp rbx, rcx
je 0x140016b5f
mov r9, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140016b15
mov r9, qword [rcx]
mov r14, qword [rcx + 0x10]
mov rax, qword [0x14002b0c0]
cmp r14, rax
ja 0x140016b4d
cmp rax, 0x10
cmovae rbx, qword [0x14002b0a8]
mov qword [0x14002b0b8], r14
mov r8, r14
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + r14], 0
jmp 0x140016b58
mov rdx, r14
mov rcx, rbx
call fcn.140001470
lea r14, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rdx, [0x1400231ac]
lea rcx, [rsp + 0x30]
call fcn.140001310
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400089f0
mov rbx, rax
lea rax, [0x14002b108]
cmp rax, rbx
je 0x140016c03
mov rdx, qword [0x14002b120]
cmp rdx, 0x10
jb 0x140016bc8
mov rcx, qword [0x14002b108]
inc rdx
cmp rdx, 0x1000
jb 0x140016bc3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016c35
mov rcx, r8
call fcn.14001e2dc
movdqa xmm0, xmmword [0x140024860]
movdqu xmmword [0x14002b118], xmm0
mov byte [0x14002b108], 0
movups xmm0, xmmword [rbx]
movups xmmword [0x14002b108], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x14002b118], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140016c42
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016c3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016c3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e2dc
nop
lea rcx, [rbp - 0x30]
call fcn.14000cbf0
nop
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x10], r14
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x88]
mov dword [rbp + rcx - 0x14], r8d
lea rcx, [rbp - 8]
call fcn.14000b290
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
test r15, r15
je 0x140016cd6
mov rdx, r12
mov rcx, r15
call fcn.14000dd80
sub rsi, r15
and rsi, 0xffffffffffffffe0
mov rax, r15
cmp rsi, 0x1000
jb 0x140016cca
add rsi, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016cca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
mov rcx, r15
call fcn.14001e2dc
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140016d0c
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140016d07
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016d4d
mov rcx, r8
call fcn.14001e2dc
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov al, 1
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14001e280
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3