Function at 0x14007ed20
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rcx
mov qword [rcx + 0x20], rdx
call fcn.140082570
mov rax, qword [0x14022a710]
mov ebx, dword [rax + 0x7a8]
lea rdi, [rax + 0x734]
mov ecx, 9
call fcn.1401507f8
mov rsi, rax
lea rax, [0x14021bd28]
lea rcx, [0x14021be30]
test ebx, ebx
cmove rcx, rax
mov edx, 1
call fcn.140017620
mov rdx, rsi
mov rcx, rdi
call fcn.140018390
mov byte [rsi + 8], 0
mov qword [rsp + 0x38], rsi
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rsi + rax], 0
jne 0x14007edb0
test rax, rax
jne 0x14007f0c6
mov rax, qword [0x14022a710]
cmp dword [rax + 0x104], 0
je 0x14007f01f
mov rdi, rax
cmp byte [0x14022a77f], 0
jne 0x14007edf4
call fcn.140027570
mov byte [rdi + 0xe68], al
mov rax, qword [0x14022a710]
mov byte [0x14022a77f], 1
cmp byte [rdi + 0xe68], 0
je 0x14007f01f
cmp dword [rax + 0xa64], 0
je 0x14007f0c6
cmp dword [rax + 0xe20], 0
je 0x14007ef58
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
test rax, rax
je 0x14007efba
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetUserObjectInformationA]
cmp dword [rsp + 0x30], 0
jne 0x14007ef58
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea r8, [0x1401e9c5c]
mov edx, 0x101
lea rcx, [rsp + 0x40]
call fcn.140150800
movzx ecx, byte [rsp + 0x40]
test cl, cl
jne 0x14007f012
mov rax, qword [0x14022a710]
cmp dword [rax + 0xe20], 0
jne 0x14007eeb1
mov r9d, 0x101
lea r8, str.Default
mov edx, r9d
lea rcx, [rsp + 0x40]
call fcn.14015abcc
movzx ecx, byte [rsp + 0x40]
test cl, cl
jne 0x14007f012
mov byte [rbp + 8], 1
mov rax, qword [0x14022a710]
cmp dword [rax + 0xe20], 0
je 0x14007efe5
xor edx, edx
xor ecx, ecx
mov r8d, 0x400001cf
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov r14, rax
test rdi, rdi
je 0x14007f001
test rax, rax
je 0x14007f001
cmp rax, rdi
je 0x14007f001
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov r9d, gethostbyname
lea r8, [0x140228540]
lea rdx, [0x1402283e0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r14
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov rcx, rdi
call qword [sym.imp.USER32.dll_CloseDesktop]
mov rcx, rbp
call fcn.14007f120
mov byte [rbp + 8], 0
jmp 0x14007f0c6
mov dword [rsp + 0x34], 0x101
lea rcx, [rsp + 0x40]
call fcn.1400218a0
test al, al
jne 0x14007ee75
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14007ee75
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
je 0x14007ee5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.processHelper::GetCurrentUser_:_getusername_error__d_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018d00
nop
nop word [rax + rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x14007efc0
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.14014a5c0
mov rcx, rsi
call fcn.14014e740
xor eax, eax
jmp 0x14007f0ed
mov r9d, gethostbyname
lea r8, [0x140228540]
lea rdx, [0x1402283e0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbp
call fcn.14007f120
mov byte [rbp + 8], 0
jmp 0x14007f0c6
mov rcx, rbp
call fcn.14007f120
jmp 0x14007f0c6
cmp dword [rax + 0xa64], 0
je 0x14007f0c6
cmp dword [rax + 0xe20], 0
je 0x14007f0a1
xor edx, edx
xor ecx, ecx
mov r8d, 0x400001cf
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov r14, rax
test rdi, rdi
je 0x14007f0bd
test rax, rax
je 0x14007f0bd
cmp rax, rdi
je 0x14007f0bd
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x140228540]
lea rdx, [0x140228300]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r14
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov rcx, rdi
call qword [sym.imp.USER32.dll_CloseDesktop]
jmp 0x14007f0bd
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x140228540]
lea rdx, [0x140228300]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x14007f0c6
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.14014a5c0
mov rcx, rsi
call fcn.14014e740
mov byte [rbp + 8], 0
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140147af0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret