Function at 0x14001e200
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, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x1c], eax
jmp 0x14001e27b
mov rax, qword [rbp + 0x30]
xchg qword [0x140048200], rax
mov rax, qword [0x140048200]
test rax, rax
jne 0x14001e2d0
movaps xmmword [rbp + 0x30], xmm6
xor ecx, ecx
lea rdx, [rbp + 0x30]
mov r8d, 0x10
mov r9d, 2
call r12
test eax, eax
jns 0x14001e270
mov qword [rbp + 0x78], r14
mov qword [rbp + 0x70], rbx
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
call fcn.1400253a0
jmp 0x14001e274
mov eax, 1
lock xadd qword [0x140048200], rax
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x1c]
mov qword [rbp - 8], rax
lea rax, [0x140034500]
mov qword [rbp], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 8], rax
lea rax, [fcn.140034620]
mov qword [rbp + 0x10], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 2
mov qword [rbp + 0x50], 0
lea rax, [rbp - 8]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 2
mov qword [rbp + 0x78], r14
mov qword [rbp + 0x70], rbx
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
lea rcx, [rbp - 0x40]
lea rdx, [rbp + 0x30]
call fcn.14002f5a0
test r14, r14
sete al
or sil, al
test sil, 1
jne 0x14001e376
mov r8d, 1
mov rcx, rbx
mov rdx, r14
call fcn.14000c900
mov r8, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp - 0x30]
lea r12, [r8 + rax]
test rax, rax
mov qword [rbp + 0x80], r8
mov dword [rbp + 0x20], r15d
mov qword [rbp - 0x18], rax
je 0x14001e3c0
movzx ecx, byte [r8]
movzx r13d, cl
test r13b, r13b
js 0x14001e3e0
lea r15, [r8 + 1]
jmp 0x14001e444
xor edi, edi
xor r14d, r14d
xor r13d, r13d
xor r15d, r15d
xor esi, esi
jmp 0x14001e46c
mov eax, r13d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r13b, 0xdf
jbe 0x14001e438
movzx r13d, byte [r8 + 2]
shl edx, 6
and r13d, 0x3f
or r13d, edx
cmp cl, 0xf0
jb 0x14001e7ed
lea r15, [r8 + 4]
movzx ecx, byte [r8 + 3]
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 0x14001e444
jmp 0x14001e804
lea r15, [r8 + 2]
shl eax, 6
or eax, edx
mov r13d, eax
mov eax, 1
xor edi, edi
mov rsi, r12
sub rsi, r15
add rsi, 3
mov rcx, 0xffffffffffffffff
cmovb rsi, rcx
shr rsi, 2
add rsi, rax
mov r14w, 1
cmp rsi, 4
mov eax, 3
cmovb rsi, rax
movabs rax, 0x3fffffffffffffff
cmp rsi, rax
jae 0x14001e9d9
inc rsi
lea rbx, [rsi + rsi]
movzx eax, byte [0x140048121]
mov edx, 2
mov rcx, rbx
call fcn.14000c8f0
test rax, rax
je 0x14001e9a6
mov rcx, rax
mov rax, qword [rbp - 0x10]
inc eax
mov dword [rbp + 0x6c], eax
mov word [rcx], r13w
mov ebx, 1
mov qword [rbp + 0x90], rcx
jmp 0x14001e4da
mov edi, eax
mov word [rcx + rbx*2], r13w
inc rbx
test r15, r15
je 0x14001e550
test di, di
je 0x14001e530
xor eax, eax
mov r13d, edi
cmp rbx, rsi
jne 0x14001e4d0
mov qword [rbp + 0x98], rsi
mov rsi, r12
sub rsi, r15
add rsi, 3
mov rcx, 0xffffffffffffffff
cmovb rsi, rcx
shr rsi, 2
cmp ax, 1
sbb rsi, 0xffffffffffffffff
cmp r14w, 1
sbb rsi, 0xffffffffffffffff
mov edi, eax
jmp 0x14001e57c
cmp r15, r12
je 0x14001e550
movzx edx, byte [r15]
movzx r13d, dl
test r13b, r13b
js 0x14001e64a
inc r15
xor eax, eax
jmp 0x14001e4e9
mov qword [rbp + 0x98], rsi
cmp r14w, 1
jne 0x14001e700
xor r15d, r15d
xor r14d, r14d
mov r13d, 0
mov esi, 0
cmp rbx, qword [rbp + 0x98]
jne 0x14001e5e0
inc rsi
add rsi, rbx
jb 0x14001e994
mov rax, qword [rbp + 0x98]
add rax, rax
cmp rax, rsi
cmova rsi, rax
cmp rsi, 5
jae 0x14001e5a4
mov esi, 4
xor edx, edx
mov rcx, rsi
shr rcx, 0x3e
sete cl
cmp qword [rbp + 0x98], 0
je 0x14001e5ef
mov r8, qword [rbp + 0x90]
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], 2
mov qword [rbp + 0x40], rax
jmp 0x14001e5f7
mov rsi, qword [rbp + 0x98]
xor r13d, r13d
jmp 0x14001e4d2
mov qword [rbp + 0x38], 0
lea r8, [rsi + rsi]
mov dl, cl
add rdx, rdx
lea rcx, [rbp - 8]
lea r9, [rbp + 0x30]
call fcn.140012280
cmp qword [rbp - 8], 0
mov rcx, qword [rbp]
je 0x14001e63e
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x14001e98f
mov rsi, qword [rbp + 0x98]
mov rcx, qword [rbp + 0x90]
jmp 0x14001e4d2
mov qword [rbp + 0x90], rcx
jmp 0x14001e4d2
mov eax, r13d
and eax, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp r13b, 0xdf
jbe 0x14001e6a2
movzx r13d, byte [r15 + 2]
shl r8d, 6
and r13d, 0x3f
or r13d, r8d
cmp dl, 0xf0
jb 0x14001e6b6
movzx edx, byte [r15 + 3]
add r15, 4
and eax, 7
shl eax, 0x12
shl r13d, 6
and edx, 0x3f
or edx, r13d
or edx, eax
mov r13d, edx
cmp r13d, 0xffff
ja 0x14001e6c9
xor eax, eax
jmp 0x14001e4e9
add r15, 2
shl eax, 6
or eax, r8d
mov r13d, eax
xor eax, eax
jmp 0x14001e4e9
add r15, 3
shl eax, 0xc
or r13d, eax
cmp r13d, 0xffff
jbe 0x14001e69b
lea edx, [r13 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, r13d
mov r13d, edx
jmp 0x14001e4e9
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov r14, qword [rbp + 0x90]
mov rcx, r14
mov edx, dword [rbp + 0x24]
mov r15d, dword [rbp + 0x20]
mov r8d, r15d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001e89e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rbp + 0x30], rcx
cmp dword [rbp + 0x6c], 9
mov rsi, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x88]
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
jg 0x14001e832
cmp eax, 5
jne 0x14001e790
mov eax, dword [rbp + 0x6c]
mov qword [rbp - 0x10], rax
jmp 0x14001e7a5
test r15d, r15d
je 0x14001e832
xor r15d, r15d
cmp eax, 0x57
jne 0x14001e832
lea rcx, [rbp + 0x30]
call fcn.14000db40
mov dil, 1
xor esi, esi
mov rdx, qword [rbp + 0x98]
test rdx, rdx
mov rbx, qword [rbp + 0x80]
mov r14, qword [rbp + 0x88]
je 0x14001e260
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x90]
call fcn.14000c900
xor esi, esi
jmp 0x14001e260
lea r15, [r8 + 3]
shl eax, 0xc
or r13d, eax
cmp r13d, 0xffff
jbe 0x14001e444
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, 2
mov edi, r13d
mov r13d, ecx
jmp 0x14001e44b
mov rax, qword [rbp + 0x28]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov rdx, qword [rbp + 0x98]
test rdx, rdx
je 0x14001e85e
add rdx, rdx
mov r8d, 2
mov rcx, r14
call fcn.14000c900
test rdi, rdi
je 0x14001e874
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
call fcn.14000c900
cmp rbx, 0xffffffffffffffff
je 0x14001e883
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x98]
test rdx, rdx
mov rsi, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x88]
je 0x14001e8c9
add rdx, rdx
mov r8d, 2
mov rcx, r14
call fcn.14000c900
mov dword [rbp + 0x30], 0
mov dword [rbp + 0x50], 0
mov word [rbp + 0x54], 0
movzx eax, byte [rbp + 0xa5]
mov byte [rbp + 0x51], al
xor al, 1
mov byte [rbp + 0x50], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov dword [rbp - 8], 0x18
mov qword [rbp], 0
mov dword [rbp + 8], 1
lea rax, [rbp - 8]
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x70], rsi
mov qword [rbp - 0x28], rbx
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 0
lea r8, [rbp + 0x30]
mov rcx, rsi
mov rdx, qword [rbp - 0x18]
call fcn.14001c010
test rax, rax
je 0x14001e95d
mov rax, qword [rbp + 0x28]
mov qword [rax + 8], rdx
mov qword [rax], 1
test rdi, rdi
jne 0x14001e863
jmp 0x14001e874
mov rax, qword [rbp + 0x28]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rdi, rdi
je 0x14001e883
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
mov edx, edi
test rcx, rcx
jne case.0x140016584.214
call fcn.14002f1a0
jmp 0x14001ea02
mov rax, qword [rbp + 0x88]