Function at 0x4b4700
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 + 0xb8], rcx
mov byte [rsp + 0x47], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0xc0], ecx
xor eax, eax
mov qword [rsp + 0xf0], rax
mov ebx, 8
mov dil, 1
xorps xmm6, xmm6
nop dword [rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0xcc], eax
jmp 0x4b476f
mov rax, qword [rsp + 0x80]
xchg qword [0x00542118], rax
mov rax, qword [0x00542118]
test rax, rax
jne 0x4b47b0
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 0x4b4760
call fcn.004b5910
jmp 0x4b4768
mov eax, 1
lock xadd qword [0x00542118], rax
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0xcc]
mov qword [rsp + 0xd0], rax
lea rax, [0x00414b50]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0xe0], rax
lea rax, [fcn.00411230]
mov qword [rsp + 0xe8], 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 + 0xd0]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 2
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x80]
call fcn.0040e9e0
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x60], 0
mov qword [rsp + 0x90], rax
sete al
or dil, al
test dil, 1
jne 0x4b4894
mov rcx, qword [rsp + 0x68]
mov edx, 1
call fcn.0040c7c0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x60], xmm0
mov r15, qword [rsp + 0x68]
lea r14, [r15 + rax]
test rax, rax
mov dword [rsp + 0xc8], ebx
je 0x4b48e0
movzx edi, byte [r15]
test dil, dil
js 0x4b4900
inc r15
jmp 0x4b495b
xor edi, edi
xor r15d, r15d
xor ebx, ebx
xor ebp, ebp
xor r12d, r12d
jmp 0x4b4982
mov eax, edi
and eax, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x4b4950
movzx ecx, byte [r15 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp dil, 0xf0
jb 0x4b4caa
movzx edi, byte [r15 + 3]
add r15, 4
and eax, 7
shl eax, 0x12
shl ecx, 6
and edi, 0x3f
or edi, ecx
or edi, eax
cmp edi, 0xffff
jbe 0x4b495b
jmp 0x4b4cc1
add r15, 2
shl eax, 6
or eax, edx
mov edi, eax
mov eax, 1
xor ebx, ebx
mov r12, r14
sub r12, r15
add r12, 3
mov rcx, 0xffffffffffffffff
cmovb r12, rcx
shr r12, 2
add r12, rax
mov bp, 1
cmp r12, 4
mov eax, 3
cmovb r12, rax
movabs rax, 0x3ffffffffffffffe
cmp r12, rax
ja 0x4b4e7e
inc r12
lea rsi, [r12 + r12]
mov edx, 2
mov rcx, rsi
call fcn.0040c730
test rax, rax
je 0x4b4e85
mov rcx, qword [rsp + 0xf0]
inc ecx
mov dword [rsp + 0xc4], ecx
mov word [rax], di
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov esi, 1
jmp 0x4b49f9
mov ebx, ecx
mov word [rax + rsi*2], di
inc rsi
test r15, r15
je 0x4b4a60
test bx, bx
je 0x4b4a40
xor ecx, ecx
mov edi, ebx
cmp rsi, r12
jne 0x4b49f0
mov rdx, r14
sub rdx, r15
add rdx, 3
mov rax, 0xffffffffffffffff
cmovb rdx, rax
shr rdx, 2
cmp cx, 1
sbb rdx, 0xffffffffffffffff
cmp bp, 1
sbb rdx, 0xffffffffffffffff
mov ebx, ecx
jmp 0x4b4a8a
cmp r15, r14
je 0x4b4a60
movzx edi, byte [r15]
test dil, dil
js 0x4b4b60
inc r15
xor ecx, ecx
jmp 0x4b4a07
mov r12, qword [rsp + 0x48]
cmp bp, 1
jne 0x4b4c00
xor edi, edi
mov r15d, 0
mov ebp, 0
mov edx, 0
cmp rsi, r12
jne 0x4b49f2
inc rdx
add rdx, rsi
jb 0x4b4e63
mov r13, qword [rsp + 0x48]
mov rax, r13
add rax, r13
mov r12, rax
cmp rax, rdx
ja 0x4b4aac
mov r12, rdx
cmp r12, 5
jae 0x4b4ab8
mov r12d, 4
movabs rcx, 0x3ffffffffffffffe
inc rcx
xor r8d, r8d
cmp r12, rcx
setbe r8b
lea rdx, [r12 + r12]
add r8, r8
test r13, r13
je 0x4b4af7
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
mov eax, 2
jmp 0x4b4af9
xor eax, eax
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xd0]
lea r9, [rsp + 0x80]
call fcn.0041a070
cmp qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0xd8]
je 0x4b4b51
mov rdx, qword [rsp + 0xe0]
movabs rcx, 0x8000000000000001
cmp rdx, rcx
jne 0x4b4e5e
mov rax, qword [rsp + 0x50]
mov r12, r13
jmp 0x4b49f2
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
jmp 0x4b49f2
mov ecx, edi
and ecx, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp dil, 0xdf
jbe 0x4b4bce
movzx edx, byte [r15 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp dil, 0xf0
jb 0x4b4be1
movzx edi, byte [r15 + 3]
add r15, 4
and ecx, 7
shl ecx, 0x12
shl edx, 6
and edi, 0x3f
or edi, edx
or edi, ecx
cmp edi, 0xffff
jbe 0x4b4bf4
lea edx, [rdi + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov ecx, edi
mov edi, edx
jmp 0x4b4a07
add r15, 2
shl ecx, 6
or ecx, r8d
mov edi, ecx
xor ecx, ecx
jmp 0x4b4a07
add r15, 3
shl ecx, 0xc
or edx, ecx
mov edi, edx
cmp edi, 0xffff
ja 0x4b4baa
xor ecx, ecx
jmp 0x4b4a07
mov rsi, qword [rsp + 0x50]
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 + 0xc0]
mov ebx, dword [rsp + 0xc8]
mov r8d, ebx
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x4b4d5f
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0xc4]
cmp ecx, 0xa
jge 0x4b4cea
cmp eax, 5
jne 0x4b4c80
mov eax, ecx
mov qword [rsp + 0xf0], rax
jmp 0x4b4c8b
test ebx, ebx
je 0x4b4cea
xor ebx, ebx
cmp eax, 0x57
jne 0x4b4cea
xor edi, edi
test r12, r12
je 0x4b4750
mov edx, 2
mov rcx, rsi
call fcn.0040c7c0
xor edi, edi
jmp 0x4b4750
add r15, 3
shl eax, 0xc
or ecx, eax
mov edi, ecx
cmp edi, 0xffff
jbe 0x4b495b
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 0x4b4962
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rdi, 0xffffffffffffffff
test r12, r12
je 0x4b4d1e
mov edx, 2
mov rcx, rsi
call fcn.0040c7c0
cmp qword [rsp + 0x60], 0
je 0x4b4d35
mov rcx, qword [rsp + 0x68]
mov edx, 1
call fcn.0040c7c0
cmp r15, 0xffffffffffffffff
je 0x4b4d43
mov rcx, rdi
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 0x4b4d71
mov edx, 2
mov rcx, rsi
call fcn.0040c7c0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0xa0], 0
mov word [rsp + 0xa4], 0
movzx eax, byte [rsp + 0x47]
mov byte [rsp + 0xa1], al
xor al, 1
mov byte [rsp + 0xa0], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xd0], 0x18
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe0], 1
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x80], rax
mov rsi, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
lea r8, [rsp + 0x80]
mov rcx, rsi
call fcn.004a6730
test rax, rax
je 0x4b4e29
mov rax, qword [rsp + 0xb8]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdi, r15
cmp qword [rsp + 0x60], 0
jne 0x4b4d26
jmp 0x4b4d35
mov rax, qword [rsp + 0xb8]
mov qword [rax + 8], r15
mov qword [rax + 0x10], rdx
mov qword [rax], 0
cmp qword [rsp + 0x60], 0
je 0x4b4d43
mov edx, 1
mov rcx, rsi
call fcn.0040c7c0
jmp 0x4b4d43
test rdx, rdx
jne 0x4b4e6f
mov qword [rsp + 0x58], rsi
call fcn.0040e200
jmp 0x4b4e92
mov qword [rsp + 0x58], rsi
mov rcx, rax
call fcn.0040e250
jmp 0x4b4e92
call fcn.0040e200
jmp 0x4b4e92
mov edx, 2
mov rcx, rsi
call fcn.0040e250
ud2