Function at 0x1403b2410
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
mov qword [rbp - 8], 0
mov r12d, 8
xorps xmm6, xmm6
lea rbx, [rbp + 0x20]
mov r15, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor esi, esi
mov qword [rbp - 0x10], 0
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x58], eax
mov rax, qword [0x1405c4390]
test rax, rax
jne 0x1403b24c6
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, rbx
call r15
mov rax, qword [rbp + 0x20]
mov qword [0x1405c4390], rax
mov rax, qword [0x1405c4390]
test rax, rax
je 0x1403b24a0
mov eax, 1
lock xadd qword [0x1405c4390], rax
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x58]
mov qword [rbp], rax
lea rax, [0x1403d4f80]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 0x10], rax
lea rax, [fcn.1403d51e0]
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 + 0x78], r14
mov qword [rbp + 0x70], rdi
mov byte [rbp + 0xa7], sil
mov byte [rbp + 0xa6], 0
lea rcx, [rbp - 0x40]
mov rdx, rbx
call fcn.1403c4cb0
test rdi, rdi
setne al
and sil, al
cmp sil, 1
jne 0x1403b256a
mov r8d, 1
mov rcx, r14
mov rdx, rdi
call fcn.1400ebc00
mov r8, qword [rbp - 0x40]
mov r9, qword [rbp - 0x38]
mov r10, qword [rbp - 0x30]
lea rsi, [r9 + r10]
test r10, r10
mov qword [rbp + 0x80], r8
mov qword [rbp + 0x88], r9
mov dword [rbp + 0x5c], r12d
mov qword [rbp - 0x18], r10
je 0x1403b25b0
movzx ecx, byte [r9]
movzx r14d, cl
test r14b, r14b
js 0x1403b25e0
lea r15, [r9 + 1]
jmp 0x1403b2644
mov eax, 4
mov qword [rbp + 0x90], rax
mov ebx, 8
xor r13d, r13d
xor r15d, r15d
xor r14d, r14d
xor r12d, r12d
jmp 0x1403b269f
mov eax, r14d
and eax, 0x1f
movzx edx, byte [r9 + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x1403b2638
movzx r14d, byte [r9 + 2]
shl edx, 6
and r14d, 0x3f
or r14d, edx
cmp cl, 0xf0
jb 0x1403b29c7
lea r15, [r9 + 4]
movzx ecx, byte [r9 + 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 0x1403b2644
jmp 0x1403b29de
lea r15, [r9 + 2]
shl eax, 6
or eax, edx
mov r14d, eax
mov eax, 1
xor r13d, r13d
mov rcx, rsi
sub rcx, r15
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 0x1403b2b86
inc rdx
mov qword [rbp + 0x90], rdx
mov r12w, 1
movzx eax, byte [0x1405c4221]
mov edi, 2
mov edx, 2
mov rcx, rbx
call fcn.1400ebbf0
test rax, rax
je 0x1403b2b88
mov rcx, rax
mov rax, qword [rbp - 0x10]
inc eax
mov dword [rbp + 0x60], eax
mov qword [rbp + 0x98], rcx
mov word [rcx], r14w
mov ebx, 1
mov r8, qword [rbp + 0x90]
jmp 0x1403b270f
mov rdi, r8
mov r13d, eax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x98], rax
mov word [rax + rbx*2], r14w
inc rbx
mov r8, rdi
test r15, r15
je 0x1403b2780
test r13w, r13w
je 0x1403b2760
xor eax, eax
mov r14d, r13d
cmp rbx, r8
jne 0x1403b26f0
mov rcx, rsi
sub rcx, r15
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
movzx edx, r12w
cmp ax, 1
sbb rcx, 0xffffffffffffffff
add rcx, rdx
mov r13d, eax
jmp 0x1403b27a1
cmp r15, rsi
je 0x1403b2780
movzx ecx, byte [r15]
movzx r14d, cl
test r14b, r14b
js 0x1403b2855
inc r15
xor eax, eax
jmp 0x1403b271f
cmp r12w, 1
jne 0x1403b2900
xor r15d, r15d
xor r12d, r12d
mov r14d, 0
mov ecx, 0
cmp rbx, r8
jne 0x1403b2820
lea rax, [rcx + 1]
add rax, rbx
mov qword [rbp + 0x90], r8
jb 0x1403b2b6d
lea rdi, [rcx + rbx]
inc rdi
lea rax, [r8 + r8]
cmp rax, rdi
cmova rdi, rax
cmp rdi, 5
jae 0x1403b27d2
mov edi, 4
test rdi, rdi
js 0x1403b2b6d
lea r8, [rdi + rdi]
movabs rcx, 0x7ffffffffffffffe
cmp r8, rcx
ja 0x1403b2b7b
cmp qword [rbp + 0x90], 0
je 0x1403b282b
mov rcx, qword [rbp + 0x98]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x30], rax
mov eax, 2
jmp 0x1403b282d
mov rdi, r8
xor r14d, r14d
jmp 0x1403b26f6
xor eax, eax
mov qword [rbp + 0x28], rax
mov edx, 2
mov rcx, rbp
lea r9, [rbp + 0x20]
call fcn.1403a3490
cmp dword [rbp], 1
je 0x1403b2b6f
mov rax, qword [rbp + 8]
jmp 0x1403b26fd
mov eax, r14d
and eax, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x1403b28ab
movzx r14d, byte [r15 + 2]
shl edx, 6
and r14d, 0x3f
or r14d, edx
cmp cl, 0xf0
jb 0x1403b28be
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 0x1403b28d1
xor eax, eax
jmp 0x1403b271f
add r15, 2
shl eax, 6
or eax, edx
mov r14d, eax
xor eax, eax
jmp 0x1403b271f
add r15, 3
shl eax, 0xc
or r14d, eax
cmp r14d, 0xffff
jbe 0x1403b28a4
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, r14d
mov r14d, ecx
jmp 0x1403b271f
mov rsi, r8
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, qword [rbp + 0x98]
mov edx, dword [rbp + 0x64]
mov r12d, dword [rbp + 0x5c]
mov r8d, r12d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1403b2a7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbp + 0x60]
cmp ecx, 9
mov rdi, qword [rbp + 0x80]
mov r14, qword [rbp + 0x88]
mov r15, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
mov rdx, rsi
jg 0x1403b2a0c
cmp eax, 5
jne 0x1403b2990
mov eax, ecx
mov qword [rbp - 0x10], rax
jmp 0x1403b299d
test r12d, r12d
je 0x1403b2a0c
xor r12d, r12d
cmp eax, 0x57
jne 0x1403b2a0c
mov sil, 1
test rdx, rdx
lea rbx, [rbp + 0x20]
je 0x1403b2480
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x98]
call fcn.1400ebc00
jmp 0x1403b2480
lea r15, [r9 + 3]
shl eax, 0xc
or r14d, eax
cmp r14d, 0xffff
jbe 0x1403b2644
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, 2
mov r13d, r14d
mov r14d, ecx
jmp 0x1403b264c
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x68]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdx, rdx
je 0x1403b2a3d
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x98]
call fcn.1400ebc00
test rdi, rdi
je 0x1403b2a53
mov r8d, 1
mov rcx, r14
mov rdx, rdi
call fcn.1400ebc00
cmp rbx, 0xffffffffffffffff
je 0x1403b2a62
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 + 0x80]
mov r14, qword [rbp + 0x88]
je 0x1403b2aa8
add rsi, rsi
mov rdx, rsi
mov r8d, 2
mov rcx, qword [rbp + 0x98]
call fcn.1400ebc00
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 + 0x78], r14
mov qword [rbp + 0x70], rdi
mov qword [rbp - 0x28], rbx
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
lea r8, [rbp + 0x20]
mov rcx, r14
mov rdx, qword [rbp - 0x18]
call fcn.1403b0620
test rax, rax
je 0x1403b2b3b
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rdx
mov qword [rax], 1
test rdi, rdi
jne 0x1403b2a42
jmp 0x1403b2a53
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rdi, rdi
je 0x1403b2a62
mov r8d, 1
mov rcx, r14
mov rdx, rdi
call fcn.1400ebc00
jmp 0x1403b2a62
jmp 0x1403b2b7b
mov rax, qword [rbp + 8]
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp - 8]
call fcn.1403f1990
jmp 0x1403b2bb7
xor edi, edi
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], 0
mov rcx, rdi
mov rdx, rbx
call fcn.1403f1990
ud2