Function at 0x140042820
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x90], xmm6
mov qword [rbp + 0x70], rcx
mov byte [rbp + 0x8f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x64], ecx
xor eax, eax
mov qword [rbp - 8], rax
mov ebx, 8
mov r14b, 1
xorps xmm6, xmm6
lea rsi, [rbp + 0x20]
xor eax, eax
mov qword [rbp - 0x10], rax
nop word cs:[rax + rax]
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rbp + 0x58], eax
nop dword [rax + rax]
mov rax, qword [0x1401c90c8]
test rax, rax
jne 0x1400428c0
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, rsi
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rbp + 0x20]
mov qword [0x1401c90c8], rax
jmp 0x140042890
mov eax, 1
lock xadd qword [0x1401c90c8], rax
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rbp], rax
lea rax, [0x140005430]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x28]
mov qword [rbp + 0x10], rax
lea rax, [fcn.1400044b0]
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 - 0x40]
mov rdx, rsi
call fcn.140003f00
cmp qword [rbp + 0x78], 0
sete al
or r14b, al
test r14b, 1
jne 0x140042950
mov edx, 1
mov rcx, qword [rbp + 0x80]
call fcn.1400014a0
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0x78], rax
mov r8, qword [rbp - 0x38]
mov r9, qword [rbp - 0x30]
lea rax, [r8 + r9]
mov qword [rbp + 0x68], rax
test r9, r9
mov qword [rbp + 0x80], r8
mov dword [rbp + 0x5c], ebx
mov qword [rbp - 0x18], r9
je 0x140042990
movzx r12d, byte [r8]
test r12b, r12b
js 0x1400429b0
lea rdi, [r8 + 1]
jmp 0x140042a11
mov r13d, 4
mov ebx, 8
xor r15d, r15d
xor edi, edi
xor r12d, r12d
xor esi, esi
jmp 0x140042a66
mov eax, r12d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r12b, 0xdf
jbe 0x140042a05
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r12b, 0xf0
jb 0x140042d50
lea rdi, [r8 + 4]
movzx r12d, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and r12d, 0x3f
or r12d, ecx
or r12d, eax
cmp r12d, 0xffff
jbe 0x140042a11
jmp 0x140042d69
lea rdi, [r8 + 2]
shl eax, 6
or eax, edx
mov r12d, eax
mov eax, 1
xor r15d, r15d
mov rcx, qword [rbp + 0x68]
sub rcx, rdi
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
add rcx, rax
cmp rcx, 4
mov r13d, 3
cmovae r13, rcx
lea rbx, [r13*2 + 2]
movabs rax, 0x3ffffffffffffffe
cmp rcx, rax
ja 0x140042ee3
inc r13
mov si, 1
movzx eax, byte [0x1401c90e8]
mov rcx, rbx
call fcn.140045e10
test rax, rax
je 0x140042eda
mov r14, rax
mov rax, qword [rbp - 0x10]
inc eax
mov dword [rbp + 0x60], eax
mov word [r14], r12w
mov ebx, 1
mov r9, rsi
jmp 0x140042ab4
mov rsi, r13
mov eax, r15d
mov word [r14 + rbx*2], ax
inc rbx
mov r13, rsi
mov r15d, r12d
test rdi, rdi
je 0x140042b20
test r15w, r15w
je 0x140042b00
xor r12d, r12d
cmp rbx, r13
jne 0x140042aa0
mov rax, qword [rbp + 0x68]
sub rax, rdi
add rax, 3
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
shr rax, 2
movzx ecx, r9w
cmp r12w, 1
sbb rax, 0xffffffffffffffff
add rax, rcx
jmp 0x140042b3f
cmp rdi, qword [rbp + 0x68]
je 0x140042b20
movzx r15d, byte [rdi]
test r15b, r15b
js 0x140042bf6
inc rdi
jmp 0x140042abf
cmp r9w, 1
jne 0x140042cb0
xor edi, edi
xor eax, eax
cmp rbx, r13
jne 0x140042bb0
xor r9d, r9d
mov r12d, r15d
xor r15d, r15d
xor eax, eax
lea rcx, [rax + 1]
add rcx, rbx
jb 0x140042ed1
mov qword [rbp - 0x20], rdi
lea rsi, [rax + rbx]
inc rsi
mov r10, r13
lea rcx, [r13*2]
cmp rcx, rsi
cmova rsi, rcx
movabs rax, 0x3ffffffffffffffe
inc rax
xor edx, edx
cmp rsi, rax
setbe al
cmp rsi, 5
mov r8d, 4
cmovb rsi, r8
mov rdi, r9
test r13, r13
je 0x140042bbe
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x30], rcx
mov ecx, 2
jmp 0x140042bc0
mov rsi, r13
mov r12d, r15d
xor r9d, r9d
jmp 0x140042aa6
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.14000ab80
cmp qword [rbp], 0
jne 0x140042ec7
mov r14, qword [rbp + 8]
mov eax, r15d
mov r9, rdi
mov rdi, qword [rbp - 0x20]
jmp 0x140042aa6
mov eax, r15d
and eax, 0x1f
movzx edx, byte [rdi + 1]
and edx, 0x3f
cmp r15b, 0xdf
jbe 0x140042c46
movzx ecx, byte [rdi + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r15b, 0xf0
jb 0x140042c57
movzx r15d, byte [rdi + 3]
add rdi, 4
and eax, 7
shl eax, 0x12
shl ecx, 6
and r15d, 0x3f
or r15d, ecx
or r15d, eax
cmp r15d, 0xffff
jbe 0x140042abf
jmp 0x140042c70
add rdi, 2
shl eax, 6
or eax, edx
mov r15d, eax
jmp 0x140042abf
add rdi, 3
shl eax, 0xc
or ecx, eax
mov r15d, ecx
cmp r15d, 0xffff
jbe 0x140042abf
lea eax, [r15 + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov r12d, r15d
mov r15d, eax
cmp rbx, r13
jne 0x140042aa0
jmp 0x140042ac7
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rdi, r14
mov rcx, r14
mov edx, dword [rbp + 0x64]
mov ebx, dword [rbp + 0x5c]
mov r8d, ebx
mov r9d, 1
call sub.kernel32.dll_CreateNamedPipeW
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140042dd1
call sub.kernel32.dll_GetLastError
mov ecx, dword [rbp + 0x60]
cmp ecx, 9
jg 0x140042d98
cmp eax, 5
jne 0x140042d20
mov eax, ecx
mov qword [rbp - 0x10], rax
jmp 0x140042d2b
test ebx, ebx
je 0x140042d98
xor ebx, ebx
cmp eax, 0x57
jne 0x140042d98
xor r14d, r14d
test r13, r13
lea rsi, [rbp + 0x20]
je 0x140042880
mov edx, 2
mov rcx, rdi
call fcn.1400014a0
xor r14d, r14d
jmp 0x140042880
lea rdi, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov r12d, ecx
cmp r12d, 0xffff
jbe 0x140042a11
lea ecx, [r12 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov eax, 2
mov r15d, r12d
mov r12d, ecx
jmp 0x140042a19
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x70]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rbx, 0xffffffffffffffff
test r13, r13
je 0x140042e57
mov edx, 2
mov rcx, rdi
call fcn.1400014a0
jmp 0x140042e57
test r13, r13
je 0x140042de3
mov edx, 2
mov rcx, rdi
call fcn.1400014a0
mov dword [rbp + 0x20], 0
mov dword [rbp + 0x40], 0
mov word [rbp + 0x44], 0
movzx eax, byte [rbp + 0x8f]
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
xor esi, esi
lea r8, [rbp + 0x20]
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp - 0x18]
call fcn.140036240
test rax, rax
je 0x140042e9a
mov rax, qword [rbp + 0x70]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rbx, r12
mov rcx, qword [rbp + 0x80]
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x140042e71
mov edx, 1
call fcn.1400014a0
cmp r12, 0xffffffffffffffff
je 0x140042e7f
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0x90]
add rsp, 0x128
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x70]
mov qword [rax + 8], r12
mov qword [rax + 0x10], rdx
mov qword [rax], 0
cmp qword [rbp + 0x78], 0
mov rcx, qword [rbp + 0x80]
je 0x140042e7f
mov edx, 1
call fcn.1400014a0
jmp 0x140042e7f
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp + 0x10]
jmp 0x140042ed3
xor ecx, ecx
call fcn.140003b20
jmp 0x140042ef2
mov eax, 2
mov qword [rbp - 8], rax
mov sil, 1
mov rcx, qword [rbp - 8]
mov rdx, rbx
call fcn.140003b20
ud2