Function at 0x1400011d0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor r12d, r12d
mov dword [rsp + 0x68], 0x101
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400014e4
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x140001251
movabs r14, 0x7ffffffffffffffe
cmp rbx, r14
ja 0x140001556
movabs r13, 0x7fffffffffffffff
mov qword [rsp + 0x40], 7
cmp rbx, 8
jae 0x1400012ac
mov qword [rsp + 0x38], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x28], r12w
jmp 0x14000134f
mov rax, rbx
or rax, 7
cmp rax, r14
jbe 0x1400012c2
lea rcx, [r13*2]
jmp 0x1400012ea
mov r14, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r14, rcx
lea rcx, [r14 + 1]
cmp rcx, r13
ja 0x140001550
add rcx, rcx
cmp rcx, 0x1000
jb 0x140001316
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001550
mov rcx, rax
call fcn.140001f50
test rax, rax
je 0x1400014d3
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001328
test rcx, rcx
je 0x140001325
call fcn.140001f50
mov rsi, rax
jmp 0x140001328
mov rsi, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], r14
add rbx, rbx
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsi + rbx], r12w
lea rcx, [rsp + 0x28]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
cmovae rcx, r8
mov rax, qword [rsp + 0x38]
lea r15, [rcx + rax*2]
lea rsi, [rsp + 0x28]
cmovae rsi, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov ebx, 0xf
mov qword [rsp + 0x60], rbx
cmp rsi, r15
jne 0x14000139e
mov byte [rsp + 0x48], 0
jmp 0x140001493
mov rax, r15
sub rax, rsi
sar rax, 1
mov r14, r12
cmp rax, r13
ja 0x14000155c
cmp rax, 0x10
jb 0x140001440
mov rbx, rax
or rbx, 0xf
cmp rbx, r13
jbe 0x1400013ce
mov rbx, r13
jmp 0x1400013da
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
mov rcx, rbx
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x140001427
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001562
mov rcx, rax
call fcn.140001f50
mov rcx, rax
test rax, rax
je 0x140001420
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001436
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001433
call fcn.140001f50
jmp 0x140001436
mov rax, r12
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x48]
cmp rbx, 0x10
cmovae rcx, qword [rsp + 0x48]
movzx eax, byte [rsi]
mov byte [r14 + rcx], al
mov r14, qword [rsp + 0x58]
inc r14
mov qword [rsp + 0x58], r14
add rsi, 2
cmp rsi, r15
je 0x140001473
mov rbx, qword [rsp + 0x60]
jmp 0x140001440
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov byte [r14 + rax], 0
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x10], xmm1
cmp rdx, 8
jb 0x14000151d
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x1400014da
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140001f8c
jmp 0x14000151d
lea rdx, str.Error:_Unable_to_retrieve_username.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b50
mov rcx, rax
lea rdx, [0x140001d20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov ebx, 0xf
mov qword [rdi + 0x18], rbx
mov byte [rdi], r12b
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140001f30
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001110
int3
call fcn.1400011b0
nop
call fcn.1400011b0
nop
call fcn.140001110
int3