Function at 0x140033ab0
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, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov qword [rsp + 0x80], rcx
mov byte [rsp + 0x47], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x88], ecx
sub eax, eax
mov qword [rsp + 0x98], rax
mov r14d, 8
mov sil, 1
xorps xmm6, xmm6
lea r15, [rsp + 0x50]
nop word cs:[rax + rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0x94], eax
jmp 0x140033b2c
mov rax, qword [rsp + 0x50]
xchg qword [0x1401261c0], rax
mov rax, qword [0x1401261c0]
test rax, rax
jne 0x140033b60
movaps xmmword [rsp + 0x50], xmm6
xor ecx, ecx
mov rdx, r15
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x140033b20
call fcn.140067020
jmp 0x140033b25
mov eax, 1
lock xadd qword [0x1401261c0], rax
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0xa8], rax
lea rax, [0x14000f650]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
lea rax, [fcn.14000f770]
mov qword [rsp + 0xc0], rax
lea rax, [0x140108480]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 2
lea rcx, [rsp + 0xd8]
mov rdx, r15
call fcn.1400062c0
cmp qword [rsp + 0x48], 0
sete al
or sil, al
test sil, 1
jne 0x140033c17
mov edx, 1
mov rcx, rbp
call fcn.140005c70
mov r8, qword [rsp + 0xd8]
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xe8]
lea rbx, [r8 + rcx]
or rcx, rcx
mov qword [rsp + 0xa0], r8
mov dword [rsp + 0x90], r14d
mov qword [rsp + 0xc8], rcx
je 0x140033c70
movzx eax, byte [r8]
test al, al
js 0x140033c90
lea r12, [r8 + 1]
mov r13d, eax
jmp 0x140033ced
xor r14d, r14d
sub esi, esi
xor r12d, r12d
xor r13d, r13d
sub ebp, ebp
jmp 0x140033d16
mov r13d, eax
and r13d, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x140033ce2
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x140033fd1
lea r12, [r8 + 4]
movzx eax, byte [r8 + 3]
and r13d, 7
shl r13d, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or r13d, eax
cmp r13d, 0xffff
jbe 0x140033ced
jmp 0x140033fe9
lea r12, [r8 + 2]
shl r13d, 6
or r13d, edx
xor r14d, r14d
xor eax, eax
push rbx
nop
pop rcx
sub rcx, r12
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
lea rbp, [rcx + rax]
inc rbp
mov si, 1
cmp rbp, 4
mov eax, 3
cmovb rbp, rax
movabs rax, 0x3fffffffffffffff
cmp rbp, rax
jae 0x140034173
inc rbp
lea rdi, [rbp*2]
movzx eax, byte [0x1401262b8]
mov edx, 2
push rdi
pop rcx
nop
call fcn.140005be0
or rax, rax
je 0x140034164
mov rcx, qword [rsp + 0x98]
inc ecx
mov dword [rsp + 0x8c], ecx
mov word [rax], r13w
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], 1
mov edi, 1
mov rbp, qword [rsp + 0xa0]
jmp 0x140033db0
mov r14d, ecx
mov word [rax + rdi*2], r13w
inc rdi
mov qword [rsp + 0x60], rdi
test r12, r12
je 0x140033e20
test r14w, r14w
je 0x140033e00
sub ecx, ecx
mov r13d, r14d
cmp rdi, qword [rsp + 0x58]
jne 0x140033da0
mov r8, rbx
sub r8, r12
add r8, 3
mov rax, 0xffffffffffffffff
cmovb r8, rax
shr r8, 2
cmp cx, 1
sbb r8, 0xffffffffffffffff
cmp si, 1
sbb r8, 0xffffffffffffffff
mov r14d, ecx
jmp 0x140033e49
cmp r12, rbx
je 0x140033e20
movzx ecx, byte [r12]
test cl, cl
js 0x140033e61
inc r12
mov r13d, ecx
xor ecx, ecx
jmp 0x140033dc0
cmp si, 1
jne 0x140033f10
sub esi, esi
mov r12d, 0
mov r13d, 0
mov r8d, 0
cmp rdi, qword [rsp + 0x58]
jne 0x140033da3
inc r8
mov rcx, r15
push rdi
pop rdx
nop
call fcn.140047740
mov rax, qword [rsp + 0x50]
jmp 0x140033da3
mov r13d, ecx
and r13d, 0x1f
movzx r8d, byte [r12 + 1]
and r8d, 0x3f
cmp cl, 0xdf
jbe 0x140033eb9
movzx edx, byte [r12 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp cl, 0xf0
jb 0x140033ecb
movzx ecx, byte [r12 + 3]
add r12, 4
and r13d, 7
shl r13d, 0x12
shl edx, 6
and ecx, 0x3f
or ecx, edx
or r13d, ecx
cmp r13d, 0xffff
ja 0x140033edf
xor ecx, ecx
jmp 0x140033dc0
add r12, 2
shl r13d, 6
or r13d, r8d
sub ecx, ecx
jmp 0x140033dc0
add r12, 3
shl r13d, 0xc
or r13d, edx
cmp r13d, 0xffff
jbe 0x140033eb2
lea edx, [r13 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov ecx, r13d
mov r13d, edx
jmp 0x140033dc0
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
push rbx
pop rcx
nop
mov edx, dword [rsp + 0x88]
mov r14d, dword [rsp + 0x90]
mov r8d, r14d
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
push rax
nop
pop rdi
cmp rax, 0xffffffffffffffff
jne 0x14003404c
call sub.KERNEL32.dll_GetLastError
push rax
nop
pop rcx
shl rcx, 0x20
or rcx, 2
mov edx, dword [rsp + 0x8c]
cmp edx, 9
jg 0x140034017
cmp eax, 5
jne 0x140033fa0
mov eax, edx
mov qword [rsp + 0x98], rax
jmp 0x140033fad
test r14d, r14d
je 0x140034017
xor r14d, r14d
cmp eax, 0x57
jne 0x140034017
call fcn.1400635b0
xor esi, esi
or r12, r12
je 0x140033b10
mov edx, 2
mov rcx, rbx
call fcn.140005c70
sub esi, esi
jmp 0x140033b10
lea r12, [r8 + 3]
shl r13d, 0xc
or r13d, ecx
cmp r13d, 0xffff
jbe 0x140033ced
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, 1
mov r14d, r13d
mov r13d, ecx
jmp 0x140033cf2
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov r14, 0xffffffffffffffff
or r12, r12
je 0x1400340f5
mov edx, 2
push rbx
pop rcx
nop
call fcn.140005c70
jmp 0x1400340f5
test r12, r12
je 0x14003405e
mov edx, 2
push rbx
pop rcx
nop
call fcn.140005c70
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x6c], 0
mov word [rsp + 0x74], 0
movzx eax, byte [rsp + 0x47]
mov byte [rsp + 0x71], al
xor al, 1
mov byte [rsp + 0x70], al
mov dword [rsp + 0x68], 0
mov dword [rsp + 0xa8], 0x18
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0xb8], 1
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x50]
push rbp
pop rcx
nop
mov rdx, qword [rsp + 0xc8]
call fcn.140058580
or rax, rax
je 0x140034136
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov r14, rdi
mov rax, qword [rsp + 0x48]
or rax, rax
je 0x14003410c
mov edx, 1
mov rcx, rbp
call fcn.140005c70
cmp rdi, 0xffffffffffffffff
je 0x14003411a
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
cmp qword [rsp + 0x48], 0
je 0x14003411a
mov edx, 1
nop
push rbp
pop rcx
call fcn.140005c70
jmp 0x14003411a
mov ecx, 2
mov rdx, rdi
call fcn.140006d30
jmp 0x140034178
call fcn.140006ae0
ud2