Function at 0x140034620
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 [0x1401120d8]
test rax, rax
jne 0x1400346ca
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 [0x1401120d8], rax
mov rax, qword [0x1401120d8]
test rax, rax
je 0x1400346a0
mov eax, 1
lock xadd qword [0x1401120d8], rax
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0xa8], rax
lea rax, [0x14001a0f0]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
lea rax, [0x140019ab0]
mov qword [rsp + 0xc0], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
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.14000f3a0
test r15, r15
sete al
or sil, al
test sil, 1
jne 0x140034784
mov rcx, qword [0x1401120f0]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.14005177c
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 0x1400347d0
movzx edi, byte [r8]
test dil, dil
js 0x1400347f0
lea rbp, [r8 + 1]
jmp 0x14003484b
mov r12d, 4
mov edx, 8
xor esi, esi
xor ebp, ebp
xor edi, edi
xor r15d, r15d
jmp 0x140034899
mov eax, edi
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x140034840
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp dil, 0xf0
jb 0x140034b12
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 0x14003484b
jmp 0x140034b29
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 0x140034cbf
lea rdx, [r12 + r12]
mov r15w, 1
movzx eax, byte [0x140112110]
xor ecx, ecx
call fcn.140036850
test rax, rax
je 0x140034cbf
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 0x1400348ff
xor ecx, ecx
mov r13d, esi
cmp rdi, qword [rsp + 0x50]
je 0x1400349af
mov esi, ecx
mov word [rax + rdi*2], r13w
inc rdi
mov qword [rsp + 0x60], rdi
test rbp, rbp
je 0x140034920
test si, si
jne 0x1400348e0
cmp rbp, rbx
je 0x140034920
movzx r13d, byte [rbp]
test r13b, r13b
js 0x14003494e
inc rbp
xor ecx, ecx
jmp 0x1400348e5
mov r12, qword [rsp + 0x50]
cmp r15w, 1
jne 0x140034a60
xor r13d, r13d
mov ebp, 0
mov r15d, 0
mov r8d, 0
cmp rdi, r12
jne 0x1400348f2
jmp 0x1400349d9
mov ecx, r13d
and ecx, 0x1f
movzx r8d, byte [rbp + 1]
and r8d, 0x3f
cmp r13b, 0xdf
jbe 0x140034a00
movzx edx, byte [rbp + 2]
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp r13b, 0xf0
jb 0x140034a14
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 0x140034a2d
xor ecx, ecx
jmp 0x1400348e5
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.140037e60
mov rax, qword [rsp + 0x58]
jmp 0x1400348f2
add rbp, 2
shl ecx, 6
or ecx, r8d
mov r13d, ecx
xor ecx, ecx
jmp 0x1400348e5
add rbp, 3
shl ecx, 0xc
or edx, ecx
mov r13d, edx
cmp r13d, 0xffff
jbe 0x1400349a8
lea edx, [r13 + 0xff0000]
shr edx, 0xa
or edx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov ecx, r13d
mov r13d, edx
jmp 0x1400348e5
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 0x140034bc5
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rsp + 0x90]
cmp ecx, 0xa
mov r15, qword [rsp + 0xa0]
jge 0x140034b52
cmp eax, 5
jne 0x140034ae0
mov eax, ecx
mov qword [rsp + 0x98], rax
jmp 0x140034aeb
test esi, esi
je 0x140034b52
xor esi, esi
cmp eax, 0x57
jne 0x140034b52
mov dword [rsp + 0x44], esi
xor esi, esi
test r12, r12
je 0x140034680
mov rcx, qword [0x1401120f0]
xor esi, esi
xor edx, edx
mov r8, rbx
call fcn.14005177c
jmp 0x140034680
lea rbp, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov edi, ecx
cmp edi, 0xffff
jbe 0x14003484b
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 0x140034852
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test r12, r12
je 0x140034b83
mov rcx, qword [0x1401120f0]
xor edx, edx
mov r8, rbx
call fcn.14005177c
test r15, r15
je 0x140034b9b
mov rcx, qword [0x1401120f0]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.14005177c
cmp rdi, 0xffffffffffffffff
je 0x140034ba9
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 0x140034be3
mov rcx, qword [0x1401120f0]
xor edx, edx
mov r8, rbx
call fcn.14005177c
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.140029910
test rax, rax
je 0x140034c87
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdx
mov qword [rax], 1
test r15, r15
jne 0x140034b88
jmp 0x140034b9b
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test r15, r15
je 0x140034ba9
mov rcx, qword [0x1401120f0]
xor edx, edx
mov r8, qword [rsp + 0x48]
call fcn.14005177c
jmp 0x140034ba9
ud2