Function at 0x14002d050
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 + 0x68], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x64], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, 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 + 0x58], eax
jmp 0x14002d0cb
mov rax, qword [rbp + 0x20]
xchg qword [0x1400b6ca8], rax
mov rax, qword [0x1400b6ca8]
test rax, rax
jne 0x14002d120
movaps xmmword [rbp + 0x20], xmm6
xor ecx, ecx
lea rdx, [rbp + 0x20]
mov r8d, 0x10
mov r9d, 2
call r12
test eax, eax
jns 0x14002d0c0
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x70], r14
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
call fcn.14002e8f0
jmp 0x14002d0c4
mov eax, 1
lock xadd qword [0x1400b6ca8], rax
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x58]
mov qword [rbp], rax
lea rax, [0x1400090a0]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x18]
mov qword [rbp + 0x10], rax
lea rax, [fcn.140007550]
mov qword [rbp + 0x18], rax
lea rax, str.P__n_
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 2
mov qword [rbp + 0x40], 0
mov rax, rbp
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 2
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x70], r14
mov byte [rbp + 0xa7], dil
mov byte [rbp + 0xa6], 1
lea rcx, [rbp - 0x38]
lea rdx, [rbp + 0x20]
call fcn.140006bf0
test r14, r14
sete al
or sil, al
test sil, 1
jne 0x14002d1c6
mov rcx, qword [0x1400b6ca0]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x80], rax
mov r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x28]
lea r12, [r8 + r9]
test r9, r9
mov qword [rbp + 0x88], r8
mov dword [rbp + 0x5c], r15d
je 0x14002d210
movzx ecx, byte [r8]
movzx r13d, cl
test r13b, r13b
js 0x14002d230
lea r15, [r8 + 1]
jmp 0x14002d294
xor edi, edi
xor r14d, r14d
xor r13d, r13d
xor r15d, r15d
xor esi, esi
jmp 0x14002d2bc
mov eax, r13d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r13b, 0xdf
jbe 0x14002d288
movzx r13d, byte [r8 + 2]
shl edx, 6
and r13d, 0x3f
or r13d, edx
cmp cl, 0xf0
jb 0x14002d653
lea r15, [r8 + 4]
movzx ecx, byte [r8 + 3]
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 0x14002d294
jmp 0x14002d66a
lea r15, [r8 + 2]
shl eax, 6
or eax, edx
mov r13d, eax
mov eax, 1
xor edi, edi
mov rsi, r12
sub rsi, r15
add rsi, 3
mov rcx, 0xffffffffffffffff
cmovb rsi, rcx
shr rsi, 2
add rsi, rax
mov r14w, 1
cmp rsi, 4
mov eax, 3
cmovb rsi, rax
movabs rax, 0x3fffffffffffffff
cmp rsi, rax
jae 0x14002d85d
mov qword [rbp - 0x10], r9
inc rsi
lea rbx, [rsi + rsi]
movzx eax, byte [0x1400b6d30]
mov rax, qword [0x1400b6ca0]
test rax, rax
jne 0x14002d310
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14002d82a
mov qword [0x1400b6ca0], rax
mov rcx, rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14002d82a
mov rcx, rax
mov rax, qword [rbp - 8]
inc eax
mov dword [rbp + 0x60], eax
mov word [rcx], r13w
mov ebx, 1
mov qword [rbp + 0x98], rcx
jmp 0x14002d35a
mov edi, eax
mov word [rcx + rbx*2], r13w
inc rbx
test r15, r15
je 0x14002d3d0
test di, di
je 0x14002d3b0
xor eax, eax
mov r13d, edi
cmp rbx, rsi
jne 0x14002d350
mov qword [rbp + 0x90], rsi
mov rsi, r12
sub rsi, r15
add rsi, 3
mov rcx, 0xffffffffffffffff
cmovb rsi, rcx
shr rsi, 2
cmp ax, 1
sbb rsi, 0xffffffffffffffff
cmp r14w, 1
sbb rsi, 0xffffffffffffffff
mov edi, eax
jmp 0x14002d3fb
cmp r15, r12
je 0x14002d3d0
movzx edx, byte [r15]
movzx r13d, dl
test r13b, r13b
js 0x14002d4b7
inc r15
xor eax, eax
jmp 0x14002d369
cmp r14w, 1
mov qword [rbp + 0x90], rsi
jne 0x14002d560
xor r15d, r15d
xor r14d, r14d
mov r13d, 0
mov rdx, rsi
mov esi, 0
cmp rbx, rdx
jne 0x14002d450
inc rsi
add rsi, rbx
jb 0x14002d818
mov rax, qword [rbp + 0x90]
add rax, rax
cmp rax, rsi
cmova rsi, rax
cmp rsi, 5
jae 0x14002d423
mov esi, 4
xor edx, edx
mov rcx, rsi
shr rcx, 0x3e
sete cl
cmp qword [rbp + 0x90], 0
je 0x14002d45f
mov r8, qword [rbp + 0x98]
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x30], rax
mov eax, 2
jmp 0x14002d461
mov rsi, qword [rbp + 0x90]
xor r13d, r13d
jmp 0x14002d352
xor eax, eax
lea r8, [rsi + rsi]
mov dl, cl
add rdx, rdx
mov qword [rbp + 0x28], rax
mov rcx, rbp
lea r9, [rbp + 0x20]
call fcn.14000c1a0
cmp qword [rbp], 0
mov rcx, qword [rbp + 8]
je 0x14002d4ab
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x14002d813
mov rsi, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x98]
jmp 0x14002d352
mov qword [rbp + 0x98], rcx
jmp 0x14002d352
mov eax, r13d
and eax, 0x1f
movzx r8d, byte [r15 + 1]
and r8d, 0x3f
cmp r13b, 0xdf
jbe 0x14002d50f
movzx r13d, byte [r15 + 2]
shl r8d, 6
and r13d, 0x3f
or r13d, r8d
cmp dl, 0xf0
jb 0x14002d523
movzx edx, byte [r15 + 3]
add r15, 4
and eax, 7
shl eax, 0x12
shl r13d, 6
and edx, 0x3f
or edx, r13d
or edx, eax
mov r13d, edx
cmp r13d, 0xffff
ja 0x14002d536
xor eax, eax
jmp 0x14002d369
add r15, 2
shl eax, 6
or eax, r8d
mov r13d, eax
xor eax, eax
jmp 0x14002d369
add r15, 3
shl eax, 0xc
or r13d, eax
cmp r13d, 0xffff
jbe 0x14002d508
lea edx, [r13 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, r13d
mov r13d, edx
jmp 0x14002d369
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, qword [rbp + 0x98]
mov edx, dword [rbp + 0x64]
mov r15d, dword [rbp + 0x5c]
mov r8d, r15d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002d6e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rbp + 0x20], rcx
mov edx, dword [rbp + 0x60]
cmp edx, 9
mov r14, qword [rbp + 0x80]
jg 0x14002d698
cmp eax, 5
jne 0x14002d5f0
mov eax, edx
mov qword [rbp - 8], rax
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
jmp 0x14002d60c
test r15d, r15d
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
je 0x14002d698
xor r15d, r15d
cmp eax, 0x57
jne 0x14002d698
lea rcx, [rbp + 0x20]
call fcn.140001260
mov dil, 1
xor esi, esi
cmp qword [rbp + 0x90], 0
mov rbx, qword [rbp + 0x88]
mov r14, qword [rbp + 0x80]
je 0x14002d0b0
mov rcx, qword [0x1400b6ca0]
xor esi, esi
xor edx, edx
mov r8, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002d0b0
lea r15, [r8 + 3]
shl eax, 0xc
or r13d, eax
cmp r13d, 0xffff
jbe 0x14002d294
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, 2
mov edi, r13d
mov r13d, ecx
jmp 0x14002d29b
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov rsi, 0xffffffffffffffff
cmp qword [rbp + 0x90], 0
je 0x14002d7d9
mov rcx, qword [0x1400b6ca0]
xor edx, edx
mov r8, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rbp + 0x88]
test r14, r14
jne 0x14002d79d
jmp 0x14002d7af
test rsi, rsi
mov rdi, qword [rbp + 0x88]
mov r14, qword [rbp + 0x80]
je 0x14002d710
mov rcx, qword [0x1400b6ca0]
xor edx, edx
mov r8, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [rbp + 0x20], 0
mov dword [rbp + 0x40], 0
mov word [rbp + 0x44], 0
movzx eax, byte [rbp + 0xa5]
mov byte [rbp + 0x41], al
xor al, 1
mov byte [rbp + 0x40], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov dword [rbp], 0x18
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], 1
mov rax, rbp
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x70], r14
mov qword [rbp - 0x20], rbx
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 0
lea r8, [rbp + 0x20]
mov rcx, rdi
mov rdx, qword [rbp - 0x10]
call fcn.14001fe60
test rax, rax
je 0x14002d7e7
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, rbx
test r14, r14
je 0x14002d7af
mov rcx, qword [0x1400b6ca0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rbx, 0xffffffffffffffff
je 0x14002d7be
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 rdi, qword [rbp + 0x88]
test r14, r14
jne 0x14002d79d
jmp 0x14002d7af
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test r14, r14
je 0x14002d7be
mov rcx, qword [0x1400b6ca0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002d7be
test rcx, rcx
jne 0x14002d81f
call fcn.140006820
jmp 0x14002d886
mov rdx, qword [rbp + 0x10]
call fcn.140042cf0
jmp 0x14002d886
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x70], rax
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
mov ecx, 2
mov rdx, rbx
call fcn.140042cf0
jmp 0x14002d886
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x70], rax
mov byte [rbp + 0xa7], 1
mov byte [rbp + 0xa6], 1
call fcn.140006820
ud2