Function at 0x54edf0
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 + 0x98], rcx
mov byte [rsp + 0x47], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0xa4], ecx
xor eax, eax
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x54], 8
mov dil, 1
xorps xmm6, xmm6
lea r15, [rsp + 0x60]
nop word cs:[rax + rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0xac], eax
jmp 0x54ee6c
mov rax, qword [rsp + 0x60]
xchg qword [0x00677440], rax
mov rax, qword [0x00677440]
test rax, rax
jne 0x54eea0
movaps xmmword [rsp + 0x60], xmm6
xor ecx, ecx
mov rdx, r15
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x54ee60
call fcn.0053fa10
jmp 0x54ee65
mov eax, 1
lock xadd qword [0x00677440], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xac]
mov qword [rsp + 0xb8], rax
lea rax, [0x004289d0]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xc8], rax
lea rax, [fcn.00428c20]
mov qword [rsp + 0xd0], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 2
lea rcx, [rsp + 0xe8]
mov rdx, r15
call fcn.004179e0
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xf8]
test r14, r14
sete al
or dil, al
test dil, 1
jne 0x54ef7b
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, rbx
call fcn.005ab9d4
lea r14, [rsi + r12]
test r12, r12
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0xd8], r12
je 0x54efa0
movzx ecx, byte [rsi]
test cl, cl
js 0x54efc0
lea rbp, [rsi + 1]
mov edi, ecx
jmp 0x54f016
xor edi, edi
xor ebp, ebp
xor r12d, r12d
xor esi, esi
xor r13d, r13d
jmp 0x54f042
mov edi, ecx
and edi, 0x1f
movzx edx, byte [rsi + 1]
and edx, 0x3f
cmp cl, 0xdf
jbe 0x54f00d
movzx eax, byte [rsi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x54f2ce
lea rbp, [rsi + 4]
movzx ecx, byte [rsi + 3]
and edi, 7
shl edi, 0x12
shl eax, 6
and ecx, 0x3f
or ecx, eax
or ecx, edi
mov edi, ecx
cmp edi, 0xffff
jbe 0x54f016
jmp 0x54f2e5
lea rbp, [rsi + 2]
shl edi, 6
or edi, edx
xor r12d, r12d
mov r13, r14
sub r13, rbp
add r13, 3
mov rax, 0xffffffffffffffff
cmovb r13, rax
shr r13, 2
cmp r12w, 1
sbb r13, 0xffffffffffffffff
inc r13
mov si, 1
cmp r13, 4
mov eax, 3
cmovb r13, rax
movabs rax, 0x3fffffffffffffff
cmp r13, rax
jae 0x54f484
inc r13
mov rbx, r13
add rbx, r13
mov edx, 2
mov rcx, rbx
call fcn.00414fe0
test rax, rax
je 0x54f48b
mov rcx, rax
mov rax, qword [rsp + 0xb0]
inc eax
mov dword [rsp + 0xa8], eax
mov word [rcx], di
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], rcx
mov ebx, 1
jmp 0x54f0ba
mov r12d, eax
mov word [rcx + rbx*2], di
inc rbx
mov qword [rsp + 0x70], rbx
test rbp, rbp
je 0x54f130
test r12w, r12w
je 0x54f110
xor eax, eax
mov edi, r12d
cmp rbx, qword [rsp + 0x60]
jne 0x54f0b0
mov r8, r14
sub r8, rbp
add r8, 3
mov rcx, 0xffffffffffffffff
cmovb r8, rcx
shr r8, 2
cmp ax, 1
sbb r8, 0xffffffffffffffff
cmp si, 1
sbb r8, 0xffffffffffffffff
mov r12d, eax
jmp 0x54f15a
cmp rbp, r14
je 0x54f130
movzx edx, byte [rbp]
test dl, dl
js 0x54f172
inc rbp
mov edi, edx
xor eax, eax
jmp 0x54f0cf
mov r13, qword [rsp + 0x60]
cmp si, 1
jne 0x54f210
xor edi, edi
mov ebp, 0
mov esi, 0
mov r8d, 0
cmp rbx, r13
jne 0x54f0b3
inc r8
mov rcx, r15
mov rdx, rbx
call fcn.00519bf0
mov rcx, qword [rsp + 0x68]
jmp 0x54f0b3
mov edi, edx
and edi, 0x1f
movzx r8d, byte [rbp + 1]
and r8d, 0x3f
cmp dl, 0xdf
jbe 0x54f1de
movzx eax, byte [rbp + 2]
shl r8d, 6
and eax, 0x3f
or eax, r8d
cmp dl, 0xf0
jb 0x54f1ef
movzx edx, byte [rbp + 3]
add rbp, 4
and edi, 7
shl edi, 0x12
shl eax, 6
and edx, 0x3f
or edx, eax
or edx, edi
mov edi, edx
cmp edi, 0xffff
jbe 0x54f202
lea edx, [rdi + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov eax, edi
mov edi, edx
jmp 0x54f0cf
add rbp, 2
shl edi, 6
or edi, r8d
xor eax, eax
jmp 0x54f0cf
add rbp, 3
shl edi, 0xc
or eax, edi
mov edi, eax
cmp edi, 0xffff
ja 0x54f1ba
xor eax, eax
jmp 0x54f0cf
mov rbp, qword [rsp + 0x68]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rbp
mov edx, dword [rsp + 0xa4]
mov edi, dword [rsp + 0x54]
mov r8d, edi
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x54f384
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0xa8]
cmp ecx, 0xa
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
jge 0x54f309
cmp eax, 5
jne 0x54f290
mov eax, ecx
mov qword [rsp + 0xb0], rax
jmp 0x54f29b
test edi, edi
je 0x54f309
xor edi, edi
cmp eax, 0x57
jne 0x54f309
mov dword [rsp + 0x54], edi
xor edi, edi
mov rbx, r12
mov r14, rsi
test r13, r13
je 0x54ee50
mov rcx, qword [0x00677420]
xor edi, edi
xor edx, edx
mov r8, rbp
call fcn.005ab9d4
mov rbx, r12
mov r14, rsi
jmp 0x54ee50
lea rbp, [rsi + 3]
shl edi, 0xc
or eax, edi
mov edi, eax
cmp edi, 0xffff
jbe 0x54f016
lea eax, [rdi + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov r12d, edi
mov edi, eax
jmp 0x54f019
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x98]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rsi, 0xffffffffffffffff
test r13, r13
je 0x54f341
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, rbp
call fcn.005ab9d4
cmp qword [rsp + 0x48], 0
je 0x54f35a
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, r12
call fcn.005ab9d4
cmp rbx, 0xffffffffffffffff
je 0x54f368
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
test r13, r13
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
je 0x54f3a4
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, rbp
call fcn.005ab9d4
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x80], 0
mov word [rsp + 0x84], 0
movzx eax, byte [rsp + 0x47]
mov byte [rsp + 0x81], al
xor al, 1
mov byte [rsp + 0x80], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0xb8], 0x18
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0xc8], 1
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
mov rcx, r12
mov rdx, qword [rsp + 0xd8]
call fcn.00529690
test rax, rax
je 0x54f44e
mov rax, qword [rsp + 0x98]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, rbx
cmp qword [rsp + 0x48], 0
jne 0x54f349
jmp 0x54f35a
mov rax, qword [rsp + 0x98]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rsi, rsi
je 0x54f368
mov rcx, qword [0x00677420]
xor edx, edx
mov r8, r12
call fcn.005ab9d4
jmp 0x54f368
call fcn.00417400
jmp 0x54f498
mov edx, 2
mov rcx, rbx
call fcn.00417bf0
ud2