Function at 0x1800476b0
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 r14d, 8
mov sil, 1
xorps xmm6, xmm6
lea rbx, [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
mov rax, qword [0x1800a4088]
test rax, rax
jne 0x180047758
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, rbx
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rbp + 0x20]
mov qword [0x1800a4088], rax
mov rax, qword [0x1800a4088]
test rax, rax
je 0x180047730
mov eax, 1
lock xadd qword [0x1800a4088], rax
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rbp], rax
lea rax, [0x18000a740]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x28]
mov qword [rbp + 0x10], rax
lea rax, [fcn.1800096f0]
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, rbx
call fcn.180008f30
cmp qword [rbp + 0x78], 0
sete al
or sil, al
test sil, 1
jne 0x1800477ec
mov rcx, qword [0x1800a4080]
xor edx, edx
mov r8, qword [rbp + 0x80]
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rbp - 0x40]
mov r8, qword [rbp - 0x38]
mov r9, qword [rbp - 0x30]
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 + 0x5c], r14d
mov qword [rbp - 0x18], r9
je 0x180047830
movzx r13d, byte [r8]
test r13b, r13b
js 0x180047850
lea rdi, [r8 + 1]
jmp 0x1800478b1
mov r15d, 4
mov ebx, 8
xor r12d, r12d
xor edi, edi
xor r13d, r13d
xor esi, esi
jmp 0x180047904
mov eax, r13d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r13b, 0xdf
jbe 0x1800478a5
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r13b, 0xf0
jb 0x180047bec
lea rdi, [r8 + 4]
movzx r13d, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and r13d, 0x3f
or r13d, ecx
or r13d, eax
cmp r13d, 0xffff
jbe 0x1800478b1
jmp 0x180047c05
lea rdi, [r8 + 2]
shl eax, 6
or eax, edx
mov r13d, eax
xor r12d, r12d
xor eax, eax
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, 3
mov r15d, 2
cmovae r15, rcx
lea rbx, [r15*2 + 4]
movabs rax, 0x3ffffffffffffffd
cmp rcx, rax
ja 0x180047da1
add r15, 2
mov si, 1
movzx eax, byte [0x1800a40a8]
xor ecx, ecx
mov rdx, rbx
call fcn.18004b1f0
test rax, rax
je 0x180047d98
mov r14, rax
mov rax, qword [rbp - 0x10]
inc eax
mov dword [rbp + 0x60], eax
mov word [r14], r13w
mov ebx, 1
mov r9, rsi
jmp 0x180047951
mov rsi, r15
mov r12d, eax
mov word [r14 + rbx*2], r13w
inc rbx
mov r15, rsi
test rdi, rdi
je 0x1800479c0
test r12w, r12w
je 0x1800479a0
xor eax, eax
mov r13d, r12d
cmp rbx, r15
jne 0x180047940
mov rsi, qword [rbp + 0x68]
sub rsi, rdi
add rsi, 3
mov rcx, 0xffffffffffffffff
cmovb rsi, rcx
shr rsi, 2
cmp ax, 1
sbb rsi, 0xffffffffffffffff
cmp r9w, 1
sbb rsi, 0xffffffffffffffff
mov r12d, eax
jmp 0x1800479e0
cmp rdi, qword [rbp + 0x68]
je 0x1800479c0
movzx r13d, byte [rdi]
test r13b, r13b
js 0x180047a82
inc rdi
xor eax, eax
jmp 0x180047961
cmp r9w, 1
jne 0x180047b30
xor edi, edi
xor r9d, r9d
mov r13d, 0
mov esi, 0
cmp rbx, r15
jne 0x180047a40
inc rsi
add rsi, rbx
jb 0x180047d8f
mov r10, r15
mov r15, r12
mov r12, rdi
lea rcx, [r10 + r10]
cmp rcx, rsi
cmova rsi, rcx
movabs rax, 0x3ffffffffffffffd
add rax, 2
xor edx, edx
cmp rsi, rax
setbe al
cmp rsi, 5
mov r8d, 4
cmovb rsi, r8
mov qword [rbp - 0x20], r10
mov rdi, r9
test r10, r10
je 0x180047a4b
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x30], rcx
mov ecx, 2
jmp 0x180047a4d
mov rsi, r15
xor r13d, r13d
jmp 0x180047946
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.180021f00
cmp qword [rbp], 0
jne 0x180047d81
mov r14, qword [rbp + 8]
mov r9, rdi
mov rdi, r12
mov r12, r15
jmp 0x180047946
mov eax, r13d
and eax, 0x1f
movzx edx, byte [rdi + 1]
and edx, 0x3f
cmp r13b, 0xdf
jbe 0x180047ad3
movzx ecx, byte [rdi + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r13b, 0xf0
jb 0x180047ae6
movzx r13d, byte [rdi + 3]
add rdi, 4
and eax, 7
shl eax, 0x12
shl ecx, 6
and r13d, 0x3f
or r13d, ecx
or r13d, eax
cmp r13d, 0xffff
ja 0x180047afb
xor eax, eax
jmp 0x180047961
add rdi, 2
shl eax, 6
or eax, edx
mov r13d, eax
xor eax, eax
jmp 0x180047961
add rdi, 3
shl eax, 0xc
or ecx, eax
mov r13d, ecx
cmp r13d, 0xffff
jbe 0x180047acc
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, r13d
mov r13d, ecx
jmp 0x180047961
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 r14d, dword [rbp + 0x5c]
mov r8d, r14d
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x180047ca6
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rbp + 0x20], rcx
mov edx, dword [rbp + 0x60]
cmp edx, 0xa
jge 0x180047c33
cmp eax, 5
jne 0x180047bb0
mov eax, edx
mov qword [rbp - 0x10], rax
jmp 0x180047bbd
test r14d, r14d
je 0x180047c33
xor r14d, r14d
cmp eax, 0x57
jne 0x180047c33
lea rbx, [rbp + 0x20]
mov rcx, rbx
call fcn.18001c870
xor esi, esi
test r15, r15
je 0x180047710
mov rcx, qword [0x1800a4080]
xor esi, esi
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
jmp 0x180047710
lea rdi, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov r13d, ecx
cmp r13d, 0xffff
jbe 0x1800478b1
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, 1
mov r12d, r13d
mov r13d, ecx
jmp 0x1800478b6
mov rax, qword [rbp + 0x70]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov rbx, 0xffffffffffffffff
test r15, r15
je 0x180047c5f
mov rcx, qword [0x1800a4080]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov r8, qword [rbp + 0x80]
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x180047c7d
mov rcx, qword [0x1800a4080]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp r12, 0xffffffffffffffff
je 0x180047c8b
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 r15, r15
je 0x180047cbc
mov rcx, qword [0x1800a4080]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
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.18003a810
test rax, rax
je 0x180047d49
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 0x180047c6f
jmp 0x180047c7d
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 0x180047c8b
mov rcx, qword [0x1800a4080]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x180047c8b
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp + 0x10]
mov r15, qword [rbp - 0x20]
jmp 0x180047d91
xor ecx, ecx
call fcn.180008990
jmp 0x180047db0
mov eax, 2
mov qword [rbp - 8], rax
mov sil, 1
mov rcx, qword [rbp - 8]
mov rdx, rbx
call fcn.180008990
ud2