Function at 0x47a880
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 0x47a8ef
mov rax, qword [rsp + 0x80]
xchg qword [0x004b8140], rax
mov rax, qword [0x004b8140]
test rax, rax
jne 0x47a930
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 0x47a8e0
call fcn.0047ba90
jmp 0x47a8e8
mov eax, 1
lock xadd qword [0x004b8140], rax
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0xcc]
mov qword [rsp + 0xd0], rax
lea rax, [0x0042aac0]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0xe0], rax
lea rax, [fcn.00428250]
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.00426790
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 0x47aa14
mov rcx, qword [rsp + 0x68]
mov edx, 1
call fcn.004244e0
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 0x47aa60
movzx edi, byte [r15]
test dil, dil
js 0x47aa80
inc r15
jmp 0x47aadb
xor edi, edi
xor r15d, r15d
xor ebx, ebx
xor ebp, ebp
xor r12d, r12d
jmp 0x47ab02
mov eax, edi
and eax, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x47aad0
movzx ecx, byte [r15 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp dil, 0xf0
jb 0x47ae2a
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 0x47aadb
jmp 0x47ae41
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 0x47affe
inc r12
lea rsi, [r12 + r12]
mov edx, 2
mov rcx, rsi
call fcn.00424450
test rax, rax
je 0x47b005
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 0x47ab79
mov ebx, ecx
mov word [rax + rsi*2], di
inc rsi
test r15, r15
je 0x47abe0
test bx, bx
je 0x47abc0
xor ecx, ecx
mov edi, ebx
cmp rsi, r12
jne 0x47ab70
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 0x47ac0a
cmp r15, r14
je 0x47abe0
movzx edi, byte [r15]
test dil, dil
js 0x47ace0
inc r15
xor ecx, ecx
jmp 0x47ab87
mov r12, qword [rsp + 0x48]
cmp bp, 1
jne 0x47ad80
xor edi, edi
mov r15d, 0
mov ebp, 0
mov edx, 0
cmp rsi, r12
jne 0x47ab72
inc rdx
add rdx, rsi
jb 0x47afe3
mov r13, qword [rsp + 0x48]
mov rax, r13
add rax, r13
mov r12, rax
cmp rax, rdx
ja 0x47ac2c
mov r12, rdx
cmp r12, 5
jae 0x47ac38
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 0x47ac77
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
mov eax, 2
jmp 0x47ac79
xor eax, eax
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xd0]
lea r9, [rsp + 0x80]
call fcn.004303c0
cmp qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0xd8]
je 0x47acd1
mov rdx, qword [rsp + 0xe0]
movabs rcx, 0x8000000000000001
cmp rdx, rcx
jne 0x47afde
mov rax, qword [rsp + 0x50]
mov r12, r13
jmp 0x47ab72
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
jmp 0x47ab72
mov ecx, edi
and ecx, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp dil, 0xdf
jbe 0x47ad4e
movzx edx, byte [r15 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp dil, 0xf0
jb 0x47ad61
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 0x47ad74
lea edx, [rdi + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov ecx, edi
mov edi, edx
jmp 0x47ab87
add r15, 2
shl ecx, 6
or ecx, r8d
mov edi, ecx
xor ecx, ecx
jmp 0x47ab87
add r15, 3
shl ecx, 0xc
or edx, ecx
mov edi, edx
cmp edi, 0xffff
ja 0x47ad2a
xor ecx, ecx
jmp 0x47ab87
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 0x47aedf
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0xc4]
cmp ecx, 0xa
jge 0x47ae6a
cmp eax, 5
jne 0x47ae00
mov eax, ecx
mov qword [rsp + 0xf0], rax
jmp 0x47ae0b
test ebx, ebx
je 0x47ae6a
xor ebx, ebx
cmp eax, 0x57
jne 0x47ae6a
xor edi, edi
test r12, r12
je 0x47a8d0
mov edx, 2
mov rcx, rsi
call fcn.004244e0
xor edi, edi
jmp 0x47a8d0
add r15, 3
shl eax, 0xc
or ecx, eax
mov edi, ecx
cmp edi, 0xffff
jbe 0x47aadb
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 0x47aae2
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 0x47ae9e
mov edx, 2
mov rcx, rsi
call fcn.004244e0
cmp qword [rsp + 0x60], 0
je 0x47aeb5
mov rcx, qword [rsp + 0x68]
mov edx, 1
call fcn.004244e0
cmp r15, 0xffffffffffffffff
je 0x47aec3
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 0x47aef1
mov edx, 2
mov rcx, rsi
call fcn.004244e0
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.0046cf90
test rax, rax
je 0x47afa9
mov rax, qword [rsp + 0xb8]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdi, r15
cmp qword [rsp + 0x60], 0
jne 0x47aea6
jmp 0x47aeb5
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 0x47aec3
mov edx, 1
mov rcx, rsi
call fcn.004244e0
jmp 0x47aec3
test rdx, rdx
jne 0x47afef
mov qword [rsp + 0x58], rsi
call fcn.00425fb0
jmp 0x47b012
mov qword [rsp + 0x58], rsi
mov rcx, rax
call fcn.00426000
jmp 0x47b012
call fcn.00425fb0
jmp 0x47b012
mov edx, 2
mov rcx, rsi
call fcn.00426000
ud2