Function at 0x7ff6c5cd4aa0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rbx, rcx
mov dword [rbp + 0x210], 0x105
lea rdx, [rbp + 0x210]
lea rcx, [rbp - 0x50]
call qword [sym.imp.advapi32.dll_GetUserNameW]
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r14w
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x7ff6c5cd4b10
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.7ff6c5cd5750
nop
mov rax, qword [rbp - 0x80]
test rax, rax
jne 0x7ff6c5cd4b4c
lea r8d, [rax + 7]
lea rdx, [0x7ff6c5da23d0]
lea rcx, [rsp + 0x70]
call fcn.7ff6c5cd5750
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov edi, r14d
mov dword [rbp + 0x208], r14d
mov rsi, qword [rsp + 0x70]
test rax, rax
je 0x7ff6c5cd4da5
mov r12, r14
movzx ebx, byte [rbp + 0x208]
cmp rax, r12
jbe 0x7ff6c5cd4f1a
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, rsi
movzx ecx, word [rax + r12*2]
lea r9, [rbp - 0x5b]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul ecx
mov r8d, edx
shr r8d, 3
movzx eax, r8b
shl al, 2
lea edx, [rax + r8]
add dl, dl
sub cl, dl
add cl, 0x30
mov byte [r9], cl
mov ecx, r8d
test r8d, r8d
jne 0x7ff6c5cd4bb0
mov qword [rsp + 0x50], r14
mov r15, r14
mov qword [rsp + 0x60], r14
mov esi, 0xf
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x50], r8b
lea rax, [rbp - 0x5b]
cmp r9, rax
je 0x7ff6c5cd4c21
lea r8, [rbp - 0x5b]
sub r8, r9
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.7ff6c5cd55f0
mov rsi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
mov r14, qword [rsp + 0x50]
cmp rsi, 0x10
cmovae r9, r14
mov r13, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r13
cmp r15, rax
ja 0x7ff6c5cd4c80
lea rax, [r15 + r13]
mov qword [rsp + 0x40], rax
lea rdi, [rsp + 0x30]
cmp rcx, 0x10
cmovae rdi, qword [rsp + 0x30]
lea rcx, [rdi + r13]
mov r8, r15
mov rdx, r9
call sub.VCRUNTIME140.dll_memcpy_1
lea rax, [r15 + rdi]
mov byte [rax + r13], 0
mov edi, dword [rbp + 0x208]
jmp 0x7ff6c5cd4ca0
mov qword [rsp + 0x20], r15
movzx r8d, bl
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.7ff6c5cd2990
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x50]
cmp rsi, 0x10
jb 0x7ff6c5cd4cd7
lea rdx, [rsi + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x7ff6c5cd4ccf
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff6c5cd4d79
mov rcx, r14
call fcn.7ff6c5d5e4b0
inc edi
mov dword [rbp + 0x208], edi
inc r12
movsxd rax, edi
cmp rax, qword [rbp - 0x80]
mov rax, qword [rbp - 0x80]
mov rsi, qword [rsp + 0x70]
mov r14d, 0
jb 0x7ff6c5cd4b86
cmp qword [rsp + 0x40], 0xa
jbe 0x7ff6c5cd4d99
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], 0xf
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov qword [rsp + 0x60], 0xa
lea r8d, [r14 + 0xa]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy_1
mov byte [rsp + 0x5a], r14b
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x7ff6c5cd4d85
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff6c5cd4d80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff6c5cd4d80
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff6c5d5e4b0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x40], xmm1
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rbp + 0x200]
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x58], 0xf
mov qword [rbp - 0x60], 5
mov eax, dword [0x7ff6c5da23e0]
mov dword [rbp - 0x70], eax
movzx eax, byte [0x7ff6c5da23e4]
mov byte [rbp - 0x6c], al
mov byte [rbp - 0x6b], 0
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.7ff6c5cd5fb0
mov qword [rbx], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x7ff6c5cd4e57
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff6c5cd4e52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff6c5cd4e52
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff6c5d5e4b0
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x7ff6c5cd4ea7
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff6c5cd4ea2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff6c5cd4ea2
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff6c5d5e4b0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rax, qword [rbp - 0x78]
cmp rax, 8
jb 0x7ff6c5cd4efc
lea rdx, [rax*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x7ff6c5cd4ef4
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff6c5cd4ef4
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.7ff6c5d5e4b0
mov rax, rbx
mov rbx, qword [rsp + 0x318]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.7ff6c5cd5500
nop