Function at 0x4778c0
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 0x47792f
mov rax, qword [rsp + 0x80]
xchg qword [0x004b4140], rax
mov rax, qword [0x004b4140]
test rax, rax
jne 0x477970
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 0x477920
call fcn.00478ad0
jmp 0x477928
mov eax, 1
lock xadd qword [0x004b4140], rax
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0xcc]
mov qword [rsp + 0xd0], rax
lea rax, [0x0042a980]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0xe0], rax
lea rax, [fcn.00428110]
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.00426630
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 0x477a54
mov rcx, qword [rsp + 0x68]
mov edx, 1
call fcn.00424380
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 0x477aa0
movzx edi, byte [r15]
test dil, dil
js 0x477ac0
inc r15
jmp 0x477b1b
xor edi, edi
xor r15d, r15d
xor ebx, ebx
xor ebp, ebp
xor r12d, r12d
jmp 0x477b42
mov eax, edi
and eax, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x477b10
movzx ecx, byte [r15 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp dil, 0xf0
jb 0x477e6a
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 0x477b1b
jmp 0x477e81
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 0x47803e
inc r12
lea rsi, [r12 + r12]
mov edx, 2
mov rcx, rsi
call fcn.004242f0
test rax, rax
je 0x478045
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 0x477bb9
mov ebx, ecx
mov word [rax + rsi*2], di
inc rsi
test r15, r15
je 0x477c20
test bx, bx
je 0x477c00
xor ecx, ecx
mov edi, ebx
cmp rsi, r12
jne 0x477bb0
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 0x477c4a
cmp r15, r14
je 0x477c20
movzx edi, byte [r15]
test dil, dil
js 0x477d20
inc r15
xor ecx, ecx
jmp 0x477bc7
mov r12, qword [rsp + 0x48]
cmp bp, 1
jne 0x477dc0
xor edi, edi
mov r15d, 0
mov ebp, 0
mov edx, 0
cmp rsi, r12
jne 0x477bb2
inc rdx
add rdx, rsi
jb 0x478023
mov r13, qword [rsp + 0x48]
mov rax, r13
add rax, r13
mov r12, rax
cmp rax, rdx
ja 0x477c6c
mov r12, rdx
cmp r12, 5
jae 0x477c78
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 0x477cb7
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
mov eax, 2
jmp 0x477cb9
xor eax, eax
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xd0]
lea r9, [rsp + 0x80]
call fcn.00430040
cmp qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0xd8]
je 0x477d11
mov rdx, qword [rsp + 0xe0]
movabs rcx, 0x8000000000000001
cmp rdx, rcx
jne 0x47801e
mov rax, qword [rsp + 0x50]
mov r12, r13
jmp 0x477bb2
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
jmp 0x477bb2
mov ecx, edi
and ecx, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp dil, 0xdf
jbe 0x477d8e
movzx edx, byte [r15 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp dil, 0xf0
jb 0x477da1
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 0x477db4
lea edx, [rdi + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov ecx, edi
mov edi, edx
jmp 0x477bc7
add r15, 2
shl ecx, 6
or ecx, r8d
mov edi, ecx
xor ecx, ecx
jmp 0x477bc7
add r15, 3
shl ecx, 0xc
or edx, ecx
mov edi, edx
cmp edi, 0xffff
ja 0x477d6a
xor ecx, ecx
jmp 0x477bc7
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 0x477f1f
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0xc4]
cmp ecx, 0xa
jge 0x477eaa
cmp eax, 5
jne 0x477e40
mov eax, ecx
mov qword [rsp + 0xf0], rax
jmp 0x477e4b
test ebx, ebx
je 0x477eaa
xor ebx, ebx
cmp eax, 0x57
jne 0x477eaa
xor edi, edi
test r12, r12
je 0x477910
mov edx, 2
mov rcx, rsi
call fcn.00424380
xor edi, edi
jmp 0x477910
add r15, 3
shl eax, 0xc
or ecx, eax
mov edi, ecx
cmp edi, 0xffff
jbe 0x477b1b
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 0x477b22
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 0x477ede
mov edx, 2
mov rcx, rsi
call fcn.00424380
cmp qword [rsp + 0x60], 0
je 0x477ef5
mov rcx, qword [rsp + 0x68]
mov edx, 1
call fcn.00424380
cmp r15, 0xffffffffffffffff
je 0x477f03
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 0x477f31
mov edx, 2
mov rcx, rsi
call fcn.00424380
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.00469fd0
test rax, rax
je 0x477fe9
mov rax, qword [rsp + 0xb8]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdi, r15
cmp qword [rsp + 0x60], 0
jne 0x477ee6
jmp 0x477ef5
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 0x477f03
mov edx, 1
mov rcx, rsi
call fcn.00424380
jmp 0x477f03
test rdx, rdx
jne 0x47802f
mov qword [rsp + 0x58], rsi
call fcn.00425e50
jmp 0x478052
mov qword [rsp + 0x58], rsi
mov rcx, rax
call fcn.00425ea0
jmp 0x478052
call fcn.00425e50
jmp 0x478052
mov edx, 2
mov rcx, rsi
call fcn.00425ea0
ud2