Function at 0x14015f680
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, 0x138
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0x98], 0xfffffffffffffffe
mov qword [rbp + 0x48], rcx
mov byte [rbp + 0x95], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x3c], ecx
xor edi, edi
mov r15d, 8
mov r14b, 1
xorps xmm6, xmm6
mov rsi, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x18], rax
nop
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rbp + 0x30], eax
jmp 0x14015f6fb
mov rax, qword [rbp + 0x50]
xchg qword [0x1403ce1b0], rax
mov rax, qword [0x1403ce1b0]
test rax, rax
jne 0x14015f740
movaps xmmword [rbp + 0x50], xmm6
xor ecx, ecx
lea rdx, [rbp + 0x50]
mov r8d, 0x10
mov r9d, 2
call rsi
test eax, eax
jns 0x14015f6f0
mov byte [rbp + 0x97], dil
mov byte [rbp + 0x96], 1
call fcn.140160d60
jmp 0x14015f6f4
mov eax, 1
lock xadd qword [0x1403ce1b0], rax
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x30]
mov qword [rbp + 0x10], rax
lea rax, [0x14003bf30]
mov qword [rbp + 0x18], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 0x20], rax
lea rax, [fcn.140035940]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x50], 0
lea rax, str.pl7_
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 2
lea rax, [rbp + 0x10]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 2
mov byte [rbp + 0x97], dil
mov byte [rbp + 0x96], 1
lea rcx, [rbp - 0x40]
lea rdx, [rbp + 0x50]
call fcn.140030660
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x50], xmm0
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x60], rax
test r14b, 1
jne 0x14015f7ee
cmp qword [rbp - 0x10], 0
je 0x14015f7ee
mov r8, qword [rbp - 8]
mov rcx, qword [0x1403ce198]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, qword [rbp + 0x60]
mov qword [rbp], rax
movaps xmm0, xmmword [rbp + 0x50]
movaps xmmword [rbp - 0x10], xmm0
mov r12, qword [rbp - 8]
lea rcx, [r12 + rax]
mov qword [rbp + 0x40], rcx
test rax, rax
lea rsi, [rbp + 0x10]
mov dword [rbp + 0x34], r15d
je 0x14015f830
movzx ecx, byte [r12]
movzx r13d, cl
test r13b, r13b
js 0x14015f850
inc r12
jmp 0x14015f8b7
xor r13d, r13d
xor edi, edi
xor r15d, r15d
xor r12d, r12d
xor r14d, r14d
jmp 0x14015f8e0
mov eax, r13d
and eax, 0x1f
movzx edx, byte [r12 + 1]
and edx, 0x3f
cmp r13b, 0xdf
jbe 0x14015f8ab
movzx r13d, byte [r12 + 2]
shl edx, 6
and r13d, 0x3f
or r13d, edx
cmp cl, 0xf0
jb 0x14015fc3a
movzx ecx, byte [r12 + 3]
add r12, 4
and eax, 7
shl eax, 0x12
shl r13d, 6
and ecx, 0x3f
or ecx, r13d
or ecx, eax
mov r13d, ecx
cmp r13d, 0xffff
jbe 0x14015f8b7
jmp 0x14015fc51
add r12, 2
shl eax, 6
or eax, edx
mov r13d, eax
mov eax, 1
xor r15d, r15d
mov r14, qword [rbp + 0x40]
sub r14, r12
add r14, 3
mov rcx, 0xffffffffffffffff
cmovb r14, rcx
shr r14, 2
add r14, rax
mov di, 1
cmp r14, 4
mov eax, 3
cmovb r14, rax
movabs rax, 0x3fffffffffffffff
cmp r14, rax
jae 0x14015fe10
inc r14
lea rbx, [r14 + r14]
mov edx, 2
mov rcx, rbx
call fcn.1400235d0
test rax, rax
je 0x14015fdf3
mov rcx, rax
mov rax, qword [rbp - 0x18]
inc eax
mov dword [rbp + 0x38], eax
mov word [rcx], r13w
mov ebx, 1
mov rax, r14
mov qword [rbp + 0x88], rcx
mov r8, rdi
jmp 0x14015f988
mov rdx, qword [rbp + 0x20]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x14015fde0
mov r8, rdi
mov rax, qword [rbp + 0x80]
mov r14, rax
mov rcx, qword [rbp + 0x88]
mov edx, r15d
mov word [rcx + rbx*2], dx
inc rbx
mov r15d, r13d
test r12, r12
je 0x14015f9f0
test r15w, r15w
je 0x14015f9d0
xor r13d, r13d
cmp rbx, rax
jne 0x14015f97b
mov qword [rbp + 0x80], r14
mov r14, qword [rbp + 0x40]
sub r14, r12
add r14, 3
mov rax, 0xffffffffffffffff
cmovb r14, rax
shr r14, 2
cmp r13w, 1
sbb r14, 0xffffffffffffffff
cmp r8w, 1
sbb r14, 0xffffffffffffffff
jmp 0x14015fa18
cmp r12, qword [rbp + 0x40]
je 0x14015f9f0
movzx edx, byte [r12]
movzx r15d, dl
test r15b, r15b
js 0x14015fac4
inc r12
jmp 0x14015f993
cmp r8w, 1
jne 0x14015fb80
xor r12d, r12d
xor edx, edx
cmp rbx, r14
jne 0x14015fa80
mov qword [rbp + 0x80], r14
mov r13d, r15d
xor r8d, r8d
xor r15d, r15d
xor r14d, r14d
inc r14
add r14, rbx
jb 0x14015fde5
mov rdi, r8
mov rax, qword [rbp + 0x80]
add rax, rax
cmp rax, r14
cmova r14, rax
cmp r14, 5
jae 0x14015fa44
mov r14d, 4
xor r8d, r8d
mov rcx, r14
shr rcx, 0x3e
sete r8b
lea rdx, [r14 + r14]
add r8, r8
cmp qword [rbp + 0x80], 0
je 0x14015fa8e
mov rcx, qword [rbp + 0x88]
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rax
mov eax, 2
jmp 0x14015fa90
mov rax, r14
xor r8d, r8d
mov r13d, r15d
jmp 0x14015f97e
xor eax, eax
mov qword [rbp + 0x60], rax
mov rcx, rsi
lea r9, [rbp + 0x50]
call fcn.140146920
cmp qword [rbp + 0x10], 0
mov rcx, qword [rbp + 0x18]
jne 0x14015f950
mov qword [rbp + 0x88], rcx
mov rax, r14
mov edx, r15d
mov r8, rdi
jmp 0x14015f97e
mov edi, r15d
and edi, 0x1f
movzx esi, byte [r12 + 1]
and esi, 0x3f
cmp r15b, 0xdf
jbe 0x14015fb0f
movzx r15d, byte [r12 + 2]
shl esi, 6
and r15d, 0x3f
or r15d, esi
cmp dl, 0xf0
jb 0x14015fb24
movzx edx, byte [r12 + 3]
add r12, 4
and edi, 7
shl edi, 0x12
shl r15d, 6
and edx, 0x3f
or edx, r15d
or edx, edi
mov r15d, edx
jmp 0x14015fb2e
add r12, 2
shl edi, 6
or edi, esi
mov r15d, edi
lea rsi, [rbp + 0x10]
jmp 0x14015f993
add r12, 3
shl edi, 0xc
or r15d, edi
lea rsi, [rbp + 0x10]
cmp r15d, 0xffff
jbe 0x14015f993
add r15d, 0xffff0000
mov edx, r15d
shr edx, 0xa
or edx, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov r13d, r15d
mov r15d, edx
cmp rbx, rax
jne 0x14015f97b
jmp 0x14015f99b
mov rbx, r14
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, qword [rbp + 0x88]
mov edx, dword [rbp + 0x3c]
mov r15d, dword [rbp + 0x34]
mov r8d, r15d
mov r9d, 1
call qword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14015fcff
call sub.kernel32.dll_GetLastError
mov ecx, dword [rbp + 0x38]
cmp ecx, 0xa
mov rsi, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
jge 0x14015fc82
cmp eax, 5
jne 0x14015fc00
mov eax, ecx
mov qword [rbp - 0x18], rax
jmp 0x14015fc0d
test r15d, r15d
je 0x14015fc82
xor r15d, r15d
cmp eax, 0x57
jne 0x14015fc82
mov dil, 1
xor r14d, r14d
test rbx, rbx
je 0x14015f6e0
mov rcx, qword [0x1403ce198]
xor r14d, r14d
xor edx, edx
mov r8, qword [rbp + 0x88]
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x14015f6e0
add r12, 3
shl eax, 0xc
or r13d, eax
cmp r13d, 0xffff
jbe 0x14015f8b7
add r13d, 0xffff0000
mov ecx, r13d
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov r15d, r13d
mov eax, 2
mov r13d, ecx
jmp 0x14015f8bf
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x48]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rsi, 0xffffffffffffffff
test rbx, rbx
je 0x14015fcbb
mov rcx, qword [0x1403ce198]
xor edx, edx
mov r8, qword [rbp + 0x88]
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp - 0x10], 0
je 0x14015fcd5
mov r8, qword [rbp - 8]
mov rcx, qword [0x1403ce198]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp r14, 0xffffffffffffffff
je 0x14015fce4
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
movaps xmm6, xmmword [rbp + 0xa0]
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
test rbx, rbx
je 0x14015fd1a
mov rcx, qword [0x1403ce198]
xor edx, edx
mov r8, qword [rbp + 0x88]
call qword [sym.imp.kernel32.dll_HeapFree]
mov dword [rbp + 0x58], 0
mov dword [rbp + 0x70], 0
mov word [rbp + 0x74], 0
movzx eax, byte [rbp + 0x95]
mov byte [rbp + 0x71], al
xor al, 1
mov byte [rbp + 0x70], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov dword [rbp + 0x10], 0x18
mov qword [rbp + 0x18], 0
mov dword [rbp + 0x20], 1
mov qword [rbp + 0x50], rsi
mov rsi, qword [rbp - 8]
mov rdx, qword [rbp]
mov qword [rbp - 0x28], r14
mov byte [rbp + 0x97], 1
mov byte [rbp + 0x96], 0
lea r8, [rbp + 0x50]
mov rcx, rsi
call fcn.14014dfc0
test rax, rax
je 0x14015fdab
mov rax, qword [rbp + 0x48]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, r14
cmp qword [rbp - 0x10], 0
jne 0x14015fcc2
jmp 0x14015fcd5
mov rax, qword [rbp + 0x48]
mov qword [rax + 8], r14
mov qword [rax + 0x10], rdx
mov qword [rax], 0
cmp qword [rbp - 0x10], 0
je 0x14015fce4
mov rcx, qword [0x1403ce198]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x14015fce4
test rdx, rdx
jne 0x14015fdec
call fcn.14002ff10
jmp 0x14015fe23
call fcn.1402a5fb0
jmp 0x14015fe23
mov byte [rbp + 0x97], 1
mov byte [rbp + 0x96], 1
mov edx, 2
mov rcx, rbx
call fcn.1402a5fb0
jmp 0x14015fe23
mov byte [rbp + 0x97], 1
mov byte [rbp + 0x96], 1
call fcn.14002ff10
ud2