Function at 0x14003d420
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 [0x1424860e0]
test rax, rax
jne 0x14003d4ca
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 [0x1424860e0], rax
mov rax, qword [0x1424860e0]
test rax, rax
je 0x14003d4a0
mov eax, 1
lock xadd qword [0x1424860e0], rax
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0xa8], rax
lea rax, [0x14001e0e0]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
lea rax, [0x14001d8d0]
mov qword [rsp + 0xc0], rax
lea rax, [0x142480508]
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.140012db0
test r15, r15
sete al
or sil, al
test sil, 1
jne 0x14003d584
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.14004d290
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 0x14003d5d0
movzx edi, byte [r8]
test dil, dil
js 0x14003d5f0
lea rbp, [r8 + 1]
jmp 0x14003d64b
mov r12d, 4
mov edx, 8
xor esi, esi
xor ebp, ebp
xor edi, edi
xor r15d, r15d
jmp 0x14003d699
mov eax, edi
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x14003d640
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp dil, 0xf0
jb 0x14003d912
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 0x14003d64b
jmp 0x14003d929
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 0x14003dabf
lea rdx, [r12 + r12]
mov r15w, 1
movzx eax, byte [0x142486110]
xor ecx, ecx
call fcn.14003f640
test rax, rax
je 0x14003dabf
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 0x14003d6ff
xor ecx, ecx
mov r13d, esi
cmp rdi, qword [rsp + 0x50]
je 0x14003d7af
mov esi, ecx
mov word [rax + rdi*2], r13w
inc rdi
mov qword [rsp + 0x60], rdi
test rbp, rbp
je 0x14003d720
test si, si
jne 0x14003d6e0
cmp rbp, rbx
je 0x14003d720
movzx r13d, byte [rbp]
test r13b, r13b
js 0x14003d74e
inc rbp
xor ecx, ecx
jmp 0x14003d6e5
mov r12, qword [rsp + 0x50]
cmp r15w, 1
jne 0x14003d860
xor r13d, r13d
mov ebp, 0
mov r15d, 0
mov r8d, 0
cmp rdi, r12
jne 0x14003d6f2
jmp 0x14003d7d9
mov ecx, r13d
and ecx, 0x1f
movzx r8d, byte [rbp + 1]
and r8d, 0x3f
cmp r13b, 0xdf
jbe 0x14003d800
movzx edx, byte [rbp + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp r13b, 0xf0
jb 0x14003d814
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 0x14003d82d
xor ecx, ecx
jmp 0x14003d6e5
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.1400315f0
mov rax, qword [rsp + 0x58]
jmp 0x14003d6f2
add rbp, 2
shl ecx, 6
or ecx, r8d
mov r13d, ecx
xor ecx, ecx
jmp 0x14003d6e5
add rbp, 3
shl ecx, 0xc
or edx, ecx
mov r13d, edx
cmp r13d, 0xffff
jbe 0x14003d7a8
lea edx, [r13 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov ecx, r13d
mov r13d, edx
jmp 0x14003d6e5
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 0x14003d9c5
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0x90]
cmp ecx, 0xa
mov r15, qword [rsp + 0xa0]
jge 0x14003d952
cmp eax, 5
jne 0x14003d8e0
mov eax, ecx
mov qword [rsp + 0x98], rax
jmp 0x14003d8eb
test esi, esi
je 0x14003d952
xor esi, esi
cmp eax, 0x57
jne 0x14003d952
mov dword [rsp + 0x44], esi
xor esi, esi
test r12, r12
je 0x14003d480
mov rcx, qword [0x1424860d8]
xor esi, esi
xor edx, edx
mov r8, rbx
call fcn.14004d290
jmp 0x14003d480
lea rbp, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov edi, ecx
cmp edi, 0xffff
jbe 0x14003d64b
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 0x14003d652
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test r12, r12
je 0x14003d983
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rbx
call fcn.14004d290
test r15, r15
je 0x14003d99b
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.14004d290
cmp rdi, 0xffffffffffffffff
je 0x14003d9a9
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 0x14003d9e3
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, rbx
call fcn.14004d290
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.140032270
test rax, rax
je 0x14003da87
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdx
mov qword [rax], 1
test r15, r15
jne 0x14003d988
jmp 0x14003d99b
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test r15, r15
je 0x14003d9a9
mov rcx, qword [0x1424860d8]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.14004d290
jmp 0x14003d9a9
ud2