Function at 0x140002c60
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140075078]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r14d, r8d
mov r15, rdx
xor r12d, r12d
mov esi, r12d
mov edi, 1
lock xadd dword [0x14007ae88], edi
inc edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
mov dword [rsp + 0x20], edi
mov r9d, ebx
lea rdx, str.ko._x._x._x
lea rcx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r12w
lea r8d, [r12 + 9]
lea rdx, str..pipe_
lea rcx, [rbp - 0x78]
call fcn.140003c60
nop
lea rax, [rbp + 0x50]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140002d10
mov rcx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x60]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140002d5a
lea rdi, [rcx + rdx]
mov qword [rbp - 0x68], rdi
lea rbx, [rbp - 0x78]
cmp r8, 8
cmovae rbx, qword [rbp - 0x78]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x140002d6f
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x50]
xor r8d, r8d
lea rcx, [rbp - 0x78]
int3
mov qword [rsp + 0x40], 0xffffffffffffffff
mov r8d, r14d
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140002e52
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x68], 1
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x7d0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x80003
mov r9d, 1
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002e41
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140002e49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], 0xffffffffffffffff
jmp 0x140002e49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], 0
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r12w
mov dword [rbp + 0x48], 7
mov rax, qword [rsp + 0x40]
mov qword [rbp], rax
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], 0
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov dword [rbp - 8], 4
mov dword [rbp - 0x50], esi
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp]
mov qword [rsp + 0x50], rax
mov r9d, 2
lea r8, [rsp + 0x48]
lea edx, [r9 + 2]
mov rcx, r15
call fcn.1400036d0
mov rdi, rax
lea rcx, [rbp - 0x50]
call fcn.140002480
nop
lea rcx, [rbp]
call fcn.140002480
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x140002fc6
mov eax, 4
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x14007ae8c], ecx
jg 0x140003037
lea rax, [0x1400750c0]
mov qword [0x14007ae78], rax
mov dword [rsp + 0x70], 0x18
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], r12d
nop dword [rax + rax]
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140002faf
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140002fbc
lea ecx, [rbx + 0x1a]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002f40
mov rax, qword [0x14007ae78]
mov qword [rax], rbx
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140003009
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003004
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003004
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004e6b4
mov rax, rdi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14004eb00
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rcx, [0x14007ae8c]
int3