Function at 0x1400e5ed0
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov qword [rsp + 0x98], rcx
mov byte [rsp + 0x47], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0xa4], ecx
xor eax, eax
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x5c], 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rsp + 0x60]
nop word cs:[rax + rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0xac], eax
mov rax, qword [0x1419340e0]
test rax, rax
jne 0x1400e5f7a
nop dword [rax + rax]
movaps xmmword [rsp + 0x60], xmm6
mov edx, 0x10
mov rcx, r14
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rsp + 0x60]
xchg qword [0x1419340e0], rax
mov rax, qword [0x1419340e0]
test rax, rax
je 0x1400e5f50
mov eax, 1
lock xadd qword [0x1419340e0], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xac]
mov qword [rsp + 0xb8], rax
lea rax, [fcn.14003db90]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xc8], rax
lea rax, [0x14003dcb0]
mov qword [rsp + 0xd0], rax
lea rax, [0x1419291b8]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 2
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 2
lea rcx, [rsp + 0xe8]
mov rdx, r14
call fcn.140036ac0
cmp qword [rsp + 0x50], 0
sete al
or sil, al
test sil, 1
jne 0x1400e603a
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.1401034d0
mov r10, qword [rsp + 0xe8]
mov r9, qword [rsp + 0xf0]
mov r11, qword [rsp + 0xf8]
lea rbx, [r9 + r11]
mov edi, 4
mov edx, 8
test r11, r11
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], r10
mov qword [rsp + 0xd8], r11
je 0x1400e6090
movzx eax, byte [r9]
test al, al
js 0x1400e60a0
lea rbp, [r9 + 1]
mov r13d, eax
jmp 0x1400e6100
xor esi, esi
xor r12d, r12d
xor ebp, ebp
xor r13d, r13d
jmp 0x1400e614d
mov r13d, eax
and r13d, 0x1f
movzx r8d, byte [r9 + 1]
and r8d, 0x3f
cmp al, 0xdf
jbe 0x1400e60f5
movzx ecx, byte [r9 + 2]
shl r8d, 6
and ecx, 0x3f
or ecx, r8d
cmp al, 0xf0
jb 0x1400e63b2
lea rbp, [r9 + 4]
movzx eax, byte [r9 + 3]
and r13d, 7
shl r13d, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or r13d, eax
cmp r13d, 0xffff
jbe 0x1400e6100
jmp 0x1400e63ca
lea rbp, [r9 + 2]
shl r13d, 6
or r13d, r8d
xor esi, esi
xor ecx, ecx
mov rax, rbx
sub rax, rbp
add rax, 3
mov r8, 0xffffffffffffffff
cmovb rax, r8
shr rax, 2
add rax, rcx
mov r12w, 1
cmp rax, 2
jb 0x1400e614d
movabs rcx, 0x3ffffffffffffffd
cmp rax, rcx
ja 0x1400e656b
lea rdx, [rax*2 + 4]
add rax, 2
mov rdi, rax
movzx eax, byte [0x141934140]
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x1400e656b
mov rcx, qword [rsp + 0xb0]
inc ecx
mov dword [rsp + 0xa8], ecx
mov word [rax], r13w
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 1
mov edi, 1
jmp 0x1400e61bf
xor ecx, ecx
mov r13d, esi
cmp rdi, qword [rsp + 0x60]
je 0x1400e6269
mov esi, ecx
mov word [rax + rdi*2], r13w
inc rdi
mov qword [rsp + 0x70], rdi
test rbp, rbp
je 0x1400e61e0
test si, si
jne 0x1400e61a0
cmp rbp, rbx
je 0x1400e61e0
movzx ecx, byte [rbp]
test cl, cl
js 0x1400e620e
inc rbp
mov r13d, ecx
xor ecx, ecx
jmp 0x1400e61a5
mov r15, qword [rsp + 0x60]
cmp r12w, 1
jne 0x1400e6300
xor r12d, r12d
mov ebp, 0
mov r13d, 0
mov r8d, 0
cmp rdi, r15
jne 0x1400e61b2
jmp 0x1400e6295
mov r13d, ecx
and r13d, 0x1f
movzx r8d, byte [rbp + 1]
and r8d, 0x3f
cmp cl, 0xdf
jbe 0x1400e62ad
movzx edx, byte [rbp + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp cl, 0xf0
jb 0x1400e62bf
movzx ecx, byte [rbp + 3]
add rbp, 4
and r13d, 7
shl r13d, 0x12
shl edx, 6
and ecx, 0x3f
or ecx, edx
or r13d, ecx
cmp r13d, 0xffff
ja 0x1400e62d3
xor ecx, ecx
jmp 0x1400e61a5
mov r8, rbx
sub r8, rbp
add r8, 3
mov rax, 0xffffffffffffffff
cmovb r8, rax
shr r8, 2
cmp cx, 1
sbb r8, 0xffffffffffffffff
cmp r12w, 1
sbb r8, 0xffffffffffffffff
mov esi, ecx
inc r8
mov rcx, r14
mov rdx, rdi
call fcn.1400e3da0
mov rax, qword [rsp + 0x68]
jmp 0x1400e61b2
add rbp, 2
shl r13d, 6
or r13d, r8d
xor ecx, ecx
jmp 0x1400e61a5
add rbp, 3
shl r13d, 0xc
or r13d, edx
cmp r13d, 0xffff
jbe 0x1400e6262
lea edx, [r13 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov ecx, r13d
mov r13d, edx
jmp 0x1400e61a5
mov rbx, qword [rsp + 0x68]
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 + 0xa4]
mov esi, dword [rsp + 0x5c]
mov r8d, esi
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e6438
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0xa8]
cmp ecx, 0xa
jge 0x1400e63f7
cmp eax, 5
jne 0x1400e6380
mov eax, ecx
mov qword [rsp + 0xb0], rax
jmp 0x1400e638b
test esi, esi
je 0x1400e63f7
xor esi, esi
cmp eax, 0x57
jne 0x1400e63f7
mov dword [rsp + 0x5c], esi
xor esi, esi
test r15, r15
je 0x1400e5f30
mov rcx, qword [0x1419340f0]
xor esi, esi
xor edx, edx
mov r8, rbx
call fcn.1401034d0
jmp 0x1400e5f30
lea rbp, [r9 + 3]
shl r13d, 0xc
or r13d, ecx
cmp r13d, 0xffff
jbe 0x1400e6100
lea eax, [r13 + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov ecx, 1
mov esi, r13d
mov r13d, eax
jmp 0x1400e6104
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x98]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov r14, 0xffffffffffffffff
test r15, r15
je 0x1400e64f0
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, rbx
call fcn.1401034d0
jmp 0x1400e64f0
test r15, r15
je 0x1400e644e
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, rbx
call fcn.1401034d0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x7c], 0
mov word [rsp + 0x84], 0
movzx eax, byte [rsp + 0x47]
mov byte [rsp + 0x81], al
xor al, 1
mov byte [rsp + 0x80], al
mov dword [rsp + 0x78], 0
mov dword [rsp + 0xb8], 0x18
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0xc8], 1
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0xd8]
call fcn.1400ecfe0
test rax, rax
je 0x1400e6537
mov rax, qword [rsp + 0x98]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov r14, rdi
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400e650d
mov rcx, qword [0x1419340f0]
xor edx, edx
call fcn.1401034d0
cmp rdi, 0xffffffffffffffff
je 0x1400e651b
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x98]
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
cmp qword [rsp + 0x50], 0
je 0x1400e651b
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.1401034d0
jmp 0x1400e651b
ud2