Function at 0x180037340
Capabilities:
Create pipe
Create thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov byte [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov r8, rcx
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1800373de
mov edx, 0x100040
mov rcx, qword [rsp + 0x78]
call fcn.180039cc0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
cdqe
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
cdqe
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov r8d, 0x10
lea rdx, [rsp + 0xa0]
lea rcx, [0x18007af9c]
call fcn.1800493f0
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov r8d, 0x10
lea rdx, [rsp + 0xa0]
lea rcx, [0x18007af04]
call fcn.1800493f0
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov r8d, 0x10
lea rdx, [rsp + 0xa0]
lea rcx, [0x18007af0c]
call fcn.1800493f0
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, qword [rsp + 0x50]
call fcn.18004bf20
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1800376cf
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x188
mov rcx, qword [rsp + 0x60]
call fcn.18004bee0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1800376b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800376ac
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18003769f
mov byte [rsp + 0x40], 1
mov r8d, 0x188
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.180056c20
call fcn.18004b310
mov rcx, qword [rsp + 0x48]
add rcx, 0x18
mov rdx, qword [rsp + 0x48]
add rdx, 0x10
mov qword [rsp + 0x90], rdx
xor r9d, r9d
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xd8]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0xe8]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0xf0]
mov dword [rax + 0x34], ecx
mov rax, qword [rsp + 0x48]
add rax, 0x48
mov rdx, qword [rsp + 0xd0]
mov rcx, rax
call fcn.180057340
mov edx, 0x188
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x70], rax
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x48]
mov ecx, 0x188
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
lea r8, [0x180039730]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 0x40], rax
mov edx, 7
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x14c], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1800376aa
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800376b8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, byte [rsp + 0x40]
add rsp, 0xb8
pop rdi
pop rsi
ret