Function at 0x14003c6b0
Capabilities:
Create pipe
Create process on windows
Get common file path
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1210]
mov eax, 0x1310
call fcn.1400a9150
sub rsp, rax
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rbp + 0x1200], rax
mov r14, rdx
mov rdi, rcx
xor r15d, r15d
lea rcx, [rbp + 0x40]
xor edx, edx
mov r8d, 0x208
mov esi, r15d
call fcn.140080170
xor edx, edx
lea rcx, [rbp + 0x250]
mov r8d, 0x7d0
call fcn.140080170
xor edx, edx
mov dword [rbp - 0x40], 0x68
lea r8d, [r15 + 0x60]
lea rcx, [rbp - 0x38]
call fcn.140080170
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_WTSGetActiveConsoleSessionId]
mov edx, 0x208
mov qword [rbp - 0x80], r15
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x30], eax
mov ebx, eax
mov qword [rsp + 0x70], r15
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
lea r8, str.CheckNetIsolation
mov edx, 0x104
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAppend]
mov r9, rdi
lea r8, [rbp + 0x40]
lea rdx, str._s__s
lea rcx, [rbp + 0x250]
call fcn.14003cca0
cmp ebx, 0xffffffff
je 0x14003cbea
xor r9d, r9d
mov dword [rbp - 0x60], 0x18
lea r8, [rbp - 0x60]
mov qword [rbp - 0x58], r15
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x50], 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_CreatePipe]
test eax, eax
jne 0x14003c811
cmp qword [0x140103408], rsi
je 0x14003c7ec
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x140103400]
lea r9, str.Cant_create_pipe_from_system_while_creating_CheckNetIsolation__error___d
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [r15 + 2]
call qword [0x140103408]
cmp qword [0x140103410], rsi
je 0x14003c80a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_create_pipe_from_system_while_creating_CheckNetIsolation__error___d
call qword [0x140103410]
xor eax, eax
jmp 0x14003cc0b
mov rax, qword [rbp - 0x80]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x30]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov dword [rbp - 4], 0x100
mov qword [rsp + 0x68], r15
call fcn.1400397b0
test eax, eax
je 0x14003cb0d
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x30]
mov r9d, 8
mov qword [rsp + 0x60], r15
lea r8, [rsp + 0x60]
mov dword [rbp + 0x30], r15d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
jne 0x14003c8d0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x520
je 0x14003c8d0
cmp qword [0x140103408], rsi
je 0x14003c8a9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x140103400]
lea r9, str.Cant_get_token_information_while_creating_CheckNetIsolation__error___d
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rdx + 2]
call qword [0x140103408]
cmp qword [0x140103410], rsi
je 0x14003ca18
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_get_token_information_while_creating_CheckNetIsolation__error___d
call qword [0x140103410]
jmp 0x14003ca18
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jne 0x14003c8e9
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x28], rax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateTokenEx]
test eax, eax
je 0x14003c9c2
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x250]
lea rax, [rbp - 0x40]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessAsUserW]
mov esi, eax
test eax, eax
jne 0x14003c9b5
cmp qword [0x140103408], r15
je 0x14003c997
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x140103400]
lea r9, str.Cant_create_process_from_system_while_creating_CheckNetIsolation__error___d
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rsi + 2]
call qword [0x140103408]
cmp qword [0x140103410], r15
je 0x14003c9b5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_create_process_from_system_while_creating_CheckNetIsolation__error___d
call qword [0x140103410]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14003ca0d
cmp qword [0x140103408], rsi
je 0x14003c9ef
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x140103400]
lea r9, str.Cant_duplicate_token_while_creating_CheckNetIsolation__error___d
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rdx + 2]
call qword [0x140103408]
cmp qword [0x140103410], rsi
je 0x14003ca0d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_duplicate_token_while_creating_CheckNetIsolation__error___d
call qword [0x140103410]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003ca28
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test esi, esi
je 0x14003cbea
xor edx, edx
lea rcx, [rbp + 0xa20]
mov r8d, 0x7d1
call fcn.140080170
mov rcx, qword [rbp - 0x70]
mov edx, 0x32
mov dword [rsp + 0x60], r15d
mov dword [rsp + 0x68], r15d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov ebx, eax
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x68]
mov r8d, 0x7d0
lea rdx, [rbp + 0xa20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_PeekNamedPipe]
cmp dword [rsp + 0x60], r15d
jbe 0x14003cba5
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov r8d, 0x7d0
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0xa20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14003ca30
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14003ca30
cmp rax, 0x7d1
jae 0x14003cc31
mov byte [rbp + rax + 0xa20], r15b
mov r8, 0xffffffffffffffff
lea rax, [rbp + 0xa20]
nop
inc r8
cmp byte [rax + r8], r15b
jne 0x14003caf0
lea rdx, [rbp + 0xa20]
mov rcx, r14
call fcn.140016c80
jmp 0x14003ca30
lea rax, [rbp - 0x78]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x250]
lea rax, [rbp - 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
mov esi, eax
test eax, eax
jne 0x14003ca30
cmp qword [0x140103408], r15
je 0x14003cb85
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x140103400]
lea r9, str.Cant_create_process_from_user_while_creating_CheckNetIsolation__error___d
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rsi + 2]
call qword [0x140103408]
cmp qword [0x140103410], r15
je 0x14003cbea
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_create_process_from_user_while_creating_CheckNetIsolation__error___d
call qword [0x140103410]
jmp 0x14003cbea
test ebx, ebx
jne 0x14003ca30
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp + 0x30]
mov dword [rbp + 0x30], r15d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
mov eax, dword [rbp + 0x30]
cmp eax, 0x103
je 0x14003ca30
mov rcx, qword [rbp - 0x70]
test eax, eax
mov esi, r15d
sete sil
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14003cbf9
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14003cc09
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x1200]
xor rcx, rsp
call fcn.14003d6b0
mov rbx, qword [rsp + 0x1350]
add rsp, 0x1310
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14003d7dc
int3