Function at 0x140001570
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov dword [rbp + 0x1b8], 0x101
lea rdx, [rbp + 0x1b8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor r14d, r14d
mov qword [rsp + 0x30], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x1400015d0
movabs rsi, 0x7ffffffffffffffe
cmp rbx, rsi
ja 0x140001948
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x60], rax
mov ecx, 0x10
call fcn.140003ef0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x30]
mov qword [rax], rcx
mov qword [rax + 8], r14
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x50], 7
cmp rbx, 7
ja 0x14000164d
mov qword [rsp + 0x48], rbx
lea r8, [rbx + rbx]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140D.dll_memcpy
mov word [rsp + rbx*2 + 0x38], r14w
jmp 0x140001699
mov rax, rbx
or rax, 7
cmp rax, rsi
jbe 0x1400017f8
movabs rcx, 0x7fffffffffffffff
add rcx, rcx
call fcn.1400039c0
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.VCRUNTIME140D.dll_memcpy
mov word [rbx + rdi], r14w
lea r10, [rsp + 0x38]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x50]
cmp rsi, 7
cmova r10, rdi
mov r11, qword [rsp + 0x48]
cmp r11, 2
jb 0x140001739
lea rbx, [r11 - 1]
lea rbx, [r10 + rbx*2]
mov rcx, r10
lea r15, [0x1400066ac]
nop dword [rax]
mov rax, rbx
sub rax, rcx
sar rax, 1
mov rdx, r14
je 0x1400016fa
cmp word [rcx], 0x56
je 0x1400016f7
cmp rax, 1
je 0x1400016fa
dec rax
add rcx, 2
cmp word [rcx], 0x56
jne 0x1400016e4
mov rdx, rcx
mov rcx, rdx
test rdx, rdx
je 0x140001739
mov r8d, 2
mov rdx, r15
mov r9, rcx
sub r9, r15
movzx eax, word [r9 + rdx]
cmp ax, word [rdx]
jne 0x140001823
add rdx, 2
sub r8, 1
jne 0x140001711
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
jne 0x1400017d0
lea r10, [rsp + 0x38]
cmp rsi, 7
cmova r10, rdi
cmp r11, 6
jb 0x140001835
add r11, 0xfffffffffffffffb
lea r11, [r10 + r11*2]
mov rcx, r10
lea rbx, str.VMware
mov rax, r11
sub rax, rcx
sar rax, 1
mov rdx, r14
je 0x14000178c
cmp word [rcx], 0x56
je 0x140001789
cmp rax, 1
je 0x14000178c
dec rax
add rcx, 2
cmp word [rcx], 0x56
jne 0x140001776
mov rdx, rcx
mov rcx, rdx
test rdx, rdx
je 0x140001835
mov r8d, 6
mov rdx, rbx
mov r9, rcx
sub r9, rbx
nop word [rax + rax]
movzx eax, word [rdx + r9]
cmp ax, word [rdx]
jne 0x14000182c
add rdx, 2
sub r8, 1
jne 0x1400017b0
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x140001835
lea rdx, str.Virtual_environment_detected_in_username_check._Exiting...
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400031f0
lea rdx, [0x1400033c0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
mov sil, 1
jmp 0x140001838
mov rsi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14000194e
jmp 0x140001667
add rcx, 2
jmp 0x1400016d0
add rcx, 2
jmp 0x140001762
xor sil, sil
mov edx, 3
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.MSVCP140D.dll_public:_void___cdecl_std::_Lockit::constructor_int____ptr64]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000186d
mov rax, qword [rcx + 8]
mov qword [rcx + 8], r14
test rax, rax
je 0x14000186d
mov qword [rax], r14
mov rax, qword [rax + 8]
test rax, rax
jne 0x140001861
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.MSVCP140D.dll_public:_void___cdecl_std::_Lockit::destructor_void____ptr64]
mov rax, qword [rsp + 0x50]
cmp rax, 7
jbe 0x140001905
mov rdi, qword [rsp + 0x38]
lea rbx, [rax + 1]
test rdi, rdi
jne 0x1400018f9
test rbx, rbx
je 0x1400018f9
lea rax, str.null_pointer_cannot_point_to_a_block_of_non_zero_size
mov qword [rsp + 0x28], rax
lea rax, [0x14000655c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3cb
lea rdx, [0x140006560]
lea ecx, [rdi + 2]
call qword [sym.imp.ucrtbased.dll__CrtDbgReport]
cmp eax, 1
jne 0x1400018d3
int3
mov qword [rsp + 0x20], r14
mov r9d, 0x3cb
lea r8, str.E:Visual_stVCToolsMSVC14.38.33130includexmemory
lea rdx, [0x140006610]
lea rcx, str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call qword [sym.imp.ucrtbased.dll__invalid_parameter]
lea rdx, [rbx + rbx]
mov rcx, rdi
call fcn.1400036a0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], r14
mov edx, 0x10
call fcn.140003f60
movzx eax, sil
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011e0
nop
call fcn.140001140
nop
int3