Function at 0x14001d600
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 edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [rbp + 0x58], eax
mov rax, qword [0x140063288]
test rax, rax
jne 0x14001d6b6
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, r14
call r12
mov rax, qword [rbp + 0x20]
xchg qword [0x140063288], rax
mov rax, qword [0x140063288]
test rax, rax
je 0x14001d690
mov eax, 1
lock xadd qword [0x140063288], rax
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x58]
mov qword [rbp], rax
lea rax, [fcn.1400341a0]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x18]
mov qword [rbp + 0x10], rax
lea rax, [fcn.1400342c0]
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
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x70], rbx
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
lea rcx, [rbp - 0x38]
mov rdx, r14
call fcn.14002e9b0
test rbx, rbx
sete al
or sil, al
test sil, 1
jne 0x14001d765
mov r8d, 1
mov rcx, qword [rbp + 0x88]
mov rdx, rbx
call fcn.14000c040
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x80], rax
mov r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x28]
lea r12, [r8 + r9]
test r9, r9
mov qword [rbp + 0x88], r8
mov dword [rbp + 0x5c], r15d
mov qword [rbp - 0x10], r9
je 0x14001d7b0
movzx ecx, byte [r8]
movzx r14d, cl
test r14b, r14b
js 0x14001d7d0
lea r15, [r8 + 1]
jmp 0x14001d834
mov esi, 4
mov ebx, 8
xor edi, edi
xor r15d, r15d
xor r14d, r14d
xor r13d, r13d
jmp 0x14001d885
mov eax, r14d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x14001d828
movzx r14d, byte [r8 + 2]
shl edx, 6
and r14d, 0x3f
or r14d, edx
cmp cl, 0xf0
jb 0x14001dbb5
lea r15, [r8 + 4]
movzx ecx, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl r14d, 6
and ecx, 0x3f
or ecx, r14d
or ecx, eax
mov r14d, ecx
cmp r14d, 0xffff
jbe 0x14001d834
jmp 0x14001dbcc
lea r15, [r8 + 2]
shl eax, 6
or eax, edx
mov r14d, eax
xor edi, edi
xor eax, eax
mov rcx, r12
sub rcx, r15
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
add rcx, rax
cmp rcx, 3
mov esi, 2
cmovae rsi, rcx
movabs rax, 0x3ffffffffffffffe
cmp rcx, rax
jae 0x14001ddad
lea rbx, [rsi*2 + 4]
add rsi, 2
mov r13w, 1
movzx eax, byte [0x140063181]
mov edx, 2
mov rcx, rbx
call fcn.14000c030
test rax, rax
je 0x14001dd7a
mov rcx, rax
mov rax, qword [rbp - 8]
inc eax
mov dword [rbp + 0x60], eax
mov word [rcx], r14w
mov ebx, 1
mov r14, rcx
jmp 0x14001d8d4
mov edi, eax
mov rax, qword [rbp + 0x90]
mov word [rax + rbx*2], r14w
inc rbx
mov r14, rax
test r15, r15
mov qword [rbp + 0x90], r14
je 0x14001d950
test di, di
je 0x14001d930
xor eax, eax
mov r14d, edi
cmp rbx, rsi
jne 0x14001d8c0
mov qword [rbp + 0x98], rsi
mov rsi, r12
sub rsi, r15
add rsi, 3
mov rcx, 0xffffffffffffffff
cmovb rsi, rcx
shr rsi, 2
cmp ax, 1
sbb rsi, 0xffffffffffffffff
cmp r13w, 1
sbb rsi, 0xffffffffffffffff
mov edi, eax
jmp 0x14001d97c
cmp r15, r12
je 0x14001d950
movzx ecx, byte [r15]
movzx r14d, cl
test r14b, r14b
js 0x14001da1f
inc r15
xor eax, eax
jmp 0x14001d8ea
mov qword [rbp + 0x98], rsi
cmp r13w, 1
jne 0x14001dad0
xor r15d, r15d
xor r13d, r13d
mov r14d, 0
mov esi, 0
cmp rbx, qword [rbp + 0x98]
jne 0x14001d9e0
inc rsi
add rsi, rbx
jb 0x14001dd68
mov r9, qword [rbp + 0x98]
lea rax, [r9 + r9]
cmp rax, rsi
cmova rsi, rax
xor edx, edx
mov rcx, rsi
shr rcx, 0x3e
sete cl
cmp rsi, 5
mov r8d, 4
cmovb rsi, r8
test r9, r9
je 0x14001d9ef
mov r8, qword [rbp + 0x90]
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], 2
mov qword [rbp + 0x30], rax
jmp 0x14001d9f7
mov rsi, qword [rbp + 0x98]
xor r14d, r14d
jmp 0x14001d8c2
mov qword [rbp + 0x28], 0
lea r8, [rsi + rsi]
mov dl, cl
add edx, edx
mov rcx, rbp
lea r9, [rbp + 0x20]
call fcn.14000b0d0
cmp qword [rbp], 0
jne 0x14001dd5f
mov rax, qword [rbp + 8]
jmp 0x14001d8c9
mov eax, r14d
and eax, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x14001da75
movzx r14d, byte [r15 + 2]
shl edx, 6
and r14d, 0x3f
or r14d, edx
cmp cl, 0xf0
jb 0x14001da88
movzx ecx, byte [r15 + 3]
add r15, 4
and eax, 7
shl eax, 0x12
shl r14d, 6
and ecx, 0x3f
or ecx, r14d
or ecx, eax
mov r14d, ecx
cmp r14d, 0xffff
ja 0x14001da9b
xor eax, eax
jmp 0x14001d8ea
add r15, 2
shl eax, 6
or eax, edx
mov r14d, eax
xor eax, eax
jmp 0x14001d8ea
add r15, 3
shl eax, 0xc
or r14d, eax
cmp r14d, 0xffff
jbe 0x14001da6e
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, r14d
mov r14d, ecx
jmp 0x14001d8ea
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, r14
mov edx, dword [rbp + 0x64]
mov r15d, dword [rbp + 0x5c]
mov r8d, r15d
mov r9d, 1
call qword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001dc6e
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rbp + 0x20], rcx
mov edx, dword [rbp + 0x60]
cmp edx, 9
mov rsi, qword [rbp + 0x80]
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
jg 0x14001dbfa
cmp eax, 5
jne 0x14001db60
mov eax, edx
mov qword [rbp - 8], rax
jmp 0x14001db75
test r15d, r15d
je 0x14001dbfa
xor r15d, r15d
cmp eax, 0x57
jne 0x14001dbfa
mov rcx, r14
call fcn.140008cc0
mov dil, 1
xor esi, esi
mov rdx, qword [rbp + 0x98]
test rdx, rdx
mov rbx, qword [rbp + 0x80]
je 0x14001d670
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x90]
call fcn.14000c040
xor esi, esi
jmp 0x14001d670
lea r15, [r8 + 3]
shl eax, 0xc
or r14d, eax
cmp r14d, 0xffff
jbe 0x14001d834
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, 1
mov edi, r14d
mov r14d, ecx
jmp 0x14001d838
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov rdx, qword [rbp + 0x98]
test rdx, rdx
je 0x14001dc2a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x90]
call fcn.14000c040
test rsi, rsi
je 0x14001dc44
mov r8d, 1
mov rcx, qword [rbp + 0x88]
mov rdx, rsi
call fcn.14000c040
cmp rbx, 0xffffffffffffffff
je 0x14001dc53
mov rcx, rbx
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
mov rdx, qword [rbp + 0x98]
test rdx, rdx
mov rsi, qword [rbp + 0x80]
je 0x14001dc92
add rdx, rdx
mov r8d, 2
mov rcx, r14
call fcn.14000c040
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], rsi
mov qword [rbp - 0x20], rbx
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 0
lea r8, [rbp + 0x20]
mov rdx, qword [rbp - 0x10]
call fcn.14001c1f0
test rax, rax
je 0x14001dd29
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rdx
mov qword [rax], 1
test rsi, rsi
jne 0x14001dc2f
jmp 0x14001dc44
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rsi, rsi
mov rcx, qword [rbp + 0x88]
je 0x14001dc53
mov r8d, 1
mov rdx, rsi
call fcn.14000c040
jmp 0x14001dc53
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x14001dd6f
call fcn.14002e5e0
jmp 0x14001ddcf
mov rdx, qword [rbp + 0x10]
call fcn.1400361a0
jmp 0x14001ddcf
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 ecx, 2
mov rdx, rbx
call fcn.1400361a0
jmp 0x14001ddcf
mov qword [rbp + 0x78], r8
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x70], rax
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
call fcn.14002e5e0
ud2