Function at 0x1401c1c50
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 + 0x98], rcx
mov byte [rsp + 0x4f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0xa4], ecx
xor eax, eax
mov qword [rsp + 0xb0], rax
mov r13d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rsp + 0x60]
nop word cs:[rax + rax]
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rsp + 0xac], eax
mov rax, qword [0x1402d9108]
test rax, rax
je 0x1401c1ce8
jmp 0x1401c1d1f
call fcn.1401c5ef0
xchg qword [0x1402d9108], rax
mov rax, qword [0x1402d9108]
test rax, rax
jne 0x1401c1d1f
movaps xmmword [rsp + 0x60], xmm6
xor ecx, ecx
mov rdx, r14
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1401c1cd0
mov rax, qword [rsp + 0x60]
xchg qword [0x1402d9108], rax
mov rax, qword [0x1402d9108]
test rax, rax
je 0x1401c1ce8
mov eax, 1
lock xadd qword [0x1402d9108], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xac]
mov qword [rsp + 0xb8], rax
lea rax, [0x14003ad20]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xc8], rax
lea rax, [0x14003ae40]
mov qword [rsp + 0xd0], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 2
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 2
lea rcx, [rsp + 0xe8]
mov rdx, r14
call fcn.140036ab0
test rdi, rdi
sete al
or sil, al
test sil, 1
jne 0x1401c1ddc
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, qword [rsp + 0x50]
call sub.kernel32.dll_HeapFree
mov r8, qword [rsp + 0xe8]
mov r15, qword [rsp + 0xf0]
mov r9, qword [rsp + 0xf8]
lea rbx, [r8 + r9]
test r9, r9
mov dword [rsp + 0xa8], r13d
je 0x1401c1e20
movzx eax, byte [r8]
test al, al
js 0x1401c1e40
lea rbp, [r8 + 1]
mov edi, eax
jmp 0x1401c1e95
xor r13d, r13d
xor r12d, r12d
xor ebp, ebp
xor edi, edi
xor esi, esi
jmp 0x1401c1ebf
mov edi, eax
and edi, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x1401c1e8c
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x1401c2155
lea rbp, [r8 + 4]
movzx eax, byte [r8 + 3]
and edi, 7
shl edi, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or edi, eax
cmp edi, 0xffff
jbe 0x1401c1e95
jmp 0x1401c216a
lea rbp, [r8 + 2]
shl edi, 6
or edi, edx
xor r13d, r13d
xor eax, eax
mov rcx, rbx
sub rcx, rbp
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
lea rsi, [rcx + rax]
inc rsi
mov r12w, 1
cmp rsi, 4
mov eax, 3
cmovb rsi, rax
movabs rax, 0x3fffffffffffffff
cmp rsi, rax
jae 0x1401c231b
mov qword [rsp + 0xd8], r9
mov qword [rsp + 0x50], r8
movzx eax, byte [0x1402d9160]
mov rax, qword [0x1402d9150]
test rax, rax
jne 0x1401c1f14
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401c231b
mov qword [0x1402d9150], rax
inc rsi
lea r8, [rsi + rsi]
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401c231b
mov qword [rsp + 0x58], r15
mov rcx, qword [rsp + 0xb0]
lea r15d, [rcx + 1]
mov word [rax], di
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 1
mov edi, 1
jmp 0x1401c1f7f
xor ecx, ecx
mov esi, r13d
cmp rdi, qword [rsp + 0x68]
je 0x1401c2014
mov r13d, ecx
mov word [rax + rdi*2], si
inc rdi
mov qword [rsp + 0x70], rdi
test rbp, rbp
je 0x1401c1fa0
test r13w, r13w
jne 0x1401c1f60
cmp rbp, rbx
je 0x1401c1fa0
movzx ecx, byte [rbp]
test cl, cl
js 0x1401c1fc7
inc rbp
mov esi, ecx
xor ecx, ecx
jmp 0x1401c1f65
cmp r12w, 1
jne 0x1401c20a0
xor r12d, r12d
mov ebp, 0
mov esi, 0
mov r8d, 0
cmp rdi, qword [rsp + 0x68]
jne 0x1401c1f73
jmp 0x1401c2041
mov esi, ecx
and esi, 0x1f
movzx r8d, byte [rbp + 1]
and r8d, 0x3f
cmp cl, 0xdf
jbe 0x1401c2059
movzx edx, byte [rbp + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp cl, 0xf0
jb 0x1401c206a
movzx ecx, byte [rbp + 3]
add rbp, 4
and esi, 7
shl esi, 0x12
shl edx, 6
and ecx, 0x3f
or ecx, edx
or esi, ecx
cmp esi, 0xffff
ja 0x1401c207b
xor ecx, ecx
jmp 0x1401c1f65
mov r8, rbx
sub r8, rbp
add r8, 3
mov rax, 0xffffffffffffffff
cmovb r8, rax
shr r8, 2
cmp cx, 1
sbb r8, 0xffffffffffffffff
cmp r12w, 1
sbb r8, 0xffffffffffffffff
mov r13d, ecx
inc r8
mov rcx, r14
mov rdx, rdi
call fcn.1401b5cb0
mov rax, qword [rsp + 0x60]
jmp 0x1401c1f73
add rbp, 2
shl esi, 6
or esi, r8d
xor ecx, ecx
jmp 0x1401c1f65
add rbp, 3
shl esi, 0xc
or esi, edx
cmp esi, 0xffff
jbe 0x1401c200d
lea edx, [rsi + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and esi, 0x3ff
or esi, 0xdc00
mov ecx, esi
mov esi, edx
jmp 0x1401c1f65
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
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 + 0xa4]
mov r13d, dword [rsp + 0xa8]
mov r8d, r13d
mov r9d, 1
call sub.kernel32.dll_CreateNamedPipeW
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401c2213
call sub.kernel32.dll_GetLastError
cmp r15d, 0xa
jge 0x1401c2194
cmp eax, 5
jne 0x1401c2120
mov eax, r15d
mov qword [rsp + 0xb0], rax
jmp 0x1401c212d
test r13d, r13d
je 0x1401c2194
xor r13d, r13d
cmp eax, 0x57
jne 0x1401c2194
xor esi, esi
test r12, r12
mov rdi, qword [rsp + 0x58]
je 0x1401c1cb0
mov rcx, qword [0x1402d9150]
xor esi, esi
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
jmp 0x1401c1cb0
lea rbp, [r8 + 3]
shl edi, 0xc
or edi, ecx
cmp edi, 0xffff
jbe 0x1401c1e95
lea ecx, [rdi + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov eax, 1
mov r13d, edi
mov edi, ecx
jmp 0x1401c1e9a
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x98]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov r14, 0xffffffffffffffff
test r12, r12
je 0x1401c21cc
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401c21e9
mov rcx, qword [0x1402d9150]
xor edx, edx
call sub.kernel32.dll_HeapFree
cmp rdi, 0xffffffffffffffff
je 0x1401c21f7
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
test r12, r12
je 0x1401c2229
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x7c], 0
mov word [rsp + 0x84], 0
movzx eax, byte [rsp + 0x4f]
mov byte [rsp + 0x81], al
xor al, 1
mov byte [rsp + 0x80], al
mov dword [rsp + 0x78], 0
mov dword [rsp + 0xb8], 0x18
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0xc8], 1
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0xd8]
call fcn.1401bf610
test rax, rax
mov rcx, qword [rsp + 0x58]
je 0x1401c22e3
mov rax, qword [rsp + 0x98]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov r14, rdi
mov r8, qword [rsp + 0x50]
test rcx, rcx
jne 0x1401c21db
jmp 0x1401c21e9
mov rax, qword [rsp + 0x98]
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rcx, rcx
je 0x1401c21f7
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, qword [rsp + 0x50]
call sub.kernel32.dll_HeapFree
jmp 0x1401c21f7
ud2