Function at 0x14008ce20
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov qword [rsp + 0x80], rcx
mov byte [rsp + 0x47], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x88], ecx
xor eax, eax
mov qword [rsp + 0x98], rax
mov r13d, 8
mov sil, 1
xorps xmm6, xmm6
lea rbx, [rsp + 0x50]
nop word cs:[rax + rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0x94], eax
mov rax, qword [0x1401bb0f8]
test rax, rax
jne 0x14008ceca
nop dword [rax + rax]
movaps xmmword [rsp + 0x50], xmm6
mov edx, 0x10
mov rcx, rbx
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rsp + 0x50]
mov qword [0x1401bb0f8], rax
mov rax, qword [0x1401bb0f8]
test rax, rax
je 0x14008cea0
mov eax, 1
lock xadd qword [0x1401bb0f8], rax
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0xa8], rax
lea rax, [0x140019770]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
lea rax, [0x140019890]
mov qword [rsp + 0xc0], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 2
lea rcx, [rsp + 0xd8]
mov rdx, rbx
call fcn.140010070
test r15, r15
sete al
or sil, al
test sil, 1
jne 0x14008cf84
mov rcx, qword [0x1401bb0c8]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.1400fda74
mov r10, qword [rsp + 0xd8]
mov r9, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
lea rbp, [r9 + rcx]
mov ebx, 4
mov edx, 8
test rcx, rcx
mov qword [rsp + 0x48], r9
mov qword [rsp + 0xa0], r10
mov dword [rsp + 0x90], r13d
mov qword [rsp + 0xc8], rcx
je 0x14008cfe0
movzx eax, byte [r9]
test al, al
js 0x14008cff0
lea r12, [r9 + 1]
mov esi, eax
jmp 0x14008d049
xor r13d, r13d
xor r15d, r15d
xor esi, esi
xor r12d, r12d
jmp 0x14008d097
mov esi, eax
and esi, 0x1f
movzx r8d, byte [r9 + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x14008d03f
movzx ecx, byte [r9 + 2]
shl r8d, 6
and ecx, 0x3f
or ecx, r8d
cmp al, 0xf0
jb 0x14008d305
lea r12, [r9 + 4]
movzx eax, byte [r9 + 3]
and esi, 7
shl esi, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or esi, eax
cmp esi, 0xffff
jbe 0x14008d049
jmp 0x14008d31a
lea r12, [r9 + 2]
shl esi, 6
or esi, r8d
xor r13d, r13d
xor eax, eax
mov rcx, rbp
sub rcx, r12
add rcx, 3
mov r8, 0xffffffffffffffff
cmovb rcx, r8
shr rcx, 2
add rcx, rax
mov r15w, 1
cmp rcx, 2
jb 0x14008d097
movabs rax, 0x3ffffffffffffffd
cmp rcx, rax
ja 0x14008d4c0
lea rdx, [rcx*2 + 4]
add rcx, 2
mov rbx, rcx
movzx eax, byte [0x1401bb111]
xor ecx, ecx
call fcn.140089d40
test rax, rax
je 0x14008d4c0
mov rdi, rax
mov rax, qword [rsp + 0x98]
inc eax
mov dword [rsp + 0x8c], eax
mov word [rdi], si
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 1
mov ebx, 1
jmp 0x14008d0ff
xor eax, eax
mov esi, r13d
cmp rbx, qword [rsp + 0x50]
je 0x14008d1b7
mov r13d, eax
mov word [rdi + rbx*2], si
inc rbx
mov qword [rsp + 0x60], rbx
test r12, r12
je 0x14008d130
test r13w, r13w
jne 0x14008d0e0
cmp r12, rbp
je 0x14008d130
movzx ecx, byte [r12]
test cl, cl
js 0x14008d15e
inc r12
mov esi, ecx
xor eax, eax
jmp 0x14008d0e5
mov r14, qword [rsp + 0x50]
cmp r15w, 1
jne 0x14008d250
xor esi, esi
mov r12d, 0
mov r15d, 0
mov r8d, 0
cmp rbx, r14
jne 0x14008d0f3
jmp 0x14008d1e4
mov esi, ecx
and esi, 0x1f
movzx edx, byte [r12 + 1]
and edx, 0x3f
cmp cl, 0xdf
jbe 0x14008d1fe
movzx eax, byte [r12 + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x14008d20e
movzx ecx, byte [r12 + 3]
add r12, 4
and esi, 7
shl esi, 0x12
shl eax, 6
and ecx, 0x3f
or ecx, eax
or ecx, esi
mov esi, ecx
cmp esi, 0xffff
ja 0x14008d221
xor eax, eax
jmp 0x14008d0e5
mov r8, rbp
sub r8, r12
add r8, 3
mov rcx, 0xffffffffffffffff
cmovb r8, rcx
shr r8, 2
cmp ax, 1
sbb r8, 0xffffffffffffffff
cmp r15w, 1
sbb r8, 0xffffffffffffffff
mov r13d, eax
inc r8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.1400d4920
mov rdi, qword [rsp + 0x58]
jmp 0x14008d0f3
add r12, 2
shl esi, 6
or esi, edx
xor eax, eax
jmp 0x14008d0e5
add r12, 3
shl esi, 0xc
or eax, esi
mov esi, eax
cmp esi, 0xffff
jbe 0x14008d1b0
lea ecx, [rsi + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and esi, 0x3ff
or esi, 0xdc00
mov eax, esi
mov esi, ecx
jmp 0x14008d0e5
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 [rsp + 0x88]
mov r13d, dword [rsp + 0x90]
mov r8d, r13d
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14008d3be
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0x8c]
cmp ecx, 0xa
mov r15, qword [rsp + 0xa0]
jge 0x14008d344
cmp eax, 5
jne 0x14008d2d0
mov eax, ecx
mov qword [rsp + 0x98], rax
jmp 0x14008d2dd
test r13d, r13d
je 0x14008d344
xor r13d, r13d
cmp eax, 0x57
jne 0x14008d344
xor esi, esi
test r14, r14
lea rbx, [rsp + 0x50]
je 0x14008ce80
mov rcx, qword [0x1401bb0c8]
xor esi, esi
xor edx, edx
mov r8, rdi
call fcn.1400fda74
jmp 0x14008ce80
lea r12, [r9 + 3]
shl esi, 0xc
or esi, ecx
cmp esi, 0xffff
jbe 0x14008d049
lea ecx, [rsi + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and esi, 0x3ff
or esi, 0xdc00
mov eax, 1
mov r13d, esi
mov esi, ecx
jmp 0x14008d04e
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rsi, 0xffffffffffffffff
test r14, r14
je 0x14008d37c
mov rcx, qword [0x1401bb0c8]
xor edx, edx
mov r8, rdi
call fcn.1400fda74
mov r8, qword [rsp + 0x48]
test r15, r15
je 0x14008d394
mov rcx, qword [0x1401bb0c8]
xor edx, edx
call fcn.1400fda74
cmp rbx, 0xffffffffffffffff
je 0x14008d3a2
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r14, r14
mov r15, qword [rsp + 0xa0]
je 0x14008d3dc
mov rcx, qword [0x1401bb0c8]
xor edx, edx
mov r8, rdi
call fcn.1400fda74
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x6c], 0
mov word [rsp + 0x74], 0
movzx eax, byte [rsp + 0x47]
mov byte [rsp + 0x71], al
xor al, 1
mov byte [rsp + 0x70], al
mov dword [rsp + 0x68], 0
mov dword [rsp + 0xa8], 0x18
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0xb8], 1
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0xc8]
call fcn.14008ac80
test rax, rax
je 0x14008d488
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, rbx
mov r8, qword [rsp + 0x48]
test r15, r15
jne 0x14008d386
jmp 0x14008d394
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test r15, r15
je 0x14008d3a2
mov rcx, qword [0x1401bb0c8]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.1400fda74
jmp 0x14008d3a2
ud2