Function at 0x7ff7ec5653e0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x18], 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 dword [rbp + 0x208], 0x105
lea rdx, [rbp + 0x208]
lea rcx, [rbp - 0x50]
call qword [sym.imp.advapi32.dll_GetUserNameW]
xor r14d, r14d
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r14w
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x7ff7ec565442
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.7ff7ec566820
nop
mov r13, qword [rbp - 0x60]
test r13, r13
jne 0x7ff7ec56547b
lea r8d, [r13 + 7]
lea rdx, [0x7ff7ec66a460]
lea rcx, [rbp - 0x70]
call fcn.7ff7ec566820
mov r13, qword [rbp - 0x60]
mov qword [rsp + 0x30], r14
mov rbx, r14
mov qword [rsp + 0x40], rbx
mov esi, 0xf
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x30], bl
mov r12d, r14d
mov r15, qword [rbp - 0x70]
test r13, r13
je 0x7ff7ec56569d
mov r15, r14
nop dword [rax]
cmp r13, r15
jbe 0x7ff7ec56589f
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rax, qword [rbp - 0x70]
movzx ecx, word [rax + r15*2]
lea r9, [rsp + 0x65]
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 0x7ff7ec5654d1
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], rsi
mov byte [rsp + 0x70], r8b
lea rax, [rsp + 0x65]
cmp r9, rax
je 0x7ff7ec56553d
lea r8, [rsp + 0x65]
sub r8, r9
mov rdx, r9
lea rcx, [rsp + 0x70]
call fcn.7ff7ec5666c0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rbp - 0x78]
mov r14, qword [rbp - 0x80]
lea r9, [rsp + 0x70]
mov rdi, qword [rsp + 0x70]
cmp rsi, 0x10
cmovae r9, rdi
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, rbx
cmp r14, rax
ja 0x7ff7ec56558f
lea rax, [r14 + rbx]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rcx, 0x10
cmovae rax, qword [rsp + 0x30]
add rbx, rax
mov r8, r14
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy_1
mov byte [r14 + rbx], 0
jmp 0x7ff7ec5655ad
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.7ff7ec5636c0
mov rsi, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x70]
cmp rsi, 0x10
jb 0x7ff7ec5655e4
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x7ff7ec5655dc
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7ec565675
mov rcx, rdi
call fcn.7ff7ec61e988
inc r12d
inc r15
movsxd rax, r12d
mov rbx, qword [rsp + 0x40]
xor r14d, r14d
lea esi, [r14 + 0xf]
cmp rax, r13
jb 0x7ff7ec5654b0
cmp rbx, 0xa
jbe 0x7ff7ec565699
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x78], rsi
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov qword [rbp - 0x80], 0xa
lea r8d, [r14 + 0xa]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memcpy_1
mov byte [rsp + 0x7a], r14b
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x7ff7ec565681
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec56567c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec56567c
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rsp + 0x40], xmm1
mov rbx, qword [rsp + 0x40]
mov r15, qword [rbp - 0x70]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], rsi
mov r8d, 5
mov qword [rsp + 0x60], r8
mov eax, dword [0x7ff7ec66a470]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x7ff7ec66a474]
mov byte [rsp + 0x54], al
mov byte [rsp + 0x55], 0
lea rdi, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdi, qword [rsp + 0x30]
mov rax, rsi
sub rax, r8
cmp rbx, rax
ja 0x7ff7ec565759
lea rax, [r8 + rbx]
mov qword [rsp + 0x60], rax
lea rsi, [rsp + 0x50]
lea rax, [rbx + rdi]
cmp rax, rsi
jbe 0x7ff7ec565715
lea rax, [rsi + r8]
cmp rdi, rax
ja 0x7ff7ec565715
cmp rsi, rdi
jbe 0x7ff7ec565718
mov r14, rsi
sub r14, rdi
jmp 0x7ff7ec565718
mov r14, rbx
lea rcx, [rsi + rbx]
inc r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy_1
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsi + r14]
mov r8, rbx
sub r8, r14
lea rdx, [r14 + rbx]
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x50]
xor r14d, r14d
lea esi, [r14 + 0xf]
jmp 0x7ff7ec565776
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.7ff7ec563850
mov rbx, qword [rbp + 0x200]
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], rsi
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x7ff7ec5657e1
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec5657dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec5657dc
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x7ff7ec565830
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec56582b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec56582b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x30], 0
mov rax, qword [rbp - 0x58]
cmp rax, 8
jb 0x7ff7ec565881
lea rdx, [rax*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x7ff7ec565879
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec565879
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.7ff7ec61e988
mov rax, rbx
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.7ff7ec566540
nop
int3