Function at 0x140013960
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 - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1401c61a8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, rcx
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x49], rcx
xor edi, edi
mov dword [rbp - 0x41], edi
mov qword [rbp - 0x11], rdi
mov r13d, edi
mov qword [rbp - 1], rdi
mov qword [rbp + 7], 0xf
mov byte [rbp - 0x11], dil
mov dword [rbp - 0x49], edi
lea r8, [rbp - 0x49]
xor edx, edx
mov esi, 2
mov ecx, esi
call sub.Secur32.dll_GetUserNameExW
mov r14d, dword [rbp - 0x49]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov r15d, edi
mov qword [rbp - 0x21], rdi
test r14, r14
je 0x140013a51
lea rdi, [r14 + r14]
cmp rdi, 0x1000
jb 0x140013a1c
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140013d5e
call fcn.140158280
test rax, rax
je 0x140013cda
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140013a30
test rdi, rdi
je 0x140013a2b
mov rcx, rdi
call fcn.140158280
jmp 0x140013a2d
xor eax, eax
mov rbx, rax
mov qword [rbp - 0x31], rbx
lea r15, [rdi + rbx]
mov qword [rbp - 0x21], r15
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x29], r15
xor edi, edi
jmp 0x140013a55
mov rbx, qword [rbp - 0x31]
test rbx, rbx
je 0x140013bb5
lea r8, [rbp - 0x49]
mov rdx, rbx
mov ecx, esi
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x140013bb5
mov r8d, dword [rbp - 0x49]
add r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.140013d90
lea rcx, [rbp - 0x11]
cmp rcx, rax
je 0x140013ab2
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r13, qword [rbp - 1]
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140013af0
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013aeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013aeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401582c0
test r13, r13
je 0x140013bb5
lea r14, [rbp - 0x11]
mov rdi, qword [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae r14, rdi
cmp r13, 0x10
jae 0x140013b2d
movups xmm0, xmmword [r14]
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x27], 0xf
mov qword [rbp + 0x1f], r13
lea rax, [rbp + 0xf]
jmp 0x140013bf8
mov r12, r13
or r12, 0xf
movabs rax, 0x7fffffffffffffff
cmp r12, rax
cmova r12, rax
lea rcx, [r12 + 1]
cmp rcx, 0x1000
jb 0x140013b82
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140013d58
mov rcx, rax
call fcn.140158280
mov rcx, rax
test rax, rax
je 0x140013c9d
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140013b90
test rcx, rcx
je 0x140013b8e
call fcn.140158280
jmp 0x140013b90
xor eax, eax
mov qword [rbp + 0xf], rax
lea r8, [r13 + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x27], r12
mov r12, qword [rbp - 0x39]
mov qword [rbp + 0x1f], r13
lea rax, [rbp + 0xf]
jmp 0x140013bf8
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x19], 0xf
mov qword [rbp - 0x21], 7
mov eax, dword [str.UNKNOWN]
mov dword [rbp - 0x31], eax
movzx eax, word [0x14016c3ac]
mov word [rbp - 0x2d], ax
movzx eax, byte [0x14016c3ae]
mov byte [rbp - 0x2b], al
mov byte [rbp - 0x2a], 0
lea rax, [rbp - 0x31]
mov esi, 1
mov rdi, qword [rbp - 0x11]
xor ecx, ecx
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r12 + 0x10], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0xf
mov byte [rax], cl
or esi, 4
test sil, 2
je 0x140013c65
and esi, 0xfffffffd
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140013c65
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013c5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013c5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401582c0
nop
test sil, 1
je 0x140013caa
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140013caa
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013ca4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013ca4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401582c0
nop
test rbx, rbx
je 0x140013cea
sub r15, rbx
sar r15, 1
lea rdx, [r15 + r15]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140013ce1
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013ce1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1401582c0
nop
mov rax, qword [rbp + 7]
cmp rax, 0x10
jb 0x140013d28
lea rdx, [rax + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140013d20
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013d20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1401582c0
mov rax, r12
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140158360
lea r11, [rsp + 0xa0]
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 fcn.140008530
nop
call fcn.140008530
int3