Function at 0x14004c3d0
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 + 0xa8], rcx
mov byte [rsp + 0x47], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0xb0], ecx
xor eax, eax
mov qword [rsp + 0xf8], rax
mov ebx, 8
mov dil, 1
xorps xmm6, xmm6
jmp 0x14004c422
xor edi, edi
call sub.KERNEL32.DLL_GetCurrentProcessId
mov dword [rsp + 0xbc], eax
jmp 0x14004c43c
mov rax, qword [rsp + 0x60]
xchg qword [0x1401021f8], rax
mov rax, qword [0x1401021f8]
test rax, rax
jne 0x14004c470
movaps xmmword [rsp + 0x60], xmm6
xor ecx, ecx
lea rdx, [rsp + 0x60]
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x14004c430
call fcn.140053430
jmp 0x14004c435
mov eax, 1
lock xadd qword [0x1401021f8], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xbc]
mov qword [rsp + 0xc0], rax
lea rax, [fcn.1400b1d50]
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xd0], rax
lea rax, [fcn.1400b1fa0]
mov qword [rsp + 0xd8], 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 + 0xc0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 2
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.14008fcb0
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
test dil, 1
jne 0x14004c544
mov rdx, qword [rsp + 0x98]
test rdx, rdx
je 0x14004c544
mov rcx, qword [rsp + 0x90]
mov r8d, 1
call fcn.140002ef0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x90], xmm0
mov r15, qword [rsp + 0x90]
lea rbp, [r15 + rax]
test rax, rax
mov dword [rsp + 0xb8], ebx
je 0x14004c590
movzx ecx, byte [r15]
test cl, cl
js 0x14004c5b0
inc r15
mov edi, ecx
jmp 0x14004c609
xor edi, edi
xor r15d, r15d
xor ebx, ebx
xor r12d, r12d
xor r13d, r13d
jmp 0x14004c631
mov edi, ecx
and edi, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp cl, 0xdf
jbe 0x14004c600
movzx eax, byte [r15 + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x14004c99c
movzx ecx, byte [r15 + 3]
add r15, 4
and edi, 7
shl edi, 0x12
shl eax, 6
and ecx, 0x3f
or ecx, eax
or ecx, edi
mov edi, ecx
cmp edi, 0xffff
jbe 0x14004c609
jmp 0x14004c9b3
add r15, 2
shl edi, 6
or edi, edx
mov eax, 1
xor ebx, ebx
mov r13, rbp
sub r13, r15
add r13, 3
mov rcx, 0xffffffffffffffff
cmovb r13, rcx
shr r13, 2
add r13, rax
mov r12w, 1
cmp r13, 4
mov eax, 3
cmovb r13, rax
movabs rax, 0x3ffffffffffffffe
cmp r13, rax
ja 0x14004cb8c
inc r13
mov rsi, r13
add rsi, r13
mov edx, 2
mov rcx, rsi
call fcn.140002ee0
test rax, rax
je 0x14004cb93
mov rcx, qword [rsp + 0xf8]
inc ecx
mov dword [rsp + 0xb4], ecx
mov word [rax], di
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 1
mov esi, 1
mov rdi, r13
jmp 0x14004c6ba
mov ebx, ecx
mov word [rax + rsi*2], r14w
inc rsi
test r15, r15
je 0x14004c720
test bx, bx
je 0x14004c700
xor ecx, ecx
mov r14d, ebx
cmp rsi, rdi
jne 0x14004c6b0
mov rdx, rbp
sub rdx, r15
add rdx, 3
mov rax, 0xffffffffffffffff
cmovb rdx, rax
shr rdx, 2
cmp cx, 1
sbb rdx, 0xffffffffffffffff
cmp r12w, 1
sbb rdx, 0xffffffffffffffff
mov ebx, ecx
jmp 0x14004c74b
cmp r15, rbp
je 0x14004c720
movzx edx, byte [r15]
test dl, dl
js 0x14004c814
inc r15
mov r14d, edx
xor ecx, ecx
jmp 0x14004c6c9
cmp r12w, 1
jne 0x14004c8c0
xor r14d, r14d
mov rdi, r13
mov r15d, 0
mov r12d, 0
mov edx, 0
cmp rsi, r13
jne 0x14004c6b2
inc rdx
add rdx, rsi
jb 0x14004cb69
mov rdi, qword [rsp + 0x50]
lea rax, [rdi + rdi]
mov r13, rax
cmp rax, rdx
ja 0x14004c76b
mov r13, rdx
cmp r13, 5
jae 0x14004c777
mov r13d, 4
movabs rcx, 0x3ffffffffffffffe
inc rcx
xor edx, edx
cmp r13, rcx
setbe dl
mov r8, r13
add r8, r13
add rdx, rdx
test rdi, rdi
je 0x14004c7b4
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 2
mov qword [rsp + 0x70], rax
jmp 0x14004c7bd
mov qword [rsp + 0x68], 0
lea rcx, [rsp + 0xc0]
lea r9, [rsp + 0x60]
call fcn.140012a20
cmp qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0xc8]
je 0x14004c802
movabs rcx, 0x8000000000000001
cmp rax, rcx
jne 0x14004cb64
mov rax, qword [rsp + 0x48]
mov r13, rdi
jmp 0x14004c6b2
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r13
mov rdi, r13
jmp 0x14004c6b2
mov r14d, edx
and r14d, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp dl, 0xdf
jbe 0x14004c88e
movzx ecx, byte [r15 + 2]
shl r8d, 6
and ecx, 0x3f
or ecx, r8d
cmp dl, 0xf0
jb 0x14004c8a0
movzx edx, byte [r15 + 3]
add r15, 4
and r14d, 7
shl r14d, 0x12
shl ecx, 6
and edx, 0x3f
or edx, ecx
or edx, r14d
mov r14d, edx
cmp r14d, 0xffff
jbe 0x14004c8b7
lea edx, [r14 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov ecx, r14d
mov r14d, edx
jmp 0x14004c6c9
add r15, 2
shl r14d, 6
or r14d, r8d
xor ecx, ecx
jmp 0x14004c6c9
add r15, 3
shl r14d, 0xc
or ecx, r14d
mov r14d, ecx
cmp r14d, 0xffff
ja 0x14004c865
xor ecx, ecx
jmp 0x14004c6c9
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], rsi
mov rsi, qword [rsp + 0xe0]
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 + 0xb0]
mov ebx, dword [rsp + 0xb8]
mov r8d, ebx
mov r9d, 1
call sub.KERNEL32.DLL_CreateNamedPipeW
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14004ca57
call sub.KERNEL32.DLL_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x60], rcx
mov edx, dword [rsp + 0xb4]
cmp edx, 0xa
jge 0x14004c9dc
cmp eax, 5
jne 0x14004c960
mov eax, edx
mov qword [rsp + 0xf8], rax
jmp 0x14004c96b
test ebx, ebx
je 0x14004c9dc
xor ebx, ebx
cmp eax, 0x57
jne 0x14004c9dc
lea rcx, [rsp + 0x60]
call fcn.140008d30
mov rdx, qword [rsp + 0xe8]
test rdx, rdx
je 0x14004c420
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.140002ef0
jmp 0x14004c420
add r15, 3
shl edi, 0xc
or eax, edi
mov edi, eax
cmp edi, 0xffff
jbe 0x14004c609
lea ecx, [rdi + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov ebx, edi
mov eax, 2
mov edi, ecx
jmp 0x14004c610
mov rax, qword [rsp + 0xa8]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov rdx, qword [rsp + 0xe8]
test rdx, rdx
je 0x14004ca0d
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.140002ef0
mov rdx, qword [rsp + 0x98]
test rdx, rdx
je 0x14004ca2d
mov rcx, qword [rsp + 0x90]
mov r8d, 1
call fcn.140002ef0
cmp r13, 0xffffffffffffffff
je 0x14004ca3b
mov rcx, r13
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 rdx, qword [rsp + 0xe8]
test rdx, rdx
je 0x14004ca75
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.140002ef0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x80], 0
mov word [rsp + 0x84], 0
movzx eax, byte [rsp + 0x47]
mov byte [rsp + 0x81], al
xor al, 1
mov byte [rsp + 0x80], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0xc0], 0x18
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xd0], 1
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x68], rax
mov rsi, qword [rsp + 0x90]
mov rdx, qword [rsp + 0xa0]
lea r8, [rsp + 0x60]
mov rcx, rsi
call fcn.140044400
test rax, rax
je 0x14004cb29
mov rax, qword [rsp + 0xa8]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdx, qword [rsp + 0x98]
test rdx, rdx
jne 0x14004ca1a
jmp 0x14004ca2d
mov rax, qword [rsp + 0xa8]
mov qword [rax + 8], r13
mov qword [rax + 0x10], rdx
mov qword [rax], 0
mov rdx, qword [rsp + 0x98]
test rdx, rdx
je 0x14004ca3b
mov r8d, 1
mov rcx, rsi
call fcn.140002ef0
jmp 0x14004ca3b
test rax, rax
jne 0x14004cb75
mov qword [rsp + 0x58], rsi
call fcn.14008e8d0
jmp 0x14004cba0
mov rdx, qword [rsp + 0xd0]
mov qword [rsp + 0x58], rsi
mov rcx, rax
call fcn.14008e910
jmp 0x14004cba0
call fcn.14008e8d0
jmp 0x14004cba0
mov ecx, 2
mov rdx, rsi
call fcn.14008e910
ud2