Function at 0x180022b90
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x58], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x4c], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov rbx, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 8], rax
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x44], eax
jmp 0x180022c0b
mov rax, qword [rbp + 0x60]
xchg qword [0x18004bb90], rax
mov rax, qword [0x18004bb90]
test rax, rax
jne 0x180022c60
movaps xmmword [rbp + 0x60], xmm6
xor ecx, ecx
lea rdx, [rbp + 0x60]
mov r8d, 0x10
mov r9d, 2
call rbx
test eax, eax
jns 0x180022c00
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
mov ecx, eax
call fcn.180024290
xchg qword [0x18004bb90], rax
jmp 0x180022c0b
mov eax, 1
lock xadd qword [0x18004bb90], rax
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x44]
mov qword [rbp], rax
lea rax, [0x180004270]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x30]
mov qword [rbp + 0x10], rax
lea rax, [fcn.180002570]
mov qword [rbp + 0x18], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 2
mov qword [rbp + 0x70], 0
mov rax, rbp
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 2
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
lea rcx, [rbp - 0x28]
lea rdx, [rbp + 0x60]
call fcn.180002170
movups xmm0, xmmword [rbp - 0x28]
movaps xmmword [rbp + 0x60], xmm0
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x70], rax
test sil, 1
jne 0x180022d12
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x180022d12
mov rcx, qword [rbp + 0x20]
not rdx
shr rdx, 0x3f
call fcn.180001050
mov r14, qword [rbp + 0x70]
mov qword [rbp + 0x30], r14
movaps xmm0, xmmword [rbp + 0x60]
movaps xmmword [rbp + 0x20], xmm0
mov rbx, qword [rbp + 0x20]
lea rax, [rbx + r14]
mov qword [rbp + 0x50], rax
test r14, r14
mov dword [rbp + 0x48], r15d
je 0x180022d50
movzx ecx, byte [rbx]
movzx esi, cl
test sil, sil
js 0x180022d70
inc rbx
jmp 0x180022dc9
xor esi, esi
xor r15d, r15d
xor r12d, r12d
xor ebx, ebx
xor r13d, r13d
jmp 0x180022df3
mov eax, esi
and eax, 0x1f
movzx edx, byte [rbx + 1]
and edx, 0x3f
cmp sil, 0xdf
jbe 0x180022dbe
movzx esi, byte [rbx + 2]
shl edx, 6
and esi, 0x3f
or esi, edx
cmp cl, 0xf0
jb 0x180023143
movzx ecx, byte [rbx + 3]
add rbx, 4
and eax, 7
shl eax, 0x12
shl esi, 6
and ecx, 0x3f
or ecx, esi
or ecx, eax
mov esi, ecx
cmp esi, 0xffff
jbe 0x180022dc9
jmp 0x180023158
add rbx, 2
shl eax, 6
or eax, edx
mov esi, eax
mov eax, 1
xor r12d, r12d
mov r13, qword [rbp + 0x50]
sub r13, rbx
add r13, 3
mov rcx, 0xffffffffffffffff
cmovb r13, rcx
shr r13, 2
add r13, rax
mov r15w, 1
cmp r13, 4
mov eax, 3
cmovb r13, rax
movabs rax, 0x3fffffffffffffff
cmp r13, rax
jae 0x1800232d9
inc r13
mov rdi, r13
add rdi, r13
mov rcx, rdi
call fcn.180001000
test rax, rax
je 0x1800232ee
mov word [rax], si
mov qword [rbp - 0x28], rbx
test r14, r14
je 0x180023097
mov r14d, 1
mov rdi, r13
mov qword [rbp + 0x98], rax
mov rcx, rax
mov eax, r15d
jmp 0x180022e70
mov qword [rbp + 0x98], rcx
mov rdi, r13
mov eax, dword [rbp + 0xa0]
mov word [rcx + r14*2], r12w
inc r14
mov r12d, r15d
test rbx, rbx
lea rdx, [rbp - 0x28]
cmovne rbx, rdx
je 0x180022f30
test r12w, r12w
je 0x180022e90
xor r15d, r15d
jmp 0x180022f42
mov rsi, qword [rbx]
cmp rsi, qword [rbp + 0x50]
je 0x180022f28
lea rdx, [rsi + 1]
mov qword [rbx], rdx
movzx r9d, byte [rsi]
movzx r12d, r9b
test r12b, r12b
jns 0x180022e87
mov r8d, r12d
and r8d, 0x1f
lea rdx, [rsi + 2]
mov qword [rbx], rdx
movzx r10d, byte [rsi + 1]
and r10d, 0x3f
cmp r12b, 0xdf
jbe 0x18002303c
lea rdx, [rsi + 3]
mov qword [rbx], rdx
movzx r12d, byte [rsi + 2]
shl r10d, 6
and r12d, 0x3f
or r12d, r10d
cmp r9b, 0xf0
jb 0x18002304e
lea rdx, [rsi + 4]
mov qword [rbx], rdx
movzx edx, byte [rsi + 3]
and r8d, 7
shl r8d, 0x12
shl r12d, 6
and edx, 0x3f
or edx, r12d
or edx, r8d
mov r12d, edx
cmp r12d, 0xffff
jbe 0x180022e87
jmp 0x180023062
mov qword [rbp - 0x28], 0
cmp ax, 1
jne 0x180023090
xor eax, eax
mov r15d, r12d
xor r12d, r12d
mov rbx, qword [rbp - 0x28]
cmp r14, rdi
jne 0x180022e65
test rbx, rbx
je 0x180022f81
mov rcx, qword [rbp + 0x50]
sub rcx, rbx
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
cmp r15w, 1
sbb rcx, 0xffffffffffffffff
cmp ax, 1
sbb rcx, 0xffffffffffffffff
jmp 0x180022f89
xor ecx, ecx
test ax, ax
setne cl
inc rcx
add rdi, rcx
mov qword [rbp - 0x10], r13
jb 0x1800232cb
mov dword [rbp + 0xa0], eax
mov rcx, r13
add rcx, r13
cmp rcx, rdi
cmova rdi, rcx
cmp rdi, 5
mov rsi, r13
mov r13, rdi
mov eax, 4
cmovb r13, rax
xor r8d, r8d
mov rax, r13
shr rax, 0x3e
sete r8b
mov rdx, r13
add rdx, r13
add r8, r8
test rsi, rsi
je 0x180022ff1
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rcx
mov eax, 2
jmp 0x180022ff3
xor eax, eax
mov qword [rbp + 0x70], rax
mov rcx, rbp
lea r9, [rbp + 0x60]
call fcn.18000e790
cmp qword [rbp], 0
mov rcx, qword [rbp + 8]
je 0x180022e55
mov rdx, qword [rbp + 0x10]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x1800232c6
mov rdi, qword [rbp - 0x10]
mov r13, rdi
mov rcx, qword [rbp + 0x98]
jmp 0x180022e5f
shl r8d, 6
or r8d, r10d
mov r12d, r8d
xor r15d, r15d
jmp 0x180022f42
shl r8d, 0xc
or r12d, r8d
cmp r12d, 0xffff
jbe 0x180022e87
add r12d, 0xffff0000
mov edx, r12d
shr edx, 0xa
or edx, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov r15d, r12d
mov r12d, edx
jmp 0x180022f42
mov rax, qword [rbp + 0x98]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rdi, rax
mov rcx, rax
mov edx, dword [rbp + 0x4c]
mov r15d, dword [rbp + 0x48]
mov r8d, r15d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1800231bd
mov rax, qword [rbp - 8]
lea esi, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xa
jge 0x180023184
mov rcx, rdi
cmp eax, 5
jne 0x180023110
mov eax, esi
mov qword [rbp - 8], rax
jmp 0x18002311d
test r15d, r15d
je 0x180023184
xor r15d, r15d
cmp eax, 0x57
jne 0x180023184
mov dil, 1
xor esi, esi
test r13, r13
mov rbx, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
je 0x180022bf0
mov edx, 2
call fcn.180001050
xor esi, esi
jmp 0x180022bf0
add rbx, 3
shl eax, 0xc
or esi, eax
cmp esi, 0xffff
jbe 0x180022dc9
add esi, 0xffff0000
mov ecx, esi
shr ecx, 0xa
or ecx, 0xd800
and esi, 0x3ff
or esi, 0xdc00
mov r12d, esi
mov eax, 2
mov esi, ecx
jmp 0x180022dd1
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x58]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rsi, 0xffffffffffffffff
test r13, r13
je 0x180023256
mov edx, 2
mov rcx, rdi
call fcn.180001050
jmp 0x180023256
test r13, r13
je 0x1800231cf
mov edx, 2
mov rcx, rdi
call fcn.180001050
mov qword [rbp + 0x68], 0
mov word [rbp + 0x84], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x74], xmm0
movzx eax, byte [rbp + 0xa5]
mov byte [rbp + 0x81], al
xor al, 1
mov byte [rbp + 0x80], al
mov dword [rbp], 0x18
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], 1
mov rax, rbp
mov qword [rbp + 0x60], rax
mov rsi, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x30]
mov qword [rbp - 0x38], r14
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 0
lea r8, [rbp + 0x60]
mov rcx, rsi
call fcn.180016ad0
test rax, rax
je 0x180023299
mov rax, qword [rbp + 0x58]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, r14
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x18002326f
mov rcx, qword [rbp + 0x20]
not rdx
shr rdx, 0x3f
call fcn.180001050
cmp r14, 0xffffffffffffffff
je 0x18002327e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm6, xmmword [rbp + 0xb0]
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x58]
mov qword [rax + 8], r14
mov qword [rax + 0x10], rdx
mov qword [rax], 0
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x18002327e
not rdx
shr rdx, 0x3f
mov rcx, rsi
call fcn.180001050
jmp 0x18002327e
test rdx, rdx
jne 0x1800232d2
call fcn.180001fb0
jmp 0x180023309
call fcn.180036940
jmp 0x180023309
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
call fcn.180001fb0
jmp 0x180023309
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov edx, 2
mov rcx, rdi
call fcn.180036940
ud2