Function at 0x14003ac30
Capabilities:
Create pipe

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
mov qword [rsp + 0x98], 0
mov r14d, 8
mov sil, 1
xorps xmm6, xmm6
lea r15, [rsp + 0x50]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x94], eax
mov rax, qword [0x141d069b0]
test rax, rax
jne 0x14003acd8
nop dword [rax]
movaps xmmword [rsp + 0x50], xmm6
mov edx, 0x10
mov rcx, r15
call r12
mov rax, qword [rsp + 0x50]
mov qword [0x141d069b0], rax
mov rax, qword [0x141d069b0]
test rax, rax
je 0x14003acb0
mov eax, 1
lock xadd qword [0x141d069b0], rax
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0xa8], rax
lea rax, [0x14001d210]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
lea rax, [0x14001ca00]
mov qword [rsp + 0xc0], rax
lea rax, [0x141cf9128]
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.140012330
test rdi, rdi
sete al
or sil, al
test sil, 1
jne 0x14003ad93
mov rcx, qword [0x141d069c8]
xor edx, edx
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r9, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xe0]
mov r10, qword [rsp + 0xe8]
lea rbx, [r8 + r10]
test r10, r10
mov qword [rsp + 0x48], r8
mov qword [rsp + 0xa0], r9
mov dword [rsp + 0x90], r14d
mov qword [rsp + 0xc8], r10
je 0x14003ade0
movzx esi, byte [r8]
test sil, sil
js 0x14003ae00
lea r12, [r8 + 1]
jmp 0x14003ae5b
mov edi, 4
mov edx, 8
xor r14d, r14d
xor r12d, r12d
xor esi, esi
xor r13d, r13d
jmp 0x14003aeaa
mov eax, esi
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp sil, 0xdf
jbe 0x14003ae50
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp sil, 0xf0
jb 0x14003b121
lea r12, [r8 + 4]
movzx esi, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and esi, 0x3f
or esi, ecx
or esi, eax
cmp esi, 0xffff
jbe 0x14003ae5b
jmp 0x14003b138
lea r12, [r8 + 2]
shl eax, 6
or eax, edx
mov esi, eax
mov eax, 1
xor r14d, r14d
mov rcx, rbx
sub rcx, r12
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
lea rdx, [rcx + rax]
lea rdi, [rcx + rax]
inc rdi
cmp rdx, 3
mov eax, 4
cmovb rdi, rax
mov rax, rdi
shr rax, 0x3e
jne 0x14003b2d4
lea rdx, [rdi + rdi]
mov r13w, 1
movzx eax, byte [0x141d069e0]
xor ecx, ecx
call fcn.14003cf90
test rax, rax
je 0x14003b2d4
mov rcx, qword [rsp + 0x98]
inc ecx
mov dword [rsp + 0x8c], ecx
mov word [rax], si
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 1
mov esi, 1
jmp 0x14003af0f
xor ecx, ecx
mov edi, r14d
cmp rsi, qword [rsp + 0x50]
je 0x14003afba
mov r14d, ecx
mov word [rax + rsi*2], di
inc rsi
mov qword [rsp + 0x60], rsi
test r12, r12
je 0x14003af30
test r14w, r14w
jne 0x14003aef0
cmp r12, rbx
je 0x14003af30
movzx edi, byte [r12]
test dil, dil
js 0x14003af5e
inc r12
xor ecx, ecx
jmp 0x14003aef5
mov rbp, qword [rsp + 0x50]
cmp r13w, 1
jne 0x14003b060
xor edi, edi
mov r12d, 0
mov r13d, 0
mov r8d, 0
cmp rsi, rbp
jne 0x14003af03
jmp 0x14003afe5
mov ecx, edi
and ecx, 0x1f
movzx r8d, byte [r12 + 1]
and r8d, 0x3f
cmp dil, 0xdf
jbe 0x14003b00c
movzx edx, byte [r12 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp dil, 0xf0
jb 0x14003b01f
movzx edi, byte [r12 + 3]
add r12, 4
and ecx, 7
shl ecx, 0x12
shl edx, 6
and edi, 0x3f
or edi, edx
or edi, ecx
cmp edi, 0xffff
ja 0x14003b032
xor ecx, ecx
jmp 0x14003aef5
mov r8, rbx
sub r8, r12
add r8, 3
mov rax, 0xffffffffffffffff
cmovb r8, rax
shr r8, 2
movzx eax, r13w
cmp cx, 1
sbb r8, 0xffffffffffffffff
add r8, rax
mov r14d, ecx
inc r8
mov qword [rsp + 0x20], 2
mov r9d, 2
mov rcx, r15
mov rdx, rsi
call fcn.140055e00
mov rax, qword [rsp + 0x58]
jmp 0x14003af03
add r12, 2
shl ecx, 6
or ecx, r8d
mov edi, ecx
xor ecx, ecx
jmp 0x14003aef5
add r12, 3
shl ecx, 0xc
or edx, ecx
mov edi, edx
cmp edi, 0xffff
jbe 0x14003afb3
lea edx, [rdi + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov ecx, edi
mov edi, edx
jmp 0x14003aef5
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rbx
mov edx, dword [rsp + 0x88]
mov r14d, dword [rsp + 0x90]
mov r8d, r14d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003b1d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0x8c]
cmp ecx, 0xa
mov rdi, qword [rsp + 0xa0]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
jge 0x14003b162
cmp eax, 5
jne 0x14003b0f0
mov eax, ecx
mov qword [rsp + 0x98], rax
jmp 0x14003b0fd
test r14d, r14d
je 0x14003b162
xor r14d, r14d
cmp eax, 0x57
jne 0x14003b162
xor esi, esi
test rbp, rbp
je 0x14003ac90
mov rcx, qword [0x141d069c8]
xor esi, esi
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14003ac90
lea r12, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov esi, ecx
cmp esi, 0xffff
jbe 0x14003ae5b
lea ecx, [rsi + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and esi, 0x3ff
or esi, 0xdc00
mov eax, 2
mov r14d, esi
mov esi, ecx
jmp 0x14003ae63
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rbp, rbp
je 0x14003b194
mov rcx, qword [0x141d069c8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x14003b1ad
mov rcx, qword [0x141d069c8]
xor edx, edx
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rsi, 0xffffffffffffffff
je 0x14003b1bc
mov rcx, rsi
call qword [sym.imp.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
test rbp, rbp
mov rdi, qword [rsp + 0xa0]
je 0x14003b1f7
mov rcx, qword [0x141d069c8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
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]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0xc8]
call fcn.14002f650
test rax, rax
je 0x14003b29b
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdx
mov qword [rax], 1
test rdi, rdi
jne 0x14003b199
jmp 0x14003b1ad
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rdi, rdi
je 0x14003b1bc
mov rcx, qword [0x141d069c8]
xor edx, edx
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14003b1bc
ud2