Function at 0x4e8fd0
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 + 0x50], 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 ebx, 8
mov dil, 1
xorps xmm6, xmm6
jmp 0x4e9043
mov eax, ecx
mov qword [rsp + 0xd0], rax
mov rcx, qword [0x00576170]
xor edi, edi
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
mov rsi, r14
mov rbp, r15
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rsp + 0x7c], eax
jmp 0x4e905f
mov rax, qword [rsp + 0x80]
xchg qword [0x00576190], rax
mov rax, qword [0x00576190]
test rax, rax
jne 0x4e90a0
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 0x4e9050
call fcn.004dadb0
jmp 0x4e9058
mov eax, 1
lock xadd qword [0x00576190], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0xb0], rax
lea rax, [0x00430030]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xc0], rax
lea rax, [fcn.00430150]
mov qword [rsp + 0xc8], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 2
lea rcx, [rsp + 0xe8]
lea rdx, [rsp + 0x80]
call fcn.00404000
mov r15, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xf8]
test rbp, rbp
sete al
or dil, al
test dil, 1
jne 0x4e9181
mov rcx, qword [0x00576170]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
lea rax, [r14 + r12]
mov qword [rsp + 0x68], rax
test r12, r12
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0xd8], r12
je 0x4e91c0
movzx ecx, byte [r14]
test cl, cl
js 0x4e91e0
lea rbx, [r14 + 1]
mov ebp, ecx
jmp 0x4e9239
xor ebp, ebp
xor ebx, ebx
xor r15d, r15d
xor r13d, r13d
xor edi, edi
jmp 0x4e9268
mov ebp, ecx
and ebp, 0x1f
movzx edx, byte [r14 + 1]
and edx, 0x3f
cmp cl, 0xdf
jbe 0x4e9230
movzx eax, byte [r14 + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x4e95b1
lea rbx, [r14 + 4]
movzx ecx, byte [r14 + 3]
and ebp, 7
shl ebp, 0x12
shl eax, 6
and ecx, 0x3f
or ecx, eax
or ecx, ebp
mov ebp, ecx
cmp ebp, 0xffff
jbe 0x4e9239
jmp 0x4e95c8
lea rbx, [r14 + 2]
shl ebp, 6
or ebp, edx
xor r15d, r15d
mov rdi, qword [rsp + 0x68]
sub rdi, rbx
add rdi, 3
mov rax, 0xffffffffffffffff
cmovb rdi, rax
shr rdi, 2
cmp r15w, 1
sbb rdi, 0xffffffffffffffff
inc rdi
mov r13w, 1
cmp rdi, 4
mov eax, 3
cmovb rdi, rax
movabs rax, 0x3fffffffffffffff
cmp rdi, rax
jae 0x4e976d
lea r14, [rdi + rdi]
add r14, 2
mov rax, qword [0x00576170]
test rax, rax
jne 0x4e92b1
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x4e975e
mov qword [0x00576170], rax
mov rcx, rax
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x4e975e
mov rsi, rax
mov rax, qword [rsp + 0xd0]
inc eax
mov dword [rsp + 0x74], eax
inc rdi
mov word [rsi], bp
mov r14d, 1
mov rcx, rsi
jmp 0x4e9304
mov rbp, rdi
mov eax, r15d
mov word [rcx + r14*2], ax
inc r14
mov rdi, rbp
mov r15d, r12d
test rbx, rbx
je 0x4e9390
test r15w, r15w
je 0x4e9360
xor r12d, r12d
cmp r14, rdi
jne 0x4e92f0
mov rbp, qword [rsp + 0x68]
sub rbp, rbx
add rbp, 3
mov rax, 0xffffffffffffffff
cmovb rbp, rax
shr rbp, 2
cmp r12w, 1
sbb rbp, 0xffffffffffffffff
cmp r13w, 1
sbb rbp, 0xffffffffffffffff
inc rbp
add rbp, r14
jae 0x4e93bf
jmp 0x4e9750
cmp rbx, qword [rsp + 0x68]
je 0x4e9390
movzx eax, byte [rbx]
test al, al
js 0x4e9476
inc rbx
mov r15d, eax
xor r12d, r12d
cmp r14, rdi
jne 0x4e92f0
jmp 0x4e931b
cmp r13w, 1
jne 0x4e9530
xor ebx, ebx
xor eax, eax
cmp r14, rdi
jne 0x4e9460
xor r13d, r13d
mov r12d, r15d
xor r15d, r15d
xor ebp, ebp
inc rbp
add rbp, r14
jb 0x4e9750
lea rax, [rdi + rdi]
cmp rax, rbp
cmova rbp, rax
cmp rbp, 5
jae 0x4e93d5
mov ebp, 4
xor r8d, r8d
movabs rcx, 0x3fffffffffffffff
cmp rbp, rcx
setbe r8b
mov rdx, rbp
add rdx, rbp
add r8, r8
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
lea rcx, [rsp + 0xb0]
lea r9, [rsp + 0x80]
call fcn.004b5a50
cmp qword [rsp + 0xb0], 0
mov rcx, qword [rsp + 0xb8]
je 0x4e946e
mov rdx, qword [rsp + 0xc0]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x4e974b
mov rbp, rdi
mov rcx, rsi
jmp 0x4e92f3
mov rbp, rdi
mov r12d, r15d
xor r13d, r13d
jmp 0x4e92f6
mov rsi, rcx
jmp 0x4e92f3
mov r15d, eax
and r15d, 0x1f
movzx r8d, byte [rbx + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x4e94c6
movzx edx, byte [rbx + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp al, 0xf0
jb 0x4e94e2
movzx eax, byte [rbx + 3]
add rbx, 4
and r15d, 7
shl r15d, 0x12
shl edx, 6
and eax, 0x3f
or eax, edx
or r15d, eax
cmp r15d, 0xffff
jbe 0x4e9313
jmp 0x4e94fa
add rbx, 2
shl r15d, 6
or r15d, r8d
xor r12d, r12d
cmp r14, rdi
jne 0x4e92f0
jmp 0x4e931b
add rbx, 3
shl r15d, 0xc
or r15d, edx
cmp r15d, 0xffff
jbe 0x4e9313
lea eax, [r15 + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov r12d, r15d
mov r15d, eax
cmp r14, rdi
jne 0x4e92f0
jmp 0x4e931b
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 + 0x70]
mov ebx, dword [rsp + 0x78]
mov r8d, ebx
mov r9d, 1
call sub.kernel32.dll_CreateNamedPipeW
mov rbp, rax
cmp rax, 0xffffffffffffffff
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
mov rdi, qword [rsp + 0xd8]
jne 0x4e965c
call sub.kernel32.dll_GetLastError
mov ecx, dword [rsp + 0x74]
cmp ecx, 0xa
jge 0x4e95ec
cmp eax, 5
je 0x4e9020
test ebx, ebx
je 0x4e95ec
xor ebx, ebx
cmp eax, 0x57
je 0x4e902a
jmp 0x4e95ec
lea rbx, [r14 + 3]
shl ebp, 0xc
or eax, ebp
mov ebp, eax
cmp ebp, 0xffff
jbe 0x4e9239
lea eax, [rbp + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and ebp, 0x3ff
or ebp, 0xdc00
mov r15d, ebp
mov ebp, eax
jmp 0x4e923c
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rcx, qword [0x00576170]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
mov rsi, 0xffffffffffffffff
test r15, r15
je 0x4e9632
mov rcx, qword [0x00576170]
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapFree
cmp rbp, 0xffffffffffffffff
je 0x4e9640
mov rcx, rsi
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 [0x00576170]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
mov dword [rsp + 0x88], 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 + 0x80], rax
lea r8, [rsp + 0x80]
mov rcx, r14
mov rdx, rdi
call fcn.004c67b0
test rax, rax
je 0x4e9718
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, rbp
test r15, r15
jne 0x4e9621
jmp 0x4e9632
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test r15, r15
je 0x4e9640
mov rcx, qword [0x00576170]
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapFree
jmp 0x4e9640
test rdx, rdx
jne 0x4e9757
call fcn.00403940
jmp 0x4e9772
call fcn.004043b0
jmp 0x4e9772
mov edx, 2
mov rcx, r14
call fcn.004043b0
jmp 0x4e9772
call fcn.00403940
ud2