Function at 0x140270fe0
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 ebp, 8
mov dil, 1
xorps xmm6, xmm6
nop word [rax + rax]
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rsp + 0x7c], eax
jmp 0x14027104f
mov rax, qword [rsp + 0x80]
xchg qword [0x1403ac178], rax
mov rax, qword [0x1403ac178]
test rax, rax
jne 0x140271090
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 0x140271040
call fcn.140272490
jmp 0x140271048
mov eax, 1
lock xadd qword [0x1403ac178], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0xb0], rax
lea rax, [0x1400aebc0]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xc0], rax
lea rax, [fcn.1400aaf80]
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.1400a8a00
cmp qword [rsp + 0x58], 0
sete al
or dil, al
test dil, 1
jne 0x14027115e
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, qword [rsp + 0x50]
call fcn.14029804c
mov r9, qword [rsp + 0xe8]
mov r8, qword [rsp + 0xf0]
mov r10, qword [rsp + 0xf8]
lea rax, [r8 + r10]
mov qword [rsp + 0x68], rax
test r10, r10
mov dword [rsp + 0x78], ebp
je 0x1402711a0
movzx r15d, byte [r8]
test r15b, r15b
js 0x1402711c0
lea rdi, [r8 + 1]
jmp 0x140271221
xor r12d, r12d
xor r14d, r14d
xor r15d, r15d
xor edi, edi
xor esi, esi
jmp 0x14027124c
mov eax, r15d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r15b, 0xdf
jbe 0x140271215
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r15b, 0xf0
jb 0x1402715cb
lea rdi, [r8 + 4]
movzx r15d, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and r15d, 0x3f
or r15d, ecx
or r15d, eax
cmp r15d, 0xffff
jbe 0x140271221
jmp 0x1402715e4
lea rdi, [r8 + 2]
shl eax, 6
or eax, edx
mov r15d, eax
mov eax, 1
xor r12d, r12d
mov rsi, qword [rsp + 0x68]
sub rsi, rdi
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, 0x3ffffffffffffffe
cmp rsi, rax
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
ja 0x1402717aa
mov qword [rsp + 0xd8], r10
inc rsi
lea rbp, [rsi + rsi]
movzx eax, byte [0x1403ac1f0]
mov rax, qword [0x1403ac160]
test rax, rax
jne 0x1402712ad
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140271798
mov qword [0x1403ac160], rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140271798
mov rbx, rax
mov rax, qword [rsp + 0xd0]
inc eax
mov dword [rsp + 0x74], eax
mov word [rbx], r15w
mov ebp, 1
mov rcx, rbx
jmp 0x140271301
mov r13, rsi
mov r12d, eax
mov word [rcx + rbp*2], r15w
inc rbp
mov rsi, r13
test rdi, rdi
je 0x140271370
test r12w, r12w
je 0x140271350
xor eax, eax
mov r15d, r12d
cmp rbp, rsi
jne 0x1402712f0
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 r14w, 1
sbb r13, 0xffffffffffffffff
mov r12d, eax
jmp 0x140271391
cmp rdi, qword [rsp + 0x68]
je 0x140271370
movzx r15d, byte [rdi]
test r15b, r15b
js 0x140271460
inc rdi
xor eax, eax
jmp 0x140271311
cmp r14w, 1
jne 0x140271510
xor edi, edi
xor r14d, r14d
mov r15d, 0
mov r13d, 0
cmp rbp, rsi
jne 0x1402713f0
inc r13
add r13, rbp
jb 0x140271782
lea rax, [rsi + rsi]
cmp rax, r13
cmova r13, rax
cmp r13, 5
jae 0x1402713b4
mov r13d, 4
movabs rcx, 0x3ffffffffffffffe
inc rcx
xor edx, edx
cmp r13, rcx
setbe cl
test rsi, rsi
je 0x1402713fb
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x90], rax
mov eax, 2
jmp 0x1402713fd
mov r13, rsi
xor r15d, r15d
jmp 0x1402712f6
xor eax, eax
lea r8, [r13*2]
mov dl, cl
add rdx, rdx
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0xb0]
lea r9, [rsp + 0x80]
call fcn.1400fe880
cmp qword [rsp + 0xb0], 0
mov rcx, qword [rsp + 0xb8]
je 0x140271458
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x14027177d
mov r13, rsi
mov rcx, rbx
jmp 0x1402712f6
mov rbx, rcx
jmp 0x1402712f6
mov eax, r15d
and eax, 0x1f
movzx r8d, byte [rdi + 1]
and r8d, 0x3f
cmp r15b, 0xdf
jbe 0x1402714b5
movzx edx, byte [rdi + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp r15b, 0xf0
jb 0x1402714c9
movzx r15d, byte [rdi + 3]
add rdi, 4
and eax, 7
shl eax, 0x12
shl edx, 6
and r15d, 0x3f
or r15d, edx
or r15d, eax
cmp r15d, 0xffff
ja 0x1402714de
xor eax, eax
jmp 0x140271311
add rdi, 2
shl eax, 6
or eax, r8d
mov r15d, eax
xor eax, eax
jmp 0x140271311
add rdi, 3
shl eax, 0xc
or edx, eax
mov r15d, edx
cmp r15d, 0xffff
jbe 0x1402714ae
lea edx, [r15 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov eax, r15d
mov r15d, edx
jmp 0x140271311
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 ebp, dword [rsp + 0x78]
mov r8d, ebp
mov r9d, 1
call sub.kernel32.dll_CreateNamedPipeW
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140271648
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
jg 0x140271612
cmp eax, 5
jne 0x140271590
mov eax, edx
mov qword [rsp + 0xd0], rax
jmp 0x14027159b
test ebp, ebp
je 0x140271612
xor ebp, ebp
cmp eax, 0x57
jne 0x140271612
lea rcx, [rsp + 0x80]
call fcn.140242490
xor edi, edi
test rsi, rsi
je 0x140271030
mov rcx, qword [0x1403ac160]
xor edi, edi
xor edx, edx
mov r8, rbx
call fcn.14029804c
jmp 0x140271030
lea rdi, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov r15d, ecx
cmp r15d, 0xffff
jbe 0x140271221
lea ecx, [r15 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov eax, 2
mov r12d, r15d
mov r15d, ecx
jmp 0x140271229
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov r14, 0xffffffffffffffff
test rsi, rsi
je 0x140271705
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, rbx
call fcn.14029804c
jmp 0x140271705
test rsi, rsi
je 0x14027165e
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, rbx
call fcn.14029804c
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 r14b, 1
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0xd8]
call fcn.140262170
test rax, rax
je 0x14027174c
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov r14, rdi
mov r8, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140271722
mov rcx, qword [0x1403ac160]
xor edx, edx
call fcn.14029804c
cmp rdi, 0xffffffffffffffff
je 0x140271730
mov rcx, r14
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 rax, qword [rsp + 0x60]
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
cmp qword [rsp + 0x58], 0
mov r8, qword [rsp + 0x50]
je 0x140271730
mov rcx, qword [0x1403ac160]
xor edx, edx
call fcn.14029804c
jmp 0x140271730
test rcx, rcx
jne 0x140271789
call fcn.1400a81a0
jmp 0x1402717b2
mov rdx, qword [rsp + 0xc0]
call fcn.1400a81e0
jmp 0x1402717b2
xor r14d, r14d
mov ecx, 2
mov rdx, rbp
call fcn.1400a81e0
jmp 0x1402717b2
xor r14d, r14d
call fcn.1400a81a0
ud2