Function at 0x14002e370
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x68], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x64], ecx
xor eax, eax
mov qword [rbp - 8], rax
mov r12d, 8
mov sil, 1
xorps xmm6, xmm6
lea r13, [rbp + 0x20]
mov rbx, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 0x10], rax
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x58], eax
mov rax, qword [0x14414e230]
test rax, rax
jne 0x14002e425
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, r13
call rbx
mov rax, qword [rbp + 0x20]
mov qword [0x14414e230], rax
mov rax, qword [0x14414e230]
test rax, rax
je 0x14002e400
mov eax, 1
lock xadd qword [0x14414e230], rax
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x58]
mov qword [rbp], rax
lea rax, [0x140009750]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 0x10], rax
lea rax, [fcn.140008960]
mov qword [rbp + 0x18], rax
lea rax, [0x144143ea8]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 2
mov qword [rbp + 0x40], 0
mov rax, rbp
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 2
mov rbx, r14
mov qword [rbp + 0x78], r14
mov qword [rbp + 0x70], r15
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
lea rcx, [rbp - 0x40]
mov rdx, r13
call fcn.1400080c0
test r15, r15
sete al
or sil, al
test sil, 1
jne 0x14002e4cd
mov rcx, qword [0x14414e228]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0x80], rax
mov r8, qword [rbp - 0x38]
mov r9, qword [rbp - 0x30]
lea r13, [r8 + r9]
test r9, r9
mov qword [rbp + 0x88], r8
mov dword [rbp + 0x5c], r12d
mov qword [rbp - 0x18], r9
je 0x14002e510
movzx ecx, byte [r8]
movzx r15d, cl
test r15b, r15b
js 0x14002e530
lea r12, [r8 + 1]
jmp 0x14002e594
mov esi, 4
mov ebx, 8
xor r14d, r14d
xor r12d, r12d
xor r15d, r15d
xor edi, edi
jmp 0x14002e5e5
mov eax, r15d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r15b, 0xdf
jbe 0x14002e588
movzx r15d, byte [r8 + 2]
shl edx, 6
and r15d, 0x3f
or r15d, edx
cmp cl, 0xf0
jb 0x14002e922
lea r12, [r8 + 4]
movzx ecx, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl r15d, 6
and ecx, 0x3f
or ecx, r15d
or ecx, eax
mov r15d, ecx
cmp r15d, 0xffff
jbe 0x14002e594
jmp 0x14002e939
lea r12, [r8 + 2]
shl eax, 6
or eax, edx
mov r15d, eax
xor r14d, r14d
xor eax, eax
mov rcx, r13
sub rcx, r12
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
add rcx, rax
cmp rcx, 3
mov esi, 2
cmovae rsi, rcx
lea rbx, [rsi*2 + 4]
movabs rax, 0x3ffffffffffffffd
cmp rcx, rax
ja 0x14002eaf6
add rsi, 2
mov di, 1
movzx eax, byte [0x14414e2a8]
mov rcx, rbx
call fcn.140032380
test rax, rax
je 0x14002eaed
mov rdx, rax
mov rax, qword [rbp - 0x10]
inc eax
mov dword [rbp + 0x60], eax
mov word [rdx], r15w
mov ebx, 1
jmp 0x14002e62e
mov rsi, rcx
mov r14d, eax
mov word [rdx + rbx*2], r15w
inc rbx
mov rcx, rsi
test r12, r12
je 0x14002e670
test r14w, r14w
je 0x14002e650
xor eax, eax
mov r15d, r14d
cmp rbx, rcx
jne 0x14002e620
jmp 0x14002e719
cmp r12, r13
je 0x14002e670
mov r9, rcx
movzx ecx, byte [r12]
movzx r15d, cl
test r15b, r15b
js 0x14002e69b
inc r12
jmp 0x14002e70b
cmp di, 1
jne 0x14002e830
xor r12d, r12d
xor edi, edi
mov r15d, 0
mov esi, 0
cmp rbx, rcx
je 0x14002e74b
mov rsi, rcx
xor r15d, r15d
jmp 0x14002e626
mov r8, rdx
mov eax, r15d
and eax, 0x1f
movzx edx, byte [r12 + 1]
and edx, 0x3f
cmp r15b, 0xdf
jbe 0x14002e6fc
movzx r15d, byte [r12 + 2]
shl edx, 6
and r15d, 0x3f
or r15d, edx
cmp cl, 0xf0
jb 0x14002e7d5
movzx ecx, byte [r12 + 3]
add r12, 4
and eax, 7
shl eax, 0x12
shl r15d, 6
and ecx, 0x3f
or ecx, r15d
or ecx, eax
mov r15d, ecx
mov rdx, r8
cmp r15d, 0xffff
jbe 0x14002e70b
jmp 0x14002e7ef
add r12, 2
shl eax, 6
or eax, edx
mov r15d, eax
mov rdx, r8
mov rcx, r9
xor eax, eax
cmp rbx, rcx
jne 0x14002e620
mov rsi, r13
sub rsi, r12
add rsi, 3
mov r8, rcx
mov rcx, 0xffffffffffffffff
cmovb rsi, rcx
mov rcx, r8
shr rsi, 2
cmp ax, 1
sbb rsi, 0xffffffffffffffff
cmp di, 1
sbb rsi, 0xffffffffffffffff
mov r14d, eax
mov qword [rbp + 0x98], rdx
inc rsi
add rsi, rbx
mov qword [rbp + 0x90], rcx
jb 0x14002eada
mov r9, rcx
add rcx, rcx
cmp rcx, rsi
cmova rsi, rcx
xor edx, edx
mov rax, rsi
shr rax, 0x3e
sete al
cmp rsi, 5
mov r8d, 4
cmovb rsi, r8
test r9, r9
je 0x14002e7a7
mov r8, qword [rbp + 0x98]
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x30], rcx
mov ecx, 2
jmp 0x14002e7a9
xor ecx, ecx
lea r8, [rsi + rsi]
mov dl, al
add edx, edx
mov qword [rbp + 0x28], rcx
mov rcx, rbp
lea r9, [rbp + 0x20]
call fcn.14001b120
cmp qword [rbp], 0
jne 0x14002eade
mov rdx, qword [rbp + 8]
jmp 0x14002e626
add r12, 3
shl eax, 0xc
or r15d, eax
mov rdx, r8
cmp r15d, 0xffff
jbe 0x14002e70b
lea ecx, [r15 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov eax, r15d
mov r15d, ecx
mov rcx, r9
cmp rbx, rcx
jne 0x14002e620
jmp 0x14002e719
mov qword [rbp + 0x90], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov qword [rbp + 0x98], rdx
mov rcx, rdx
mov edx, dword [rbp + 0x64]
mov r12d, dword [rbp + 0x5c]
mov r8d, r12d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002e9e2
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rbp + 0x20], rcx
mov edx, dword [rbp + 0x60]
cmp edx, 0xa
mov rdi, qword [rbp + 0x80]
lea r13, [rbp + 0x20]
jge 0x14002e967
cmp eax, 5
jne 0x14002e8c0
mov eax, edx
mov qword [rbp - 0x10], rax
jmp 0x14002e8d5
test r12d, r12d
je 0x14002e967
xor r12d, r12d
cmp eax, 0x57
jne 0x14002e967
mov rcx, r13
call fcn.140019a70
mov dil, 1
xor esi, esi
cmp qword [rbp + 0x90], 0
mov r14, qword [rbp + 0x88]
mov r15, qword [rbp + 0x80]
mov rbx, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
je 0x14002e3e0
mov rcx, qword [0x14414e228]
xor esi, esi
xor edx, edx
mov r8, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002e3e0
lea r12, [r8 + 3]
shl eax, 0xc
or r15d, eax
cmp r15d, 0xffff
jbe 0x14002e594
lea ecx, [r15 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov eax, 1
mov r14d, r15d
mov r15d, ecx
jmp 0x14002e599
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov rsi, 0xffffffffffffffff
cmp qword [rbp + 0x90], 0
je 0x14002e99d
mov rcx, qword [0x14414e228]
xor edx, edx
mov r8, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x14002e9b8
mov rcx, qword [0x14414e228]
xor edx, edx
mov r8, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rbx, 0xffffffffffffffff
je 0x14002e9c7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm6, xmmword [rbp + 0xb0]
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp qword [rbp + 0x90], 0
mov rdi, qword [rbp + 0x80]
je 0x14002ea09
mov rcx, qword [0x14414e228]
xor edx, edx
mov r8, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [rbp + 0x20], 0
mov dword [rbp + 0x40], 0
mov word [rbp + 0x44], 0
movzx eax, byte [rbp + 0xa5]
mov byte [rbp + 0x41], al
xor al, 1
mov byte [rbp + 0x40], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov dword [rbp], 0x18
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], 1
mov rax, rbp
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x88]
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x70], rdi
mov qword [rbp - 0x28], rbx
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 0
lea r8, [rbp + 0x20]
mov rdx, qword [rbp - 0x18]
call fcn.140020b70
test rax, rax
je 0x14002eaa3
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, rbx
test rdi, rdi
jne 0x14002e9a2
jmp 0x14002e9b8
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rdi, rdi
je 0x14002e9c7
mov rcx, qword [0x14414e228]
xor edx, edx
mov r8, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002e9c7
xor ecx, ecx
jmp 0x14002eae6
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp + 0x10]
call fcn.140037330
jmp 0x14002eb26
mov eax, 2
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x70], rax
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov rcx, qword [rbp - 8]
mov rdx, rbx
call fcn.140037330
ud2