Function at 0x4e4ad0
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 0x4e4b43
mov eax, ecx
mov qword [rsp + 0xd0], rax
mov rcx, qword [0x00572170]
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 0x4e4b5f
mov rax, qword [rsp + 0x80]
xchg qword [0x00572190], rax
mov rax, qword [0x00572190]
test rax, rax
jne 0x4e4ba0
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 0x4e4b50
call fcn.004d68b0
jmp 0x4e4b58
mov eax, 1
lock xadd qword [0x00572190], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0xb0], rax
lea rax, [0x00430bb0]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xc0], rax
lea rax, [fcn.00430cd0]
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.00404970
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 0x4e4c81
mov rcx, qword [0x00572170]
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 0x4e4cc0
movzx ecx, byte [r14]
test cl, cl
js 0x4e4ce0
lea rbx, [r14 + 1]
mov ebp, ecx
jmp 0x4e4d39
xor ebp, ebp
xor ebx, ebx
xor r15d, r15d
xor r13d, r13d
xor edi, edi
jmp 0x4e4d68
mov ebp, ecx
and ebp, 0x1f
movzx edx, byte [r14 + 1]
and edx, 0x3f
cmp cl, 0xdf
jbe 0x4e4d30
movzx eax, byte [r14 + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x4e50b1
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 0x4e4d39
jmp 0x4e50c8
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 0x4e526d
lea r14, [rdi + rdi]
add r14, 2
mov rax, qword [0x00572170]
test rax, rax
jne 0x4e4db1
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x4e525e
mov qword [0x00572170], rax
mov rcx, rax
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x4e525e
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 0x4e4e04
mov rbp, rdi
mov eax, r15d
mov word [rcx + r14*2], ax
inc r14
mov rdi, rbp
mov r15d, r12d
test rbx, rbx
je 0x4e4e90
test r15w, r15w
je 0x4e4e60
xor r12d, r12d
cmp r14, rdi
jne 0x4e4df0
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 0x4e4ebf
jmp 0x4e5250
cmp rbx, qword [rsp + 0x68]
je 0x4e4e90
movzx eax, byte [rbx]
test al, al
js 0x4e4f76
inc rbx
mov r15d, eax
xor r12d, r12d
cmp r14, rdi
jne 0x4e4df0
jmp 0x4e4e1b
cmp r13w, 1
jne 0x4e5030
xor ebx, ebx
xor eax, eax
cmp r14, rdi
jne 0x4e4f60
xor r13d, r13d
mov r12d, r15d
xor r15d, r15d
xor ebp, ebp
inc rbp
add rbp, r14
jb 0x4e5250
lea rax, [rdi + rdi]
cmp rax, rbp
cmova rbp, rax
cmp rbp, 5
jae 0x4e4ed5
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.004062e0
cmp qword [rsp + 0xb0], 0
mov rcx, qword [rsp + 0xb8]
je 0x4e4f6e
mov rdx, qword [rsp + 0xc0]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x4e524b
mov rbp, rdi
mov rcx, rsi
jmp 0x4e4df3
mov rbp, rdi
mov r12d, r15d
xor r13d, r13d
jmp 0x4e4df6
mov rsi, rcx
jmp 0x4e4df3
mov r15d, eax
and r15d, 0x1f
movzx r8d, byte [rbx + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x4e4fc6
movzx edx, byte [rbx + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp al, 0xf0
jb 0x4e4fe2
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 0x4e4e13
jmp 0x4e4ffa
add rbx, 2
shl r15d, 6
or r15d, r8d
xor r12d, r12d
cmp r14, rdi
jne 0x4e4df0
jmp 0x4e4e1b
add rbx, 3
shl r15d, 0xc
or r15d, edx
cmp r15d, 0xffff
jbe 0x4e4e13
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 0x4e4df0
jmp 0x4e4e1b
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 0x4e515c
call sub.kernel32.dll_GetLastError
mov ecx, dword [rsp + 0x74]
cmp ecx, 0xa
jge 0x4e50ec
cmp eax, 5
je 0x4e4b20
test ebx, ebx
je 0x4e50ec
xor ebx, ebx
cmp eax, 0x57
je 0x4e4b2a
jmp 0x4e50ec
lea rbx, [r14 + 3]
shl ebp, 0xc
or eax, ebp
mov ebp, eax
cmp ebp, 0xffff
jbe 0x4e4d39
lea eax, [rbp + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and ebp, 0x3ff
or ebp, 0xdc00
mov r15d, ebp
mov ebp, eax
jmp 0x4e4d3c
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rcx, qword [0x00572170]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
mov rsi, 0xffffffffffffffff
test r15, r15
je 0x4e5132
mov rcx, qword [0x00572170]
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapFree
cmp rbp, 0xffffffffffffffff
je 0x4e5140
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 [0x00572170]
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.004c22b0
test rax, rax
je 0x4e5218
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, rbp
test r15, r15
jne 0x4e5121
jmp 0x4e5132
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test r15, r15
je 0x4e5140
mov rcx, qword [0x00572170]
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapFree
jmp 0x4e5140
test rdx, rdx
jne 0x4e5257
call fcn.004042b0
jmp 0x4e5272
call fcn.00404d20
jmp 0x4e5272
mov edx, 2
mov rcx, r14
call fcn.00404d20
jmp 0x4e5272
call fcn.004042b0
ud2