Function at 0x14003e730
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 + 0x43], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x8c], ecx
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x44], 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rsp + 0x50]
nop word [rax + rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0x94], eax
mov rax, qword [0x141d1d0d8]
test rax, rax
jne 0x14003e7da
nop dword [rax + rax]
movaps xmmword [rsp + 0x50], xmm6
mov edx, 0x10
mov rcx, r14
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rsp + 0x50]
mov qword [0x141d1d0d8], rax
mov rax, qword [0x141d1d0d8]
test rax, rax
je 0x14003e7b0
mov eax, 1
lock xadd qword [0x141d1d0d8], rax
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0xa8], rax
lea rax, [0x14001e4b0]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
lea rax, [0x14001dca0]
mov qword [rsp + 0xc0], rax
lea rax, [0x141d16e00]
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, r14
call fcn.140013590
test r15, r15
sete al
or sil, al
test sil, 1
jne 0x14003e894
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.14004dc58
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 qword [rsp + 0xc8], r10
je 0x14003e8e0
movzx edi, byte [r8]
test dil, dil
js 0x14003e900
lea rbp, [r8 + 1]
jmp 0x14003e95b
mov r12d, 4
mov edx, 8
xor esi, esi
xor ebp, ebp
xor edi, edi
xor r15d, r15d
jmp 0x14003e9a9
mov eax, edi
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x14003e950
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp dil, 0xf0
jb 0x14003ec22
lea rbp, [r8 + 4]
movzx edi, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and edi, 0x3f
or edi, ecx
or edi, eax
cmp edi, 0xffff
jbe 0x14003e95b
jmp 0x14003ec39
lea rbp, [r8 + 2]
shl eax, 6
or eax, edx
mov edi, eax
mov eax, 1
xor esi, esi
mov rcx, rbx
sub rcx, rbp
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
lea rdx, [rcx + rax]
lea r12, [rcx + rax]
inc r12
cmp rdx, 3
mov eax, 4
cmovb r12, rax
mov rax, r12
shr rax, 0x3e
jne 0x14003edcf
lea rdx, [r12 + r12]
mov r15w, 1
movzx eax, byte [0x141d1d110]
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x14003edcf
mov rcx, qword [rsp + 0x98]
inc ecx
mov dword [rsp + 0x90], ecx
mov word [rax], di
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 1
mov edi, 1
jmp 0x14003ea0f
xor ecx, ecx
mov r13d, esi
cmp rdi, qword [rsp + 0x50]
je 0x14003eabf
mov esi, ecx
mov word [rax + rdi*2], r13w
inc rdi
mov qword [rsp + 0x60], rdi
test rbp, rbp
je 0x14003ea30
test si, si
jne 0x14003e9f0
cmp rbp, rbx
je 0x14003ea30
movzx r13d, byte [rbp]
test r13b, r13b
js 0x14003ea5e
inc rbp
xor ecx, ecx
jmp 0x14003e9f5
mov r12, qword [rsp + 0x50]
cmp r15w, 1
jne 0x14003eb70
xor r13d, r13d
mov ebp, 0
mov r15d, 0
mov r8d, 0
cmp rdi, r12
jne 0x14003ea02
jmp 0x14003eae9
mov ecx, r13d
and ecx, 0x1f
movzx r8d, byte [rbp + 1]
and r8d, 0x3f
cmp r13b, 0xdf
jbe 0x14003eb10
movzx edx, byte [rbp + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp r13b, 0xf0
jb 0x14003eb24
movzx r13d, byte [rbp + 3]
add rbp, 4
and ecx, 7
shl ecx, 0x12
shl edx, 6
and r13d, 0x3f
or r13d, edx
or r13d, ecx
cmp r13d, 0xffff
ja 0x14003eb3d
xor ecx, ecx
jmp 0x14003e9f5
mov r8, rbx
sub r8, rbp
add r8, 3
mov rax, 0xffffffffffffffff
cmovb r8, rax
shr r8, 2
movzx eax, r15w
cmp cx, 1
sbb r8, 0xffffffffffffffff
add r8, rax
mov esi, ecx
inc r8
mov qword [rsp + 0x20], 2
mov r9d, 2
mov rcx, r14
mov rdx, rdi
call fcn.140006ae0
mov rax, qword [rsp + 0x58]
jmp 0x14003ea02
add rbp, 2
shl ecx, 6
or ecx, r8d
mov r13d, ecx
xor ecx, ecx
jmp 0x14003e9f5
add rbp, 3
shl ecx, 0xc
or edx, ecx
mov r13d, edx
cmp r13d, 0xffff
jbe 0x14003eab8
lea edx, [r13 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov ecx, r13d
mov r13d, edx
jmp 0x14003e9f5
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 + 0x8c]
mov esi, dword [rsp + 0x44]
mov r8d, esi
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003ecd5
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0x90]
cmp ecx, 0xa
mov r15, qword [rsp + 0xa0]
jge 0x14003ec62
cmp eax, 5
jne 0x14003ebf0
mov eax, ecx
mov qword [rsp + 0x98], rax
jmp 0x14003ebfb
test esi, esi
je 0x14003ec62
xor esi, esi
cmp eax, 0x57
jne 0x14003ec62
mov dword [rsp + 0x44], esi
xor esi, esi
test r12, r12
je 0x14003e790
mov rcx, qword [0x141d1d0f0]
xor esi, esi
xor edx, edx
mov r8, rbx
call fcn.14004dc58
jmp 0x14003e790
lea rbp, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov edi, ecx
cmp edi, 0xffff
jbe 0x14003e95b
lea ecx, [rdi + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov eax, 2
mov esi, edi
mov edi, ecx
jmp 0x14003e962
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test r12, r12
je 0x14003ec93
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rbx
call fcn.14004dc58
test r15, r15
je 0x14003ecab
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.14004dc58
cmp rdi, 0xffffffffffffffff
je 0x14003ecb9
mov rcx, rdi
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
test r12, r12
mov r15, qword [rsp + 0xa0]
je 0x14003ecf3
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rbx
call fcn.14004dc58
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x6c], 0
mov word [rsp + 0x74], 0
movzx eax, byte [rsp + 0x43]
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.1400332f0
test rax, rax
je 0x14003ed97
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdx
mov qword [rax], 1
test r15, r15
jne 0x14003ec98
jmp 0x14003ecab
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test r15, r15
je 0x14003ecb9
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.14004dc58
jmp 0x14003ecb9
ud2