Function at 0x45c850
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
movabs rbx, 0x8000000000000001
mov byte [rsp + 0x47], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0xc0], ecx
mov esi, 8
mov dil, 1
xorps xmm6, xmm6
xor eax, eax
mov qword [rsp + 0xf0], rax
nop word [rax + rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0xcc], eax
mov rax, qword [0x00943188]
test rax, rax
je 0x45c8eb
jmp 0x45c92a
mov rax, qword [rsp + 0x80]
xchg qword [0x00943188], rax
mov rax, qword [0x00943188]
test rax, rax
jne 0x45c92a
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
je 0x45c8d0
call fcn.004629f0
xchg qword [0x00943188], rax
mov rax, qword [0x00943188]
test rax, rax
je 0x45c8eb
mov eax, 1
lock xadd qword [0x00943188], rax
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0xcc]
mov qword [rsp + 0xd0], rax
lea rax, [fcn.004b8450]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0xe0], rax
lea rax, [fcn.004b86c0]
mov qword [rsp + 0xe8], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 2
mov qword [rsp + 0x90], 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.00499580
mov dword [rsp + 0xc8], esi
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x90], rax
test dil, 1
jne 0x45ca18
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jle 0x45ca18
mov rcx, qword [rsp + 0x60]
mov r8, rdx
not r8
shr r8, 0x3f
call fcn.0040a2d0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x60], xmm0
mov r12, qword [rsp + 0x60]
lea r15, [r12 + rax]
mov r13d, 4
mov esi, 8
test rax, rax
je 0x45ca70
movzx eax, byte [r12]
test al, al
js 0x45ca80
add r12, 1
mov ebp, eax
xor edi, edi
jmp 0x45cb00
xor edi, edi
xor r14d, r14d
xor ebp, ebp
xor r12d, r12d
jmp 0x45cb4b
mov ebp, eax
and ebp, 0x1f
movzx edx, byte [r12 + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x45caec
movzx ecx, byte [r12 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x45cead
movzx eax, byte [r12 + 3]
add r12, 4
and ebp, 7
shl ebp, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or ebp, eax
cmp ebp, 0xffff
jbe 0x45cafd
add ebp, 0xffff0000
mov eax, ebp
shr eax, 0xa
or eax, 0xd800
and ebp, 0x3ff
or ebp, 0xdc00
mov edi, ebp
mov ebp, eax
jmp 0x45cb00
add r12, 2
shl ebp, 6
or ebp, edx
cmp ebp, 0xffff
ja 0x45caca
xor edi, edi
nop
mov rax, r15
sub rax, r12
add rax, 3
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
shr rax, 2
cmp di, 1
sbb rax, 0xffffffffffffffff
mov r14w, 1
cmp rax, 3
jb 0x45cb4b
movabs rcx, 0x3ffffffffffffffe
cmp rax, rcx
jae 0x45d0b1
lea r13, [rax + 2]
lea rsi, [rax + rax]
add rsi, 4
mov edx, 2
mov rcx, rsi
call fcn.0040a2c0
test rax, rax
je 0x45d0a2
mov rcx, qword [rsp + 0xf0]
add ecx, 1
mov dword [rsp + 0xc4], ecx
mov word [rax], bp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 1
mov ebp, 1
mov rcx, r12
jmp 0x45cbaa
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r13
mov rcx, r12
mov word [rax + rbp*2], di
add rbp, 1
mov edi, esi
test rcx, rcx
je 0x45cbe0
test di, di
je 0x45cbc0
xor esi, esi
jmp 0x45cbf4
cmp r15, rcx
je 0x45cbdd
movzx edx, byte [rcx]
test dl, dl
js 0x45cd26
add rcx, 1
mov r12, rcx
mov edi, edx
xor esi, esi
jmp 0x45cbf4
xor r12d, r12d
cmp r14w, 1
jne 0x45cde0
xor r14d, r14d
mov esi, edi
xor ecx, ecx
xor edi, edi
cmp rbp, qword [rsp + 0x50]
jne 0x45cba0
test r12, r12
je 0x45cc38
mov rax, r15
sub rax, r12
add rax, 3
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
shr rax, 2
cmp si, 1
sbb rax, 0xffffffffffffffff
cmp r14w, 1
sbb rax, 0xffffffffffffffff
add rax, 1
add rax, rbp
jae 0x45cc4e
jmp 0x45d087
xor eax, eax
test r14w, r14w
setne al
add rax, 1
add rax, rbp
jb 0x45d087
mov r13, rbp
add r13, rbp
cmp r13, rax
ja 0x45cc5c
mov r13, rax
cmp r13, 5
jae 0x45cc68
mov r13d, 4
mov rcx, r13
add rcx, r13
lea rax, [rbx - 3]
xor r8d, r8d
cmp rcx, rax
setbe r8b
add r8, r8
mov rdx, r13
add rdx, r13
mov ecx, 0
cmovb r8, rcx
mov ecx, 0
test rbp, rbp
je 0x45ccd7
mov rcx, rbp
add rcx, rbp
xor ebx, ebx
cmp rcx, rax
setbe bl
add rbx, rbx
mov rax, rbp
add rax, rbp
mov ecx, 0
cmovae rcx, rbx
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x80], rbx
movabs rbx, 0x8000000000000001
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rcx
lea rcx, [rsp + 0xd0]
lea r9, [rsp + 0x80]
call fcn.00423670
cmp qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0xd8]
je 0x45cb93
mov rdx, qword [rsp + 0xe0]
cmp rdx, rbx
jne 0x45d082
mov rax, qword [rsp + 0x48]
jmp 0x45cb9d
mov edi, edx
and edi, 0x1f
movzx esi, byte [rcx + 1]
and esi, 0x3f
cmp dl, 0xdf
jbe 0x45cd77
movzx ebx, byte [rcx + 2]
shl esi, 6
and ebx, 0x3f
or ebx, esi
cmp dl, 0xf0
jb 0x45cd95
movzx edx, byte [rcx + 3]
add rcx, 4
and edi, 7
shl edi, 0x12
shl ebx, 6
and edx, 0x3f
or edx, ebx
or edi, edx
mov r12, rcx
movabs rbx, 0x8000000000000001
cmp edi, 0xffff
ja 0x45cdb3
jmp 0x45cd8b
add rcx, 2
shl edi, 6
or edi, esi
mov r12, rcx
cmp edi, 0xffff
ja 0x45cdb3
mov rcx, r12
xor esi, esi
jmp 0x45cbf4
add rcx, 3
shl edi, 0xc
or edi, ebx
mov r12, rcx
movabs rbx, 0x8000000000000001
cmp edi, 0xffff
jbe 0x45cd8b
add edi, 0xffff0000
mov edx, edi
shr edx, 0xa
or edx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov esi, edi
mov rcx, r12
mov edi, edx
jmp 0x45cbf4
mov r14, qword [rsp + 0x48]
mov r15, 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, r14
mov edx, dword [rsp + 0xc0]
mov esi, dword [rsp + 0xc8]
mov r8d, esi
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x45cf58
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0xc4]
cmp ecx, 0xa
jge 0x45cec7
cmp eax, 5
jne 0x45ce60
mov eax, ecx
mov qword [rsp + 0xf0], rax
jmp 0x45ce6b
test esi, esi
je 0x45cec7
xor esi, esi
cmp eax, 0x57
jne 0x45cec7
xor edi, edi
test r15, r15
je 0x45c8b0
lea rax, [r15 + r15]
xor edi, edi
add r15, r15
jb 0x45c8b0
add rax, rbx
lea rcx, [rbx + 1]
cmp rax, rcx
jb 0x45c8b0
mov r8d, 2
mov rcx, r14
mov rdx, r15
call fcn.0040a2d0
xor edi, edi
jmp 0x45c8b0
add r12, 3
shl ebp, 0xc
or ebp, ecx
cmp ebp, 0xffff
jbe 0x45cafd
jmp 0x45caca
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test r15, r15
je 0x45cf0d
lea rax, [r15 + r15]
add r15, r15
jb 0x45cf0d
add rax, rbx
add rbx, 1
cmp rax, rbx
jb 0x45cf0d
mov r8d, 2
mov rcx, r14
mov rdx, r15
call fcn.0040a2d0
mov rsi, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jle 0x45cf2e
mov r8, rdx
not r8
shr r8, 0x3f
mov rcx, rsi
call fcn.0040a2d0
cmp rbp, 0xffffffffffffffff
je 0x45cf3c
mov rcx, rbp
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 r15, r15
je 0x45cf83
lea rax, [r15 + r15]
add r15, r15
jb 0x45cf83
add rax, rbx
add rbx, 1
cmp rax, rbx
jb 0x45cf83
mov r8d, 2
mov rcx, r14
mov rdx, r15
call fcn.0040a2d0
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0xa0], 0
mov word [rsp + 0xa4], 0
mov al, byte [rsp + 0x47]
mov byte [rsp + 0xa1], al
xor al, 1
mov byte [rsp + 0xa0], al
mov qword [rsp + 0x98], 0
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 + 0x60]
mov rdx, qword [rsp + 0x70]
lea r8, [rsp + 0x80]
mov rcx, rsi
call fcn.004563e0
test rax, rax
je 0x45d046
mov rax, qword [rsp + 0xb8]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jg 0x45cf1c
jmp 0x45cf2e
mov rax, qword [rsp + 0xb8]
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rdx
mov qword [rax], 0
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jle 0x45cf3c
mov r8, rdx
not r8
shr r8, 0x3f
mov rcx, rsi
call fcn.0040a2d0
jmp 0x45cf3c
test rdx, rdx
jne 0x45d093
mov qword [rsp + 0x58], rbp
call fcn.00498230
jmp 0x45d0b6
mov qword [rsp + 0x58], rbp
mov rcx, rax
call fcn.00498280
jmp 0x45d0b6
mov edx, 2
mov rcx, rsi
call fcn.00498280
jmp 0x45d0b6
call fcn.00498230
ud2