Function at 0x140004ad0
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 0x140004b40
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.140005780
nop
mov rax, qword [rbp - 0x80]
test rax, rax
jne 0x140004b7c
lea r8d, [rax + 7]
lea rdx, str.Default
lea rcx, [rsp + 0x70]
call fcn.140005780
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 0x140004dd5
mov r12, r14
movzx ebx, byte [rbp + 0x208]
cmp rax, r12
jbe 0x140004f4a
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 0x140004be0
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 0x140004c51
lea r8, [rbp - 0x5b]
sub r8, r9
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.140005620
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 0x140004cb0
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_memmove
lea rax, [r15 + rdi]
mov byte [rax + r13], 0
mov edi, dword [rbp + 0x208]
jmp 0x140004cd0
mov qword [rsp + 0x20], r15
movzx r8d, bl
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.1400029c0
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x50]
cmp rsi, 0x10
jb 0x140004d07
lea rdx, [rsi + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140004cff
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004da9
mov rcx, r14
call fcn.14008bc44
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 0x140004bb6
cmp qword [rsp + 0x40], 0xa
jbe 0x140004dc9
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_memmove
mov byte [rsp + 0x5a], r14b
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140004db5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004db0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004db0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008bc44
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 [str.RSCFG]
mov dword [rbp - 0x70], eax
movzx eax, byte [0x1400cf3f4]
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.140005fe0
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 0x140004e87
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008bc44
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140004ed7
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ed2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ed2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008bc44
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rax, qword [rbp - 0x78]
cmp rax, 8
jb 0x140004f2c
lea rdx, [rax*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140004f24
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14008bc44
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.140005530
nop