Function at 0x14003d000
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 + 0x60], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov qword [rbp + 0x88], 0
mov r12d, 8
xorps xmm6, xmm6
lea rbx, [rbp + 0x20]
mov r13, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor esi, esi
mov qword [rbp - 8], 0
nop dword [rax]
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [rbp + 0x50], eax
mov rax, qword [0x1400a81e0]
test rax, rax
jne 0x14003d0b6
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, rbx
call r13
mov rax, qword [rbp + 0x20]
mov qword [0x1400a81e0], rax
mov rax, qword [0x1400a81e0]
test rax, rax
je 0x14003d090
mov eax, 1
lock xadd qword [0x1400a81e0], rax
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x50]
mov qword [rbp], rax
lea rax, case.0x140002391.384
mov qword [rbp + 8], rax
lea rax, [rbp - 0x18]
mov qword [rbp + 0x10], rax
lea rax, [fcn.140011dd0]
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 qword [rbp + 0x70], rdi
mov qword [rbp + 0x68], r14
mov byte [rbp + 0xa7], sil
mov byte [rbp + 0xa6], 0
lea rcx, [rbp - 0x38]
mov rdx, rbx
call fcn.140011620
test r14, r14
setne al
and sil, al
cmp sil, 1
jne 0x14003d15b
mov rcx, qword [0x1400a81f8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov r9, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov r10, qword [rbp - 0x28]
lea rsi, [r8 + r10]
test r10, r10
mov qword [rbp + 0x78], r8
mov qword [rbp + 0x80], r9
mov dword [rbp + 0x54], r12d
mov qword [rbp - 0x10], r10
je 0x14003d1a0
movzx ecx, byte [r8]
movzx r15d, cl
test r15b, r15b
js 0x14003d1d0
lea r12, [r8 + 1]
jmp 0x14003d234
mov eax, 4
mov qword [rbp + 0x98], rax
mov ebx, 8
xor r14d, r14d
xor r12d, r12d
xor r15d, r15d
xor edi, edi
jmp 0x14003d28e
mov eax, r15d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r15b, 0xdf
jbe 0x14003d228
movzx r15d, byte [r8 + 2]
shl edx, 6
and r15d, 0x3f
or r15d, edx
cmp cl, 0xf0
jb 0x14003d594
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 0x14003d234
jmp 0x14003d5ab
lea r12, [r8 + 2]
shl eax, 6
or eax, edx
mov r15d, eax
mov eax, 1
xor r14d, r14d
mov rcx, rsi
sub rcx, r12
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
add rcx, rax
cmp rcx, 4
mov edx, 3
cmovae rdx, rcx
lea rbx, [rdx*2 + 2]
movabs rax, 0x3ffffffffffffffe
cmp rcx, rax
ja 0x14003d75b
inc rdx
mov qword [rbp + 0x98], rdx
mov di, 1
movzx eax, byte [0x1400a8258]
xor ecx, ecx
mov rdx, rbx
call fcn.140040990
test rax, rax
je 0x14003d74f
mov rcx, rax
mov rax, qword [rbp - 8]
inc eax
mov dword [rbp + 0x58], eax
mov word [rcx], r15w
mov ebx, 1
mov r8, qword [rbp + 0x98]
jmp 0x14003d2ef
mov r13, r8
mov r14d, eax
mov rcx, qword [rbp + 0x90]
mov word [rcx + rbx*2], r15w
inc rbx
mov r8, r13
mov r13, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
test r12, r12
mov qword [rbp + 0x90], rcx
je 0x14003d360
test r14w, r14w
je 0x14003d340
xor eax, eax
mov r15d, r14d
cmp rbx, r8
jne 0x14003d2d0
mov rcx, rsi
sub rcx, r12
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
movzx edx, di
cmp ax, 1
sbb rcx, 0xffffffffffffffff
add rcx, rdx
mov r14d, eax
jmp 0x14003d383
cmp r12, rsi
je 0x14003d360
movzx ecx, byte [r12]
movzx r15d, cl
test r15b, r15b
js 0x14003d435
inc r12
xor eax, eax
jmp 0x14003d306
cmp di, 1
jne 0x14003d4e0
xor r12d, r12d
xor edi, edi
mov r15d, 0
mov ecx, 0
cmp rbx, r8
jne 0x14003d400
lea rax, [rcx + 1]
add rax, rbx
mov qword [rbp + 0x98], r8
jb 0x14003d730
lea r13, [rcx + rbx]
inc r13
lea rax, [r8 + r8]
cmp rax, r13
cmova r13, rax
cmp r13, 5
jae 0x14003d3b5
mov r13d, 4
test r13, r13
js 0x14003d730
lea r8, [r13*2]
movabs rcx, 0x7ffffffffffffffe
cmp r8, rcx
ja 0x14003d741
cmp qword [rbp + 0x98], 0
je 0x14003d40b
mov rcx, qword [rbp + 0x90]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x30], rax
mov eax, 2
jmp 0x14003d40d
mov r13, r8
xor r15d, r15d
jmp 0x14003d2d6
xor eax, eax
mov qword [rbp + 0x28], rax
mov edx, 2
mov rcx, rbp
lea r9, [rbp + 0x20]
call fcn.140029b10
cmp dword [rbp], 1
je 0x14003d732
mov rcx, qword [rbp + 8]
jmp 0x14003d2dd
mov eax, r15d
and eax, 0x1f
movzx edx, byte [r12 + 1]
and edx, 0x3f
cmp r15b, 0xdf
jbe 0x14003d48e
movzx r15d, byte [r12 + 2]
shl edx, 6
and r15d, 0x3f
or r15d, edx
cmp cl, 0xf0
jb 0x14003d4a1
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
cmp r15d, 0xffff
ja 0x14003d4b4
xor eax, eax
jmp 0x14003d306
add r12, 2
shl eax, 6
or eax, edx
mov r15d, eax
xor eax, eax
jmp 0x14003d306
add r12, 3
shl eax, 0xc
or r15d, eax
cmp r15d, 0xffff
jbe 0x14003d487
lea ecx, [r15 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov eax, r15d
mov r15d, ecx
jmp 0x14003d306
mov rsi, r8
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov r15, rcx
mov edx, dword [rbp + 0x5c]
mov r12d, dword [rbp + 0x54]
mov r8d, r12d
mov r9d, 1
call qword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14003d648
call qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbp + 0x58]
cmp ecx, 9
mov rdi, qword [rbp + 0x78]
mov r14, qword [rbp + 0x80]
mov rdx, rsi
jg 0x14003d5d9
cmp eax, 5
jne 0x14003d560
mov eax, ecx
mov qword [rbp - 8], rax
jmp 0x14003d56d
test r12d, r12d
je 0x14003d5d9
xor r12d, r12d
cmp eax, 0x57
jne 0x14003d5d9
mov sil, 1
test rdx, rdx
lea rbx, [rbp + 0x20]
je 0x14003d070
mov rcx, qword [0x1400a81f8]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x14003d070
lea r12, [r8 + 3]
shl eax, 0xc
or r15d, eax
cmp r15d, 0xffff
jbe 0x14003d234
lea ecx, [r15 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov eax, 2
mov r14d, r15d
mov r15d, ecx
jmp 0x14003d23c
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdx, rdx
je 0x14003d607
mov rcx, qword [0x1400a81f8]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
test r14, r14
je 0x14003d61e
mov rcx, qword [0x1400a81f8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
cmp rbx, 0xffffffffffffffff
je 0x14003d62d
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
test rsi, rsi
mov rdi, qword [rbp + 0x78]
mov r14, qword [rbp + 0x80]
je 0x14003d66a
mov rcx, qword [0x1400a81f8]
xor edx, edx
mov r8, r15
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 qword [rbp + 0x70], rdi
mov qword [rbp + 0x68], r14
mov qword [rbp - 0x20], rbx
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
lea r8, [rbp + 0x20]
mov rcx, rdi
mov rdx, qword [rbp - 0x10]
call fcn.14002ed90
test rax, rax
je 0x14003d6fd
mov rax, qword [rbp + 0x60]
mov qword [rax + 8], rdx
mov qword [rax], 1
test r14, r14
jne 0x14003d60c
jmp 0x14003d61e
mov rax, qword [rbp + 0x60]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test r14, r14
je 0x14003d62d
mov rcx, qword [0x1400a81f8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x14003d62d
jmp 0x14003d741
mov rax, qword [rbp + 8]
mov qword [rbp + 0x88], rax
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp + 0x88]
call fcn.140045460
jmp 0x14003d78b
mov eax, 2
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x68], rax
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 0
mov rcx, qword [rbp + 0x88]
mov rdx, rbx
call fcn.140045460
ud2