Function at 0x14004a330
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, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov qword [rsp + 0xa8], rcx
mov byte [rsp + 0x4f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0xb8], ecx
xor eax, eax
mov qword [rsp + 0xe8], rax
mov edi, 8
mov bl, 1
xorps xmm6, xmm6
nop dword [rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0xc4], eax
jmp 0x14004a39c
mov rax, qword [rsp + 0x70]
xchg qword [0x140101188], rax
mov rax, qword [0x140101188]
test rax, rax
jne 0x14004a3d0
movaps xmmword [rsp + 0x70], xmm6
xor ecx, ecx
lea rdx, [rsp + 0x70]
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x14004a390
call fcn.140051120
jmp 0x14004a395
mov eax, 1
lock xadd qword [0x140101188], rax
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0xc4]
mov qword [rsp + 0xc8], rax
lea rax, [fcn.1400ae000]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xd8], rax
lea rax, [fcn.1400ae250]
mov qword [rsp + 0xe0], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 2
lea rcx, [rsp + 0xf8]
lea rdx, [rsp + 0x70]
call fcn.14008bc70
movups xmm0, xmmword [rsp + 0xf8]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x80], rax
test bl, 1
jne 0x14004a4af
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14004a4af
mov rcx, qword [rsp + 0x50]
mov r8d, 1
call fcn.140001da0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x50], xmm0
mov rbp, qword [rsp + 0x50]
lea rcx, [rax + rbp]
mov qword [rsp + 0xb0], rcx
test rax, rax
mov dword [rsp + 0xc0], edi
je 0x14004a500
movzx eax, byte [rbp]
test al, al
js 0x14004a520
inc rbp
mov r12d, eax
jmp 0x14004a57a
xor r14d, r14d
xor edi, edi
xor r12d, r12d
xor ebp, ebp
xor r15d, r15d
jmp 0x14004a5a7
mov r12d, eax
and r12d, 0x1f
movzx edx, byte [rbp + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x14004a56f
movzx ecx, byte [rbp + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x14004a8d1
movzx eax, byte [rbp + 3]
add rbp, 4
and r12d, 7
shl r12d, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or r12d, eax
cmp r12d, 0xffff
jbe 0x14004a57a
jmp 0x14004a8e9
add rbp, 2
shl r12d, 6
or r12d, edx
mov eax, 1
xor r14d, r14d
mov r15, qword [rsp + 0xb0]
sub r15, rbp
add r15, 3
mov rcx, 0xffffffffffffffff
cmovb r15, rcx
shr r15, 2
add r15, rax
mov di, 1
cmp r15, 4
mov eax, 3
cmovb r15, rax
movabs rax, 0x3ffffffffffffffe
cmp r15, rax
ja 0x14004aaaa
inc r15
lea rbx, [r15 + r15]
mov rax, qword [0x1400ef4a8]
movzx eax, byte [rax]
mov edx, 2
mov rcx, rbx
call fcn.140001d90
test rax, rax
je 0x14004aab1
mov rsi, rax
mov rax, qword [rsp + 0xe8]
inc eax
mov dword [rsp + 0xbc], eax
mov word [rsi], r12w
mov ebx, 1
mov rcx, rsi
jmp 0x14004a621
mov r13, r15
mov r14d, eax
mov word [rcx + rbx*2], r12w
inc rbx
mov r15, r13
test rbp, rbp
je 0x14004a690
test r14w, r14w
je 0x14004a670
xor eax, eax
mov r12d, r14d
cmp rbx, r15
jne 0x14004a610
mov r13, qword [rsp + 0xb0]
sub r13, rbp
add r13, 3
mov rcx, 0xffffffffffffffff
cmovb r13, rcx
shr r13, 2
cmp ax, 1
sbb r13, 0xffffffffffffffff
cmp di, 1
sbb r13, 0xffffffffffffffff
mov r14d, eax
jmp 0x14004a6af
cmp rbp, qword [rsp + 0xb0]
je 0x14004a690
movzx eax, byte [rbp]
test al, al
js 0x14004a77c
inc rbp
mov r12d, eax
xor eax, eax
jmp 0x14004a631
cmp di, 1
jne 0x14004a820
xor ebp, ebp
xor edi, edi
mov r12d, 0
mov r13d, 0
cmp rbx, r15
jne 0x14004a710
inc r13
add r13, rbx
jb 0x14004aa94
lea rax, [r15 + r15]
cmp rax, r13
cmova r13, rax
cmp r13, 5
jae 0x14004a6d2
mov r13d, 4
movabs rcx, 0x3ffffffffffffffe
inc rcx
xor edx, edx
cmp r13, rcx
setbe cl
test r15, r15
je 0x14004a71b
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x80], rax
jmp 0x14004a724
mov r13, r15
xor r12d, r12d
jmp 0x14004a616
mov qword [rsp + 0x78], 0
lea r8, [r13*2]
mov dl, cl
add rdx, rdx
lea rcx, [rsp + 0xc8]
lea r9, [rsp + 0x70]
call fcn.140010110
cmp qword [rsp + 0xc8], 0
mov rcx, qword [rsp + 0xd0]
je 0x14004a774
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x14004aa8f
mov r13, r15
mov rcx, rsi
jmp 0x14004a616
mov rsi, rcx
jmp 0x14004a616
mov r12d, eax
and r12d, 0x1f
movzx r8d, byte [rbp + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x14004a7cd
movzx edx, byte [rbp + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp al, 0xf0
jb 0x14004a7df
movzx eax, byte [rbp + 3]
add rbp, 4
and r12d, 7
shl r12d, 0x12
shl edx, 6
and eax, 0x3f
or eax, edx
or r12d, eax
cmp r12d, 0xffff
ja 0x14004a7f3
xor eax, eax
jmp 0x14004a631
add rbp, 2
shl r12d, 6
or r12d, r8d
xor eax, eax
jmp 0x14004a631
add rbp, 3
shl r12d, 0xc
or r12d, edx
cmp r12d, 0xffff
jbe 0x14004a7c6
lea edx, [r12 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov eax, r12d
mov r12d, edx
jmp 0x14004a631
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rsi
mov edx, dword [rsp + 0xb8]
mov edi, dword [rsp + 0xc0]
mov r8d, edi
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14004a990
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0xbc]
cmp ecx, 9
jg 0x14004a918
cmp eax, 5
jne 0x14004a8a0
mov eax, ecx
mov qword [rsp + 0xe8], rax
jmp 0x14004a8ab
test edi, edi
je 0x14004a918
xor edi, edi
cmp eax, 0x57
jne 0x14004a918
xor ebx, ebx
test r15, r15
je 0x14004a380
add r15, r15
mov r8d, 2
mov rcx, rsi
mov rdx, r15
call fcn.140001da0
xor ebx, ebx
jmp 0x14004a380
add rbp, 3
shl r12d, 0xc
or r12d, ecx
cmp r12d, 0xffff
jbe 0x14004a57a
lea ecx, [r12 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov eax, 2
mov r14d, r12d
mov r12d, ecx
jmp 0x14004a582
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0xa8]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test r15, r15
je 0x14004a94c
add r15, r15
mov r8d, 2
mov rcx, rsi
mov rdx, r15
call fcn.140001da0
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14004a966
mov rcx, qword [rsp + 0x50]
mov r8d, 1
call fcn.140001da0
cmp rbx, 0xffffffffffffffff
je 0x14004a974
mov rcx, rbx
call fcn.1400bcd74
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r15, r15
je 0x14004a9a9
add r15, r15
mov r8d, 2
mov rcx, rsi
mov rdx, r15
call fcn.140001da0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x90], 0
mov word [rsp + 0x94], 0
movzx eax, byte [rsp + 0x4f]
mov byte [rsp + 0x91], al
xor al, 1
mov byte [rsp + 0x90], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0xc8], 0x18
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xd8], 1
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x78], rax
mov rsi, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov rcx, rsi
call fcn.140042c70
test rax, rax
je 0x14004aa57
mov rax, qword [rsp + 0xa8]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdx, qword [rsp + 0x58]
test rdx, rdx
jne 0x14004a956
jmp 0x14004a966
mov rax, qword [rsp + 0xa8]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14004a974
mov r8d, 1
mov rcx, rsi
call fcn.140001da0
jmp 0x14004a974
test rcx, rcx
jne 0x14004aa9b
call fcn.14008a5f0
jmp 0x14004aabe
mov rdx, qword [rsp + 0xd8]
call fcn.14008a630
jmp 0x14004aabe
call fcn.14008a5f0
jmp 0x14004aabe
mov ecx, 2
mov rdx, rbx
call fcn.14008a630
ud2