Function at 0x140004a30
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 0x140004a92
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140005740
nop
mov r13, qword [rbp - 0x60]
test r13, r13
jne 0x140004acb
lea r8d, [r13 + 7]
lea rdx, str.Default
lea rcx, [rbp - 0x70]
call fcn.140005740
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 0x140004ced
mov r15, r14
nop dword [rax]
cmp r13, r15
jbe 0x140004eef
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 0x140004b21
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 0x140004b8d
lea r8, [rsp + 0x65]
sub r8, r9
mov rdx, r9
lea rcx, [rsp + 0x70]
call fcn.1400055e0
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 0x140004bdf
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_memmove
mov byte [r14 + rbx], 0
jmp 0x140004bfd
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.1400029e0
mov rsi, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x70]
cmp rsi, 0x10
jb 0x140004c34
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140004c2c
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004cc5
mov rcx, rdi
call fcn.140096dc8
inc r12d
inc r15
movsxd rax, r12d
mov rbx, qword [rsp + 0x40]
xor r14d, r14d
lea esi, [r14 + 0xf]
cmp rax, r13
jb 0x140004b00
cmp rbx, 0xa
jbe 0x140004ce9
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_memmove
mov byte [rsp + 0x7a], r14b
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140004cd1
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ccc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ccc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
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 [str.RSCFG]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x1400da3ec]
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 0x140004da9
lea rax, [r8 + rbx]
mov qword [rsp + 0x60], rax
lea rsi, [rsp + 0x50]
lea rax, [rbx + rdi]
cmp rax, rsi
jbe 0x140004d65
lea rax, [rsi + r8]
cmp rdi, rax
ja 0x140004d65
cmp rsi, rdi
jbe 0x140004d68
mov r14, rsi
sub r14, rdi
jmp 0x140004d68
mov r14, rbx
lea rcx, [rsi + rbx]
inc r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
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 0x140004dc6
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.140002d00
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 0x140004e31
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140004e80
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x30], 0
mov rax, qword [rbp - 0x58]
cmp rax, 8
jb 0x140004ed1
lea rdx, [rax*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140004ec9
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ec9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140096dc8
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.1400054f0
nop
int3