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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x4f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x70], ecx
xor eax, eax
mov qword [rsp + 0xd0], rax
mov edi, 8
mov sil, 1
xorps xmm6, xmm6
nop word [rax + rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0x7c], eax
jmp 0x14009ccef
mov rax, qword [rsp + 0x80]
xchg qword [0x140132390], rax
mov rax, qword [0x140132390]
test rax, rax
jne 0x14009cd30
movaps xmmword [rsp + 0x80], xmm6
xor ecx, ecx
lea rdx, [rsp + 0x80]
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x14009cce0
call fcn.14009e120
jmp 0x14009cce8
mov eax, 1
lock xadd qword [0x140132390], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0xb0], rax
lea rax, [0x140034aa0]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xc0], rax
lea rax, [fcn.1400313a0]
mov qword [rsp + 0xc8], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 2
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
lea rcx, [rsp + 0xe8]
lea rdx, [rsp + 0x80]
call fcn.140008050
test r15, r15
sete al
or sil, al
test sil, 1
jne 0x14009cdf9
mov rcx, qword [0x140132378]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
mov r8, qword [rsp + 0xe8]
mov r9, qword [rsp + 0xf0]
mov rax, qword [rsp + 0xf8]
lea rcx, [r8 + rax]
mov qword [rsp + 0x68], rcx
test rax, rax
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], r9
mov dword [rsp + 0x78], edi
mov qword [rsp + 0xd8], rax
je 0x14009ce50
movzx r14d, byte [r8]
test r14b, r14b
js 0x14009ce70
lea rdi, [r8 + 1]
jmp 0x14009ced1
xor r12d, r12d
xor esi, esi
xor r14d, r14d
xor edi, edi
xor r15d, r15d
jmp 0x14009cefb
mov eax, r14d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x14009cec5
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r14b, 0xf0
jb 0x14009d230
lea rdi, [r8 + 4]
movzx r14d, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and r14d, 0x3f
or r14d, ecx
or r14d, eax
cmp r14d, 0xffff
jbe 0x14009ced1
jmp 0x14009d249
lea rdi, [r8 + 2]
shl eax, 6
or eax, edx
mov r14d, eax
mov eax, 1
xor r12d, r12d
mov r15, qword [rsp + 0x68]
sub r15, rdi
add r15, 3
mov rcx, 0xffffffffffffffff
cmovb r15, rcx
shr r15, 2
add r15, rax
mov si, 1
cmp r15, 4
mov eax, 3
cmovb r15, rax
movabs rax, 0x3ffffffffffffffe
cmp r15, rax
ja 0x14009d3fb
inc r15
lea rbp, [r15 + r15]
movzx eax, byte [0x140132410]
mov edx, 2
mov rcx, rbp
call fcn.140007210
test rax, rax
je 0x14009d40e
mov rbx, rax
mov rax, qword [rsp + 0xd0]
inc eax
mov dword [rsp + 0x74], eax
mov word [rbx], r14w
mov ebp, 1
mov rcx, rbx
jmp 0x14009cf71
mov r13, r15
mov r12d, eax
mov word [rcx + rbp*2], r14w
inc rbp
mov r15, r13
test rdi, rdi
je 0x14009cfe0
test r12w, r12w
je 0x14009cfc0
xor eax, eax
mov r14d, r12d
cmp rbp, r15
jne 0x14009cf60
mov r13, qword [rsp + 0x68]
sub r13, rdi
add r13, 3
mov rcx, 0xffffffffffffffff
cmovb r13, rcx
shr r13, 2
cmp ax, 1
sbb r13, 0xffffffffffffffff
cmp si, 1
sbb r13, 0xffffffffffffffff
mov r12d, eax
jmp 0x14009d003
cmp rdi, qword [rsp + 0x68]
je 0x14009cfe0
movzx r14d, byte [rdi]
test r14b, r14b
js 0x14009d0c3
inc rdi
xor eax, eax
jmp 0x14009cf81
cmp si, 1
jne 0x14009d170
xor edi, edi
xor esi, esi
mov r14d, 0
mov r13d, 0
cmp rbp, r15
jne 0x14009d0b0
inc r13
add r13, rbp
jb 0x14009d3e5
lea rax, [r15 + r15]
cmp rax, r13
cmova r13, rax
cmp r13, 5
jae 0x14009d026
mov r13d, 4
movabs rcx, 0x3ffffffffffffffe
inc rcx
xor edx, edx
cmp r13, rcx
setbe dl
lea r8, [r13*2]
add rdx, rdx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], 2
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xb0]
lea r9, [rsp + 0x80]
call fcn.14006f750
cmp qword [rsp + 0xb0], 0
mov rcx, qword [rsp + 0xb8]
je 0x14009d0bb
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x14009d3e0
mov r13, r15
mov rcx, rbx
jmp 0x14009cf66
mov r13, r15
xor r14d, r14d
jmp 0x14009cf66
mov rbx, rcx
jmp 0x14009cf66
mov eax, r14d
and eax, 0x1f
movzx r8d, byte [rdi + 1]
and r8d, 0x3f
cmp r14b, 0xdf
jbe 0x14009d118
movzx edx, byte [rdi + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp r14b, 0xf0
jb 0x14009d12c
movzx r14d, byte [rdi + 3]
add rdi, 4
and eax, 7
shl eax, 0x12
shl edx, 6
and r14d, 0x3f
or r14d, edx
or r14d, eax
cmp r14d, 0xffff
ja 0x14009d141
xor eax, eax
jmp 0x14009cf81
add rdi, 2
shl eax, 6
or eax, r8d
mov r14d, eax
xor eax, eax
jmp 0x14009cf81
add rdi, 3
shl eax, 0xc
or edx, eax
mov r14d, edx
cmp r14d, 0xffff
jbe 0x14009d111
lea edx, [r14 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, r14d
mov r14d, edx
jmp 0x14009cf81
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rbx
mov edx, dword [rsp + 0x70]
mov edi, dword [rsp + 0x78]
mov r8d, edi
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14009d2df
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x80], rcx
mov edx, dword [rsp + 0x74]
cmp edx, 9
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
jg 0x14009d277
cmp eax, 5
jne 0x14009d200
mov eax, edx
mov qword [rsp + 0xd0], rax
jmp 0x14009d20b
test edi, edi
je 0x14009d277
xor edi, edi
cmp eax, 0x57
jne 0x14009d277
lea rcx, [rsp + 0x80]
call fcn.14006cb90
mov rcx, qword [0x140132378]
xor esi, esi
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
jmp 0x14009ccd0
lea rdi, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov r14d, ecx
cmp r14d, 0xffff
jbe 0x14009ced1
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, 2
mov r12d, r14d
mov r14d, ecx
jmp 0x14009ced9
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov rcx, qword [0x140132378]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov rdi, 0xffffffffffffffff
test r15, r15
je 0x14009d2b5
mov rcx, qword [0x140132378]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
cmp r13, 0xffffffffffffffff
je 0x14009d2c3
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x140132378]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
mov dword [rsp + 0x80], 0
mov dword [rsp + 0xa0], 0
mov word [rsp + 0xa4], 0
movzx eax, byte [rsp + 0x4f]
mov byte [rsp + 0xa1], al
xor al, 1
mov byte [rsp + 0xa0], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xb0], 0x18
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xc0], 1
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x88], rax
mov sil, 1
lea r8, [rsp + 0x80]
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, qword [rsp + 0xd8]
mov r15, qword [rsp + 0x50]
call fcn.14008d3f0
test rax, rax
je 0x14009d3ad
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdi, r13
test r15, r15
jne 0x14009d2a4
jmp 0x14009d2b5
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], r13
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test r15, r15
je 0x14009d2c3
mov rcx, qword [0x140132378]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
jmp 0x14009d2c3
test rcx, rcx
jne 0x14009d3ec
call fcn.1400077b0
jmp 0x14009d427
mov rdx, qword [rsp + 0xc0]
call fcn.1400077f0
jmp 0x14009d427
xor esi, esi
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
call fcn.1400077b0
jmp 0x14009d427
xor esi, esi
mov ecx, 2
mov rdx, rbp
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
call fcn.1400077f0
ud2