Function at 0x140087570
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0x70], rcx
mov byte [rbp + 0x9f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x64], ecx
mov qword [rbp + 0x78], 0
mov dword [rbp + 0x84], 8
xorps xmm6, xmm6
lea rbx, [rbp + 0x20]
xor r14d, r14d
mov qword [rbp - 8], 0
nop dword [rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rbp + 0x5c], eax
mov rax, qword [0x1400d30f8]
test rax, rax
jne 0x140087618
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, rbx
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rbp + 0x20]
mov qword [0x1400d30f8], rax
mov rax, qword [0x1400d30f8]
test rax, rax
je 0x1400875f0
mov eax, 1
lock xadd qword [0x1400d30f8], rax
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x5c]
mov qword [rbp], rax
lea rax, [0x140010e90]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 0x10], rax
lea rax, [fcn.14000fbf0]
mov qword [rbp + 0x18], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
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
lea rcx, [rbp - 0x38]
mov rdx, rbx
call fcn.14000c100
test rsi, rsi
setne al
and r14b, al
cmp r14b, 1
jne 0x1400876aa
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, qword [rbp + 0x90]
call fcn.1400a6040
mov r9, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov r10, qword [rbp - 0x28]
lea rax, [r8 + r10]
mov qword [rbp + 0x68], rax
test r10, r10
mov qword [rbp + 0x90], r8
mov qword [rbp + 0x88], r9
mov qword [rbp - 0x10], r10
je 0x1400876f0
movzx r13d, byte [r8]
test r13b, r13b
js 0x140087710
lea r14, [r8 + 1]
jmp 0x140087771
mov r15d, 4
mov ebx, 8
xor r12d, r12d
xor r14d, r14d
xor r13d, r13d
xor esi, esi
jmp 0x1400877c6
mov eax, r13d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r13b, 0xdf
jbe 0x140087765
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r13b, 0xf0
jb 0x140087aa2
lea r14, [r8 + 4]
movzx r13d, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and r13d, 0x3f
or r13d, ecx
or r13d, eax
cmp r13d, 0xffff
jbe 0x140087771
jmp 0x140087abb
lea r14, [r8 + 2]
shl eax, 6
or eax, edx
mov r13d, eax
mov eax, 1
xor r12d, r12d
mov rcx, qword [rbp + 0x68]
sub rcx, r14
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
add rcx, rax
cmp rcx, 4
mov r15d, 3
cmovae r15, rcx
lea rbx, [r15*2 + 2]
movabs rax, 0x3ffffffffffffffe
cmp rcx, rax
ja 0x140087c5d
inc r15
mov si, 1
movzx eax, byte [0x1400d3130]
xor ecx, ecx
mov rdx, rbx
call fcn.14008b3c0
test rax, rax
je 0x140087c54
mov rdi, rax
mov rax, qword [rbp - 8]
inc eax
mov dword [rbp + 0x60], eax
mov word [rdi], r13w
mov ebx, 1
mov r9, rsi
jmp 0x140087811
mov rsi, r15
mov r12d, eax
mov word [rdi + rbx*2], r13w
inc rbx
mov r15, rsi
test r14, r14
je 0x140087880
test r12w, r12w
je 0x140087860
xor eax, eax
mov r13d, r12d
cmp rbx, r15
jne 0x140087800
mov rcx, qword [rbp + 0x68]
sub rcx, r14
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
movzx edx, r9w
cmp ax, 1
sbb rcx, 0xffffffffffffffff
add rcx, rdx
mov r12d, eax
jmp 0x1400878a1
cmp r14, qword [rbp + 0x68]
je 0x140087880
movzx r13d, byte [r14]
test r13b, r13b
js 0x14008794b
inc r14
xor eax, eax
jmp 0x140087821
cmp r9w, 1
jne 0x1400879f0
xor r14d, r14d
xor r9d, r9d
mov r13d, 0
mov ecx, 0
cmp rbx, r15
jne 0x140087910
lea rax, [rcx + 1]
add rax, rbx
jb 0x140087c34
lea rsi, [rcx + rbx]
inc rsi
lea rax, [r15 + r15]
cmp rax, rsi
cmova rsi, rax
cmp rsi, 5
jae 0x1400878cb
mov esi, 4
test rsi, rsi
js 0x140087c34
lea r8, [rsi + rsi]
movabs rcx, 0x7ffffffffffffffe
cmp r8, rcx
ja 0x140087c49
mov rcx, r15
mov r15, rdi
mov qword [rbp - 0x18], rcx
mov rdi, r9
test rcx, rcx
je 0x14008791b
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x30], rax
mov eax, 2
jmp 0x14008791d
mov rsi, r15
xor r13d, r13d
jmp 0x140087806
xor eax, eax
mov qword [rbp + 0x28], rax
mov edx, 2
mov rcx, rbp
lea r9, [rbp + 0x20]
call fcn.14005b880
cmp dword [rbp], 1
je 0x140087c36
mov rax, qword [rbp + 8]
mov r9, rdi
mov rdi, rax
jmp 0x140087806
mov eax, r13d
and eax, 0x1f
movzx edx, byte [r14 + 1]
and edx, 0x3f
cmp r13b, 0xdf
jbe 0x14008799e
movzx ecx, byte [r14 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r13b, 0xf0
jb 0x1400879b1
movzx r13d, byte [r14 + 3]
add r14, 4
and eax, 7
shl eax, 0x12
shl ecx, 6
and r13d, 0x3f
or r13d, ecx
or r13d, eax
cmp r13d, 0xffff
ja 0x1400879c6
xor eax, eax
jmp 0x140087821
add r14, 2
shl eax, 6
or eax, edx
mov r13d, eax
xor eax, eax
jmp 0x140087821
add r14, 3
shl eax, 0xc
or ecx, eax
mov r13d, ecx
cmp r13d, 0xffff
jbe 0x140087997
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, r13d
mov r13d, ecx
jmp 0x140087821
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rdi
mov edx, dword [rbp + 0x64]
mov esi, dword [rbp + 0x84]
mov r8d, esi
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140087b5e
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rbp + 0x60]
cmp ecx, 9
jg 0x140087ae9
cmp eax, 5
jne 0x140087a60
mov eax, ecx
mov qword [rbp - 8], rax
jmp 0x140087a6f
test esi, esi
je 0x140087ae9
xor esi, esi
cmp eax, 0x57
jne 0x140087ae9
mov dword [rbp + 0x84], esi
mov r14b, 1
test r15, r15
mov rsi, qword [rbp + 0x88]
lea rbx, [rbp + 0x20]
je 0x1400875d0
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rdi
call fcn.1400a6040
jmp 0x1400875d0
lea r14, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov r13d, ecx
cmp r13d, 0xffff
jbe 0x140087771
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, 2
mov r12d, r13d
mov r13d, ecx
jmp 0x140087779
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x70]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test r15, r15
je 0x140087b16
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rdi
call fcn.1400a6040
cmp qword [rbp + 0x88], 0
je 0x140087b35
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, qword [rbp + 0x90]
call fcn.1400a6040
cmp r12, 0xffffffffffffffff
je 0x140087b43
mov rcx, r12
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0xa0]
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
test r15, r15
je 0x140087b74
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rdi
call fcn.1400a6040
mov dword [rbp + 0x20], 0
mov dword [rbp + 0x40], 0
mov word [rbp + 0x44], 0
movzx eax, byte [rbp + 0x9f]
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 sil, 1
lea r8, [rbp + 0x20]
mov rcx, qword [rbp + 0x90]
mov rdx, qword [rbp - 0x10]
call fcn.140078970
test rax, rax
je 0x140087bf9
mov rax, qword [rbp + 0x70]
mov qword [rax + 8], rdx
mov qword [rax], 1
cmp qword [rbp + 0x88], 0
jne 0x140087b20
jmp 0x140087b35
mov rax, qword [rbp + 0x70]
mov qword [rax + 8], r12
mov qword [rax + 0x10], rdx
mov qword [rax], 0
cmp qword [rbp + 0x88], 0
je 0x140087b43
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, qword [rbp + 0x90]
call fcn.1400a6040
jmp 0x140087b43
jmp 0x140087c49
mov rax, qword [rbp + 8]
mov qword [rbp + 0x78], rax
mov rdx, qword [rbp + 0x10]
mov rdi, r15
mov r15, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x78]
call fcn.14000bb40
jmp 0x140087c6b
mov eax, 2
mov qword [rbp + 0x78], rax
xor esi, esi
mov rcx, qword [rbp + 0x78]
mov rdx, rbx
call fcn.14000bb40
ud2