Function at 0x140022d80
Capabilities:
Check for sandbox username or hostname
Check if file exists
Get file attributes
Get hostname
Get session user name

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1400be080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ecx, 0x202
mov dword [rsp + 0x20], 0x101
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140022e56
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140022de2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008f700
add rsp, 0x40
pop rdi
ret
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x58], rbp
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140022e1d
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140022e28
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140022e51
mov qword [rsp + 0x30], r15
call fcn.140022cd0
mov r15, rax
mov rcx, rdi
test rax, rax
jne 0x140022e69
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r15, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008f700
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rdx, str.Wilber
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x38], r14
xor r14d, r14d
mov esi, r14d
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
lea r12d, [r14 + 1]
test eax, eax
jne 0x140022ec6
lea r8d, [r14 + 2]
mov rcx, rbp
lea rdx, [0x1400aa238]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x140022ec3
lea r8d, [r14 + 2]
mov rcx, rbp
lea rdx, [0x1400aa240]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x140022ec6
mov esi, r12d
cmp byte [0x1400de356], r14b
mov qword [rsp + 0x50], rbx
je 0x140022f0f
lea rdx, str.Checking_whether_username_is_Wilber_and_NetBIOS_name_starts_with_SC_or_SW
lea rcx, [0x1400adc80]
call fcn.140025ea0
mov ebx, reloc.WS2_32.dll_ntohs
nop dword [rax]
lea rcx, [0x1400adc7c]
call fcn.140025ea0
sub rbx, r12
jne 0x140022ef0
lea rdx, str.Checking_whether_username_is_Wilber_and_NetBIOS_name_starts_with_SC_or_SW
mov ecx, esi
call fcn.140029ab0
lea rdx, str.admin
mov rcx, rdi
mov esi, r14d
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x140022f3c
lea rdx, str.SystemIT
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
cmove esi, r12d
cmp byte [0x1400de356], r14b
je 0x140022f7f
lea rdx, str.Checking_whether_username_is_admin_and_NetBIOS_name_is_SystemIT
lea rcx, [0x1400adc80]
call fcn.140025ea0
mov ebx, reloc.WLDAP32.dll_Ordinal_27
nop dword [rax]
lea rcx, [0x1400adc7c]
call fcn.140025ea0
sub rbx, r12
jne 0x140022f60
lea rdx, str.Checking_whether_username_is_admin_and_NetBIOS_name_is_SystemIT
mov ecx, esi
call fcn.140029ab0
lea rdx, str.admin
mov rcx, rdi
mov esi, r14d
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x140022fac
lea rdx, str.KLONE_X64_PC
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
cmove esi, r12d
cmp byte [0x1400de356], r14b
je 0x140022fef
lea rdx, str.Checking_whether_username_is_admin_and_DNS_hostname_is_KLONE_X64_PC
lea rcx, [0x1400adc80]
call fcn.140025ea0
mov ebx, reloc.WS2_32.dll_socket
nop dword [rax]
lea rcx, [0x1400adc7c]
call fcn.140025ea0
sub rbx, r12
jne 0x140022fd0
lea rdx, str.Checking_whether_username_is_admin_and_DNS_hostname_is_KLONE_X64_PC
mov ecx, esi
call fcn.140029ab0
lea rdx, str.John
mov rcx, rdi
mov esi, r14d
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x140023034
lea rcx, str.C:_take_screenshot.ps1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140023034
test al, 0x10
jne 0x140023034
lea rcx, str.C:loaddll.exe
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140023034
test al, 0x10
cmove esi, r12d
cmp byte [0x1400de356], r14b
je 0x14002307f
lea rdx, str.Checking_whether_username_is_John_and_two_sandbox_files_exist
lea rcx, [0x1400adc80]
call fcn.140025ea0
mov ebx, Ordinal_32
nop word [rax + rax]
lea rcx, [0x1400adc7c]
call fcn.140025ea0
sub rbx, r12
jne 0x140023060
lea rdx, str.Checking_whether_username_is_John_and_two_sandbox_files_exist
mov ecx, esi
call fcn.140029ab0
lea rcx, str.C:email.doc
mov esi, r14d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400230dc
test al, 0x10
jne 0x1400230dc
lea rcx, str.C:email.htm
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400230dc
test al, 0x10
jne 0x1400230dc
lea rcx, str.C:123email.doc
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400230dc
test al, 0x10
jne 0x1400230dc
lea rcx, str.C:123email.docx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400230dc
test al, 0x10
cmove esi, r12d
cmp byte [0x1400de356], r14b
je 0x14002311f
lea rdx, str.Checking_whether_four_known_sandbox_email_file_paths_exist
lea rcx, [0x1400adc80]
call fcn.140025ea0
mov ebx, Ordinal_35
nop dword [rax]
lea rcx, [0x1400adc7c]
call fcn.140025ea0
sub rbx, r12
jne 0x140023100
lea rdx, str.Checking_whether_four_known_sandbox_email_file_paths_exist
mov ecx, esi
call fcn.140029ab0
lea rcx, str.C:_a_foobar.bmp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rsi, qword [rsp + 0x60]
cmp eax, 0xffffffff
je 0x140023168
test al, 0x10
jne 0x140023168
lea rcx, str.C:_a_foobar.doc
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140023168
test al, 0x10
jne 0x140023168
lea rcx, str.C:_a_foobar.gif
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140023168
test al, 0x10
cmove r14d, r12d
cmp byte [0x1400de356], 0
mov r12, qword [rsp + 0x68]
je 0x1400231b1
lea rdx, str.Checking_whether_three_known_sandbox_foobar_files_exist
lea rcx, [0x1400adc80]
call fcn.140025ea0
mov ebx, Ordinal_41
nop
lea rcx, [0x1400adc7c]
call fcn.140025ea0
sub rbx, 1
jne 0x140023190
lea rdx, str.Checking_whether_three_known_sandbox_foobar_files_exist
mov ecx, r14d
call fcn.140029ab0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
jmp 0x140022e4c