Function at 0x140048550
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 + 0x5c], 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 + 0x50], eax
mov rax, qword [0x1400c70c8]
test rax, rax
jne 0x1400485f8
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, rsi
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rbp + 0x20]
mov qword [0x1400c70c8], rax
mov rax, qword [0x1400c70c8]
test rax, rax
je 0x1400485d0
mov eax, 1
lock xadd qword [0x1400c70c8], rax
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x50]
mov qword [rbp], rax
lea rax, [0x140009580]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 0x10], rax
lea rax, [fcn.1400085e0]
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, rsi
call fcn.140008010
cmp qword [rbp + 0x78], 0
sete al
or r14b, al
test r14b, 1
jne 0x14004868c
mov rcx, qword [0x1400c70c0]
xor edx, edx
mov r8, qword [rbp + 0x80]
call fcn.14004fc24
mov rax, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x28]
lea rcx, [r8 + r9]
mov qword [rbp + 0x68], rcx
test r9, r9
mov qword [rbp + 0x80], r8
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x54], ebx
mov qword [rbp - 0x18], r9
je 0x1400486d0
movzx r12d, byte [r8]
test r12b, r12b
js 0x1400486f0
lea r14, [r8 + 1]
jmp 0x140048751
mov r13d, 4
mov ebx, 8
xor r15d, r15d
xor r14d, r14d
xor r12d, r12d
xor edi, edi
jmp 0x1400487a6
mov eax, r12d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r12b, 0xdf
jbe 0x140048745
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r12b, 0xf0
jb 0x140048aa4
lea r14, [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 0x140048751
jmp 0x140048abd
lea r14, [r8 + 2]
shl eax, 6
or eax, edx
mov r12d, eax
mov eax, 1
xor r15d, r15d
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 r13d, 3
cmovae r13, rcx
lea rbx, [r13*2 + 2]
movabs rax, 0x3ffffffffffffffe
cmp rcx, rax
ja 0x140048c5f
inc r13
mov di, 1
movzx eax, byte [0x1400c70e8]
xor ecx, ecx
mov rdx, rbx
call fcn.14004bff0
test rax, rax
je 0x140048c56
mov rcx, rax
mov rax, qword [rbp - 0x10]
inc eax
mov dword [rbp + 0x58], eax
mov word [rcx], r12w
mov ebx, 1
jmp 0x1400487f3
mov rsi, r13
mov eax, r15d
mov word [rcx + rbx*2], ax
inc rbx
mov r13, rsi
mov r15d, r12d
test r14, r14
je 0x140048880
test r15w, r15w
je 0x140048850
xor r12d, r12d
cmp rbx, r13
jne 0x1400487e0
mov qword [rbp + 0x60], rcx
mov rax, qword [rbp + 0x68]
sub rax, r14
add rax, 3
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
shr rax, 2
movzx ecx, di
cmp r12w, 1
sbb rax, 0xffffffffffffffff
add rax, rcx
lea rcx, [rax + 1]
add rcx, rbx
jae 0x1400488af
jmp 0x140048c4d
cmp r14, qword [rbp + 0x68]
je 0x140048880
movzx r15d, byte [r14]
test r15b, r15b
js 0x14004893b
inc r14
xor r12d, r12d
cmp rbx, r13
jne 0x1400487e0
jmp 0x14004880a
cmp di, 1
jne 0x140048a00
xor r14d, r14d
xor eax, eax
cmp rbx, r13
jne 0x140048900
mov qword [rbp + 0x60], rcx
xor edi, edi
mov r12d, r15d
xor r15d, r15d
xor eax, eax
lea rcx, [rax + 1]
add rcx, rbx
jb 0x140048c4d
lea rsi, [rax + rbx]
inc rsi
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
test r13, r13
je 0x14004890d
mov r8, qword [rbp + 0x60]
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x30], rcx
mov ecx, 2
jmp 0x14004890f
mov rsi, r13
mov r12d, r15d
xor edi, edi
jmp 0x1400487e6
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.14000e820
cmp qword [rbp], 0
jne 0x140048c43
mov rcx, qword [rbp + 8]
jmp 0x1400487e3
mov eax, r15d
and eax, 0x1f
movzx edx, byte [r14 + 1]
and edx, 0x3f
cmp r15b, 0xdf
jbe 0x140048993
mov r8, rcx
movzx ecx, byte [r14 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r15b, 0xf0
jb 0x1400489b0
movzx r15d, byte [r14 + 3]
add r14, 4
and eax, 7
shl eax, 0x12
shl ecx, 6
and r15d, 0x3f
or r15d, ecx
or r15d, eax
cmp r15d, 0xffff
mov rcx, r8
jbe 0x140048802
jmp 0x1400489cc
add r14, 2
shl eax, 6
or eax, edx
mov r15d, eax
xor r12d, r12d
cmp rbx, r13
jne 0x1400487e0
jmp 0x14004880a
add r14, 3
shl eax, 0xc
or ecx, eax
mov r15d, ecx
cmp r15d, 0xffff
mov rcx, r8
jbe 0x140048802
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 0x1400487e0
jmp 0x14004880a
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rdi, rcx
mov edx, dword [rbp + 0x5c]
mov ebx, dword [rbp + 0x54]
mov r8d, ebx
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140048b67
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rbp + 0x58]
cmp ecx, 9
jg 0x140048aec
cmp eax, 5
jne 0x140048a70
mov eax, ecx
mov qword [rbp - 0x10], rax
jmp 0x140048a7b
test ebx, ebx
je 0x140048aec
xor ebx, ebx
cmp eax, 0x57
jne 0x140048aec
xor r14d, r14d
test r13, r13
lea rsi, [rbp + 0x20]
je 0x1400485b0
mov rcx, qword [0x1400c70c0]
xor r14d, r14d
xor edx, edx
mov r8, rdi
call fcn.14004fc24
jmp 0x1400485b0
lea r14, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov r12d, ecx
cmp r12d, 0xffff
jbe 0x140048751
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 0x140048759
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 0x140048b20
mov rcx, qword [0x1400c70c0]
xor edx, edx
mov r8, rdi
call fcn.14004fc24
mov r8, qword [rbp + 0x80]
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x140048b3e
mov rcx, qword [0x1400c70c0]
xor edx, edx
call fcn.14004fc24
cmp r12, 0xffffffffffffffff
je 0x140048b4c
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
test r13, r13
je 0x140048b7d
mov rcx, qword [0x1400c70c0]
xor edx, edx
mov r8, rdi
call fcn.14004fc24
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 r14d, r14d
lea r8, [rbp + 0x20]
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp - 0x18]
call fcn.14003c000
test rax, rax
je 0x140048c0b
mov rax, qword [rbp + 0x70]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rbx, r12
mov r8, qword [rbp + 0x80]
mov rax, qword [rbp + 0x78]
test rax, rax
jne 0x140048b30
jmp 0x140048b3e
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 r8, qword [rbp + 0x80]
je 0x140048b4c
mov rcx, qword [0x1400c70c0]
xor edx, edx
call fcn.14004fc24
jmp 0x140048b4c
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp + 0x10]
jmp 0x140048c4f
xor ecx, ecx
call fcn.140007bd0
jmp 0x140048c6e
mov eax, 2
mov qword [rbp - 8], rax
mov r14b, 1
mov rcx, qword [rbp - 8]
mov rdx, rbx
call fcn.140007bd0
ud2