Function at 0x1400392a0
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 [0x141d0ba08]
test rax, rax
jne 0x140039348
nop dword [rax]
movaps xmmword [rsp + 0x50], xmm6
mov edx, 0x10
mov rcx, r15
call r12
mov rax, qword [rsp + 0x50]
mov qword [0x141d0ba08], rax
mov rax, qword [0x141d0ba08]
test rax, rax
je 0x140039320
mov eax, 1
lock xadd qword [0x141d0ba08], rax
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0xa8], rax
lea rax, [0x14001b8f0]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
lea rax, [0x14001b0e0]
mov qword [rsp + 0xc0], rax
lea rax, [0x141cfde30]
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.140010620
test rdi, rdi
sete al
or sil, al
test sil, 1
jne 0x140039403
mov rcx, qword [0x141d0ba00]
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 0x140039450
movzx esi, byte [r8]
test sil, sil
js 0x140039470
lea r12, [r8 + 1]
jmp 0x1400394cb
mov edi, 4
mov edx, 8
xor r14d, r14d
xor r12d, r12d
xor esi, esi
xor r13d, r13d
jmp 0x14003951a
mov eax, esi
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp sil, 0xdf
jbe 0x1400394c0
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp sil, 0xf0
jb 0x140039791
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 0x1400394cb
jmp 0x1400397a8
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 0x140039944
lea rdx, [rdi + rdi]
mov r13w, 1
movzx eax, byte [0x141d0ba30]
xor ecx, ecx
call fcn.14003b500
test rax, rax
je 0x140039944
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 0x14003957f
xor ecx, ecx
mov edi, r14d
cmp rsi, qword [rsp + 0x50]
je 0x14003962a
mov r14d, ecx
mov word [rax + rsi*2], di
inc rsi
mov qword [rsp + 0x60], rsi
test r12, r12
je 0x1400395a0
test r14w, r14w
jne 0x140039560
cmp r12, rbx
je 0x1400395a0
movzx edi, byte [r12]
test dil, dil
js 0x1400395ce
inc r12
xor ecx, ecx
jmp 0x140039565
mov rbp, qword [rsp + 0x50]
cmp r13w, 1
jne 0x1400396d0
xor edi, edi
mov r12d, 0
mov r13d, 0
mov r8d, 0
cmp rsi, rbp
jne 0x140039573
jmp 0x140039655
mov ecx, edi
and ecx, 0x1f
movzx r8d, byte [r12 + 1]
and r8d, 0x3f
cmp dil, 0xdf
jbe 0x14003967c
movzx edx, byte [r12 + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp dil, 0xf0
jb 0x14003968f
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 0x1400396a2
xor ecx, ecx
jmp 0x140039565
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.140056440
mov rax, qword [rsp + 0x58]
jmp 0x140039573
add r12, 2
shl ecx, 6
or ecx, r8d
mov edi, ecx
xor ecx, ecx
jmp 0x140039565
add r12, 3
shl ecx, 0xc
or edx, ecx
mov edi, edx
cmp edi, 0xffff
jbe 0x140039623
lea edx, [rdi + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov ecx, edi
mov edi, edx
jmp 0x140039565
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 0x140039848
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 0x1400397d2
cmp eax, 5
jne 0x140039760
mov eax, ecx
mov qword [rsp + 0x98], rax
jmp 0x14003976d
test r14d, r14d
je 0x1400397d2
xor r14d, r14d
cmp eax, 0x57
jne 0x1400397d2
xor esi, esi
test rbp, rbp
je 0x140039300
mov rcx, qword [0x141d0ba00]
xor esi, esi
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140039300
lea r12, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov esi, ecx
cmp esi, 0xffff
jbe 0x1400394cb
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 0x1400394d3
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rbp, rbp
je 0x140039804
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x14003981d
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rsi, 0xffffffffffffffff
je 0x14003982c
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 0x140039867
mov rcx, qword [0x141d0ba00]
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.14002dfb0
test rax, rax
je 0x14003990b
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdx
mov qword [rax], 1
test rdi, rdi
jne 0x140039809
jmp 0x14003981d
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test rdi, rdi
je 0x14003982c
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14003982c
ud2