Function at 0x140004df0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov r13, rcx
xor r14d, r14d
mov dword [rbp + 0x230], 0x105
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x140004e50
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x70]
call fcn.140002730
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x140004ec2
cmp qword [rbp - 0x78], 7
jb 0x140004ea6
lea rbx, [rsp + 0x70]
cmova rbx, qword [rsp + 0x70]
mov qword [rbp - 0x80], 7
lea r8d, [rcx + 0xe]
lea rdx, str.Default
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + 0xe], r14w
jmp 0x140004ebe
lea r9, str.Default
xor r8d, r8d
lea edx, [r8 + 7]
lea rcx, [rsp + 0x70]
call fcn.140002bb0
mov rcx, qword [rbp - 0x80]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov rbx, r14
mov qword [rsp + 0x40], rbx
mov edx, 0xf
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x30], bl
mov r12d, r14d
test rcx, rcx
je 0x1400050d2
nop dword [rax]
cmp rcx, r14
jbe 0x1400052fb
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rax, qword [rsp + 0x70]
movzx ecx, word [rax + r14*2]
lea r10, [rbp - 0x33]
nop dword [rax]
nop word [rax + rax]
dec r10
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r10], cl
mov ecx, edx
test edx, edx
jne 0x140004f20
lea r9, [rbp + 0x228]
lea r8, [rbp - 0x33]
mov rdx, r10
lea rcx, [rbp - 0x70]
call fcn.1400024e0
nop
lea r9, [rbp - 0x70]
mov rdi, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x58]
cmp rsi, 0xf
cmova r9, rdi
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
mov r15, qword [rbp - 0x60]
cmp r15, rax
ja 0x140004fbe
lea rax, [rcx + r15]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8, r15
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + r15], 0
jmp 0x140004fdb
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.140002d30
mov rsi, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x70]
cmp rsi, 0xf
jbe 0x140005012
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000500a
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000509e
mov rcx, rdi
call fcn.1400824b8
inc r12d
inc r14
movsxd rax, r12d
mov rcx, qword [rbp - 0x80]
cmp rax, rcx
jb 0x140004ef0
mov rbx, qword [rsp + 0x40]
cmp rbx, 0xa
jbe 0x14000514b
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov r8d, 0xa
cmovb r8, rbx
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.140002620
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400050aa
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400050a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rdx, xmm0
movq rbx, xmm1
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1400c7500]
movdqu xmmword [rsp + 0x60], xmm1
mov eax, dword [str.RSCFG]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x1400c749c]
mov byte [rsp + 0x54], al
mov byte [rsp + 0x55], 0
lea rdi, [rsp + 0x30]
cmp rdx, 0xf
cmova rdi, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
cmp rbx, 0xa
ja 0x1400051ab
lea rax, [rbx + 5]
mov qword [rsp + 0x60], rax
lea rax, [rbx + rdi]
cmp rax, rcx
jbe 0x14000515f
lea rax, [rsp + 0x55]
cmp rdi, rax
ja 0x14000515f
lea rax, [rsp + 0x50]
cmp rax, rdi
ja 0x140005155
mov rsi, r14
jmp 0x140005162
mov rdx, qword [rsp + 0x48]
jmp 0x1400050cf
lea rsi, [rsp + 0x50]
sub rsi, rdi
jmp 0x140005162
mov rsi, rbx
lea rcx, [rsp + 0x50]
add rcx, rbx
mov r8d, 6
lea rdx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memmove
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x50]
add rcx, rsi
mov r8, rbx
sub r8, rsi
lea rdx, [rsi + rbx]
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x50]
jmp 0x1400051c3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.140003050
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], r14
mov qword [r13 + 0x18], r14
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r13 + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140005233
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000522e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000522e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
movdqa xmm0, xmmword [0x1400c74e0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140005286
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005281
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005281
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x1400052dd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400052d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
mov rax, r13
mov rbx, qword [rsp + 0x320]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140005a80
nop
int3