Function at 0x14002deb0
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0x98], 0xfffffffffffffffe
mov qword [rbp + 0x48], rcx
mov byte [rbp + 0x95], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x3c], ecx
xor r12d, r12d
mov r15d, 8
mov r14b, 1
xorps xmm6, xmm6
mov rsi, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x30], eax
jmp 0x14002df2b
mov rax, qword [rbp + 0x50]
xchg qword [0x1400571e0], rax
mov rax, qword [0x1400571e0]
test rax, rax
jne 0x14002df70
movaps xmmword [rbp + 0x50], xmm6
xor ecx, ecx
lea rdx, [rbp + 0x50]
mov r8d, 0x10
mov r9d, 2
call rsi
test eax, eax
jns 0x14002df20
mov byte [rbp + 0x97], r12b
mov byte [rbp + 0x96], 1
call fcn.14002f420
jmp 0x14002df24
mov eax, 1
lock xadd qword [0x1400571e0], rax
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x30]
mov qword [rbp + 0x10], rax
lea rax, [0x14000ad30]
mov qword [rbp + 0x18], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 0x20], rax
lea rax, [fcn.140009130]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x50], 0
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 2
lea rax, [rbp + 0x10]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 2
mov byte [rbp + 0x97], r12b
mov byte [rbp + 0x96], 1
lea rcx, [rbp - 0x40]
lea rdx, [rbp + 0x50]
call fcn.140008760
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x50], xmm0
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x60], rax
test r14b, 1
jne 0x14002e01d
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x14002e01d
mov rcx, qword [rbp - 8]
not rdx
shr rdx, 0x3f
call fcn.1400052b0
mov rax, qword [rbp + 0x60]
mov qword [rbp], rax
movaps xmm0, xmmword [rbp + 0x50]
movaps xmmword [rbp - 0x10], xmm0
mov r12, qword [rbp - 8]
lea rcx, [r12 + rax]
mov qword [rbp + 0x40], rcx
test rax, rax
lea rsi, [rbp + 0x10]
mov dword [rbp + 0x34], r15d
je 0x14002e060
movzx ecx, byte [r12]
movzx r13d, cl
test r13b, r13b
js 0x14002e080
inc r12
jmp 0x14002e0e7
xor r13d, r13d
xor edi, edi
xor r15d, r15d
xor r12d, r12d
xor r14d, r14d
jmp 0x14002e110
mov eax, r13d
and eax, 0x1f
movzx edx, byte [r12 + 1]
and edx, 0x3f
cmp r13b, 0xdf
jbe 0x14002e0db
movzx r13d, byte [r12 + 2]
shl edx, 6
and r13d, 0x3f
or r13d, edx
cmp cl, 0xf0
jb 0x14002e461
movzx ecx, byte [r12 + 3]
add r12, 4
and eax, 7
shl eax, 0x12
shl r13d, 6
and ecx, 0x3f
or ecx, r13d
or ecx, eax
mov r13d, ecx
cmp r13d, 0xffff
jbe 0x14002e0e7
jmp 0x14002e478
add r12, 2
shl eax, 6
or eax, edx
mov r13d, eax
mov eax, 1
xor r15d, r15d
mov r14, qword [rbp + 0x40]
sub r14, r12
add r14, 3
mov rcx, 0xffffffffffffffff
cmovb r14, rcx
shr r14, 2
add r14, rax
mov di, 1
cmp r14, 4
mov eax, 3
cmovb r14, rax
movabs rax, 0x3fffffffffffffff
cmp r14, rax
jae 0x14002e615
inc r14
lea rbx, [r14 + r14]
mov edx, 2
mov rcx, rbx
call fcn.140005220
test rax, rax
je 0x14002e5f8
mov rcx, rax
mov rax, qword [rbp - 0x18]
inc eax
mov dword [rbp + 0x38], eax
mov word [rcx], r13w
mov ebx, 1
mov rax, r14
mov qword [rbp + 0x88], rcx
mov r8, rdi
jmp 0x14002e1b8
mov rdx, qword [rbp + 0x20]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x14002e5e5
mov r8, rdi
mov rax, qword [rbp + 0x80]
mov r14, rax
mov rcx, qword [rbp + 0x88]
mov edx, r15d
mov word [rcx + rbx*2], dx
inc rbx
mov r15d, r13d
test r12, r12
je 0x14002e220
test r15w, r15w
je 0x14002e200
xor r13d, r13d
cmp rbx, rax
jne 0x14002e1ab
mov qword [rbp + 0x80], r14
mov r14, qword [rbp + 0x40]
sub r14, r12
add r14, 3
mov rax, 0xffffffffffffffff
cmovb r14, rax
shr r14, 2
cmp r13w, 1
sbb r14, 0xffffffffffffffff
cmp r8w, 1
sbb r14, 0xffffffffffffffff
jmp 0x14002e248
cmp r12, qword [rbp + 0x40]
je 0x14002e220
movzx edx, byte [r12]
movzx r15d, dl
test r15b, r15b
js 0x14002e2f4
inc r12
jmp 0x14002e1c3
cmp r8w, 1
jne 0x14002e3b0
xor r12d, r12d
xor edx, edx
cmp rbx, r14
jne 0x14002e2b0
mov qword [rbp + 0x80], r14
mov r13d, r15d
xor r8d, r8d
xor r15d, r15d
xor r14d, r14d
inc r14
add r14, rbx
jb 0x14002e5ea
mov rdi, r8
mov rax, qword [rbp + 0x80]
add rax, rax
cmp rax, r14
cmova r14, rax
cmp r14, 5
jae 0x14002e274
mov r14d, 4
xor r8d, r8d
mov rcx, r14
shr rcx, 0x3e
sete r8b
lea rdx, [r14 + r14]
add r8, r8
cmp qword [rbp + 0x80], 0
je 0x14002e2be
mov rcx, qword [rbp + 0x88]
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rax
mov eax, 2
jmp 0x14002e2c0
mov rax, r14
xor r8d, r8d
mov r13d, r15d
jmp 0x14002e1ae
xor eax, eax
mov qword [rbp + 0x60], rax
mov rcx, rsi
lea r9, [rbp + 0x50]
call fcn.14001a030
cmp qword [rbp + 0x10], 0
mov rcx, qword [rbp + 0x18]
jne 0x14002e180
mov qword [rbp + 0x88], rcx
mov rax, r14
mov edx, r15d
mov r8, rdi
jmp 0x14002e1ae
mov edi, r15d
and edi, 0x1f
movzx esi, byte [r12 + 1]
and esi, 0x3f
cmp r15b, 0xdf
jbe 0x14002e33f
movzx r15d, byte [r12 + 2]
shl esi, 6
and r15d, 0x3f
or r15d, esi
cmp dl, 0xf0
jb 0x14002e354
movzx edx, byte [r12 + 3]
add r12, 4
and edi, 7
shl edi, 0x12
shl r15d, 6
and edx, 0x3f
or edx, r15d
or edx, edi
mov r15d, edx
jmp 0x14002e35e
add r12, 2
shl edi, 6
or edi, esi
mov r15d, edi
lea rsi, [rbp + 0x10]
jmp 0x14002e1c3
add r12, 3
shl edi, 0xc
or r15d, edi
lea rsi, [rbp + 0x10]
cmp r15d, 0xffff
jbe 0x14002e1c3
add r15d, 0xffff0000
mov edx, r15d
shr edx, 0xa
or edx, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov r13d, r15d
mov r15d, edx
cmp rbx, rax
jne 0x14002e1ab
jmp 0x14002e1cb
mov rdi, r14
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rbx, qword [rbp + 0x88]
mov rcx, rbx
mov edx, dword [rbp + 0x3c]
mov r15d, dword [rbp + 0x34]
mov r8d, r15d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14002e4e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbp + 0x38]
cmp ecx, 0xa
mov rsi, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
jge 0x14002e4a9
cmp eax, 5
jne 0x14002e430
mov eax, ecx
mov qword [rbp - 0x18], rax
jmp 0x14002e43d
test r15d, r15d
je 0x14002e4a9
xor r15d, r15d
cmp eax, 0x57
jne 0x14002e4a9
mov r12b, 1
xor r14d, r14d
test rdi, rdi
je 0x14002df10
mov edx, 2
mov rcx, rbx
call fcn.1400052b0
xor r14d, r14d
jmp 0x14002df10
add r12, 3
shl eax, 0xc
or r13d, eax
cmp r13d, 0xffff
jbe 0x14002e0e7
add r13d, 0xffff0000
mov ecx, r13d
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov r15d, r13d
mov eax, 2
mov r13d, ecx
jmp 0x14002e0ef
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x48]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rsi, 0xffffffffffffffff
test rdi, rdi
je 0x14002e575
mov edx, 2
mov rcx, rbx
call fcn.1400052b0
jmp 0x14002e575
test rdi, rdi
je 0x14002e4f4
mov edx, 2
mov rcx, rbx
call fcn.1400052b0
mov dword [rbp + 0x58], 0
mov dword [rbp + 0x70], 0
mov word [rbp + 0x74], 0
movzx eax, byte [rbp + 0x95]
mov byte [rbp + 0x71], al
xor al, 1
mov byte [rbp + 0x70], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov dword [rbp + 0x10], 0x18
mov qword [rbp + 0x18], 0
mov dword [rbp + 0x20], 1
mov qword [rbp + 0x50], rsi
mov rsi, qword [rbp - 8]
mov rdx, qword [rbp]
mov qword [rbp - 0x28], r14
mov byte [rbp + 0x97], 1
mov byte [rbp + 0x96], 0
lea r8, [rbp + 0x50]
mov rcx, rsi
call fcn.140021860
test rax, rax
je 0x14002e5b8
mov rax, qword [rbp + 0x48]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, r14
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x14002e58e
mov rcx, qword [rbp - 8]
not rdx
shr rdx, 0x3f
call fcn.1400052b0
cmp r14, 0xffffffffffffffff
je 0x14002e59d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm6, xmmword [rbp + 0xa0]
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x48]
mov qword [rax + 8], r14
mov qword [rax + 0x10], rdx
mov qword [rax], 0
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x14002e59d
not rdx
shr rdx, 0x3f
mov rcx, rsi
call fcn.1400052b0
jmp 0x14002e59d
test rdx, rdx
jne 0x14002e5f1
call fcn.140008540
jmp 0x14002e628
call fcn.1400356f0
jmp 0x14002e628
mov byte [rbp + 0x97], 1
mov byte [rbp + 0x96], 1
mov edx, 2
mov rcx, rbx
call fcn.1400356f0
jmp 0x14002e628
mov byte [rbp + 0x97], 1
mov byte [rbp + 0x96], 1
call fcn.140008540
ud2