Function at 0x140001340
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x270
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x20], 0x101
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x1400013b0
movabs rbp, 0x7ffffffffffffffe
cmp rdi, rbp
ja 0x14000168d
mov qword [rsp + 0x40], 7
cmp rdi, 7
ja 0x140001411
mov qword [rsp + 0x38], rdi
lea rbx, [rdi + rdi]
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x28], r14w
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x28]
jmp 0x1400014c5
mov rax, rdi
or rax, 7
cmp rax, rbp
jbe 0x14000142d
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14000145f
mov rbp, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140001693
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000148b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001693
mov rcx, rax
call fcn.140003410
test rax, rax
je 0x14000164d
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000149d
test rcx, rcx
je 0x14000149a
call fcn.140003410
mov rsi, rax
jmp 0x14000149d
mov rsi, r14
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbp
lea rbx, [rdi + rdi]
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], r14w
lea r10, [rsp + 0x28]
cmp rbp, 7
cmova r10, rsi
cmp rdi, 2
jb 0x140001559
lea r11, [rdi - 1]
lea r11, [r10 + r11*2]
mov rcx, r10
lea rbx, [0x140005584]
nop
mov rax, r11
sub rax, rcx
sar rax, 1
mov rdx, r14
je 0x14000151a
cmp word [rcx], 0x56
je 0x140001517
cmp rax, 1
je 0x14000151a
dec rax
add rcx, 2
cmp word [rcx], 0x56
jne 0x140001504
mov rdx, rcx
mov rcx, rdx
test rdx, rdx
je 0x140001559
mov r8d, 2
mov rdx, rbx
mov r9, rcx
sub r9, rbx
movzx eax, word [rdx + r9]
cmp ax, word [rdx]
jne 0x14000160a
add rdx, 2
sub r8, 1
jne 0x140001531
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
jne 0x1400015e3
lea r10, [rsp + 0x28]
cmp rbp, 7
cmova r10, rsi
cmp rdi, 6
jb 0x14000161c
lea r11, [rdi - 5]
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 0x1400015ac
cmp word [rcx], 0x56
je 0x1400015a9
cmp rax, 1
je 0x1400015ac
dec rax
add rcx, 2
cmp word [rcx], 0x56
jne 0x140001596
mov rdx, rcx
mov rcx, rdx
test rdx, rdx
je 0x14000161c
mov r8d, 6
mov rdx, rbx
mov r9, rcx
sub r9, rbx
movzx eax, word [rdx + r9]
cmp ax, word [rdx]
jne 0x140001613
add rdx, 2
sub r8, 1
jne 0x1400015c3
sub rcx, r10
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x14000161c
lea rdx, str.Virtual_environment_detected_in_username_check._Exiting...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002d10
lea rdx, [0x140002ee0]
mov rcx, rax
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]
mov bl, 1
jmp 0x14000161e
add rcx, 2
jmp 0x1400014f0
add rcx, 2
jmp 0x140001582
xor bl, bl
cmp rbp, 7
jbe 0x14000165c
lea rdx, [rbp*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001654
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001654
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140003454
movzx eax, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400033f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.1400011b0
int3
call fcn.140001110
int3