Function at 0x140001370
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 0x1400013d0
movabs rsi, 0x7ffffffffffffffe
cmp rbx, rsi
ja 0x140001748
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x60], rax
mov ecx, 0x10
call fcn.140003b20
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 0x14000144d
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 0x140001499
mov rax, rbx
or rax, 7
cmp rax, rsi
jbe 0x1400015f8
movabs rcx, 0x7fffffffffffffff
add rcx, rcx
call fcn.140003780
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 0x140001539
lea rbx, [r11 - 1]
lea rbx, [r10 + rbx*2]
mov rcx, r10
lea r15, [0x14000669c]
nop dword [rax]
mov rax, rbx
sub rax, rcx
sar rax, 1
mov rdx, r14
je 0x1400014fa
cmp word [rcx], 0x56
je 0x1400014f7
cmp rax, 1
je 0x1400014fa
dec rax
add rcx, 2
cmp word [rcx], 0x56
jne 0x1400014e4
mov rdx, rcx
mov rcx, rdx
test rdx, rdx
je 0x140001539
mov r8d, 2
mov rdx, r15
mov r9, rcx
sub r9, r15
movzx eax, word [r9 + rdx]
cmp ax, word [rdx]
jne 0x140001623
add rdx, 2
sub r8, 1
jne 0x140001511
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
jne 0x1400015d0
lea r10, [rsp + 0x38]
cmp rsi, 7
cmova r10, rdi
cmp r11, 6
jb 0x140001635
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 0x14000158c
cmp word [rcx], 0x56
je 0x140001589
cmp rax, 1
je 0x14000158c
dec rax
add rcx, 2
cmp word [rcx], 0x56
jne 0x140001576
mov rdx, rcx
mov rcx, rdx
test rdx, rdx
je 0x140001635
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 0x14000162c
add rdx, 2
sub r8, 1
jne 0x1400015b0
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x140001635
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.140002fb0
lea rdx, [0x140003180]
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 0x140001638
mov rsi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14000174e
jmp 0x140001467
add rcx, 2
jmp 0x1400014d0
add rcx, 2
jmp 0x140001562
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 0x14000166d
mov rax, qword [rcx + 8]
mov qword [rcx + 8], r14
test rax, rax
je 0x14000166d
mov qword [rax], r14
mov rax, qword [rax + 8]
test rax, rax
jne 0x140001661
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 0x140001705
mov rdi, qword [rsp + 0x38]
lea rbx, [rax + 1]
test rdi, rdi
jne 0x1400016f9
test rbx, rbx
je 0x1400016f9
lea rax, str.null_pointer_cannot_point_to_a_block_of_non_zero_size
mov qword [rsp + 0x28], rax
lea rax, [0x14000654c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3cb
lea rdx, [0x140006550]
lea ecx, [rdi + 2]
call qword [sym.imp.ucrtbased.dll__CrtDbgReport]
cmp eax, 1
jne 0x1400016d3
int3
mov qword [rsp + 0x20], r14
mov r9d, 0x3cb
lea r8, str.E:Visual_stVCToolsMSVC14.38.33130includexmemory
lea rdx, [0x140006600]
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.140003460
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.140003b90
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