Function at 0x140057a70
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x90], xmm6
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0x8f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x54], ecx
mov r15d, 8
mov bl, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x10]
xor eax, eax
mov qword [rbp - 0x18], rax
nop
call fcn.1400aaaa4
mov dword [rbp + 0x4c], eax
mov rax, qword [0x140101158]
test rax, rax
jne 0x140057b08
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x10], xmm6
mov edx, 0x10
mov rcx, r14
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rbp + 0x10]
mov qword [0x140101158], rax
mov rax, qword [0x140101158]
test rax, rax
je 0x140057ae0
mov eax, 1
lock xadd qword [0x140101158], rax
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x4c]
mov qword [rbp - 0x10], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u32_::fmt::hffb574642817ad4a]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x28]
mov qword [rbp], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u64_::fmt::h57e859256a3b26f6]
mov qword [rbp + 8], rax
lea rax, [0x1400cf2b0]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 2
mov qword [rbp + 0x30], 0
lea rax, [rbp - 0x10]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 2
lea rcx, [rbp - 0x40]
mov rdx, r14
call sym.alloc::fmt::format::format_inner::h5a493f368b54610e
test r12, r12
sete al
or bl, al
test bl, 1
jne 0x140057b99
mov r8d, 1
mov rcx, qword [rbp + 0x80]
mov rdx, r12
call sym.__rust_dealloc
mov r8, qword [rbp - 0x40]
mov r9, qword [rbp - 0x38]
mov r10, qword [rbp - 0x30]
lea rax, [r9 + r10]
mov qword [rbp + 0x58], rax
test r10, r10
mov qword [rbp + 0x70], r8
mov qword [rbp + 0x80], r9
mov dword [rbp + 0x50], r15d
mov qword [rbp - 0x20], r10
je 0x140057be0
movzx eax, byte [r9]
test al, al
js 0x140057c00
lea r15, [r9 + 1]
mov ebx, eax
jmp 0x140057c55
mov eax, 4
mov qword [rbp + 0x68], rax
mov r13d, 8
xor r12d, r12d
xor r15d, r15d
xor ebx, ebx
xor edi, edi
jmp 0x140057cad
mov ebx, eax
and ebx, 0x1f
movzx edx, byte [r9 + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x140057c4c
movzx ecx, byte [r9 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x140057ff0
lea r15, [r9 + 4]
movzx eax, byte [r9 + 3]
and ebx, 7
shl ebx, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or ebx, eax
cmp ebx, 0xffff
jbe 0x140057c55
jmp 0x140058005
lea r15, [r9 + 2]
shl ebx, 6
or ebx, edx
mov eax, 1
xor r12d, r12d
mov r8, qword [rbp + 0x58]
sub r8, r15
add r8, 3
mov rdx, 0xffffffffffffffff
cmovb r8, rdx
shr r8, 2
add r8, rax
cmp r8, 4
mov edx, 3
cmovae rdx, r8
lea r13, [rdx*2 + 2]
movabs rax, 0x3ffffffffffffffe
cmp r8, rax
ja 0x14005818d
inc rdx
mov qword [rbp + 0x68], rdx
mov di, 1
mov rax, qword [0x1400ed808]
movzx eax, byte [rax]
mov r14d, 2
mov edx, 2
mov rcx, r13
call sym.__rust_alloc
test rax, rax
je 0x140058190
mov rsi, rax
mov rax, qword [rbp - 0x18]
inc eax
mov dword [rbp + 0x7c], eax
mov word [rsi], bx
mov r14d, 1
mov r9, rdi
mov rdx, qword [rbp + 0x68]
jmp 0x140057d14
mov r13, rdx
mov eax, r12d
mov word [rsi + r14*2], ax
inc r14
mov rdx, r13
mov r12d, ebx
test r15, r15
je 0x140057da0
test r12w, r12w
je 0x140057d70
xor ebx, ebx
cmp r14, rdx
jne 0x140057d00
mov rax, qword [rbp + 0x58]
sub rax, r15
add rax, 3
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
shr rax, 2
movzx ecx, r9w
cmp bx, 1
sbb rax, 0xffffffffffffffff
add rax, rcx
lea rcx, [rax + 1]
add rcx, r14
mov qword [rbp + 0x68], rdx
jae 0x140057dd1
jmp 0x140058180
cmp r15, qword [rbp + 0x58]
je 0x140057da0
movzx eax, byte [r15]
test al, al
js 0x140057e7a
inc r15
mov r12d, eax
xor ebx, ebx
cmp r14, rdx
jne 0x140057d00
jmp 0x140057d2a
cmp r9w, 1
jne 0x140057f40
xor r15d, r15d
xor eax, eax
cmp r14, rdx
jne 0x140057e30
xor r9d, r9d
mov ebx, r12d
xor r12d, r12d
xor eax, eax
lea rcx, [rax + 1]
add rcx, r14
mov qword [rbp + 0x68], rdx
jb 0x140058180
mov rdi, rsi
lea r13, [rax + r14]
inc r13
lea rcx, [rdx + rdx]
cmp rcx, r13
cmova r13, rcx
movabs rax, 0x3ffffffffffffffe
inc rax
mov r10, rdx
xor edx, edx
cmp r13, rax
setbe al
cmp r13, 5
mov r8d, 4
cmovb r13, r8
mov rsi, r9
test r10, r10
je 0x140057e3e
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x20], rcx
mov ecx, 2
jmp 0x140057e40
mov r13, rdx
mov ebx, r12d
xor r9d, r9d
jmp 0x140057d06
xor ecx, ecx
lea r8, [r13*2]
mov dl, al
add edx, edx
mov qword [rbp + 0x18], rcx
lea rcx, [rbp - 0x10]
lea r9, [rbp + 0x10]
call sym.alloc::raw_vec::finish_grow::h89482cadb03efeb0
cmp qword [rbp - 0x10], 0
jne 0x140058173
mov rcx, qword [rbp - 8]
mov eax, r12d
mov r9, rsi
mov rsi, rcx
jmp 0x140057d06
mov r8, rdx
mov r12d, eax
and r12d, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x140057ecf
movzx ecx, byte [r15 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x140057eed
movzx eax, byte [r15 + 3]
add r15, 4
and r12d, 7
shl r12d, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or r12d, eax
mov rdx, r8
cmp r12d, 0xffff
jbe 0x140057d23
jmp 0x140057f08
add r15, 2
shl r12d, 6
or r12d, edx
mov rdx, r8
xor ebx, ebx
cmp r14, rdx
jne 0x140057d00
jmp 0x140057d2a
add r15, 3
shl r12d, 0xc
or r12d, ecx
mov rdx, r8
cmp r12d, 0xffff
jbe 0x140057d23
lea eax, [r12 + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov ebx, r12d
mov r12d, eax
cmp r14, rdx
jne 0x140057d00
jmp 0x140057d2a
mov rdi, rdx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rsi
mov edx, dword [rbp + 0x54]
mov r15d, dword [rbp + 0x50]
mov r8d, r15d
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14005809f
call sub.KERNEL32.dll_GetLastError
cmp dword [rbp + 0x7c], 9
mov r12, qword [rbp + 0x70]
lea r14, [rbp + 0x10]
mov rdx, rdi
jg 0x14005802f
cmp eax, 5
jne 0x140057fc0
mov eax, dword [rbp + 0x7c]
mov qword [rbp - 0x18], rax
jmp 0x140057fcd
test r15d, r15d
je 0x14005802f
xor r15d, r15d
cmp eax, 0x57
jne 0x14005802f
xor ebx, ebx
test rdx, rdx
je 0x140057ac0
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call sym.__rust_dealloc
xor ebx, ebx
jmp 0x140057ac0
lea r15, [r9 + 3]
shl ebx, 0xc
or ebx, ecx
cmp ebx, 0xffff
jbe 0x140057c55
lea ecx, [rbx + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and ebx, 0x3ff
or ebx, 0xdc00
mov eax, 2
mov r12d, ebx
mov ebx, ecx
jmp 0x140057c5d
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdx, rdx
je 0x14005805c
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call sym.__rust_dealloc
test r12, r12
je 0x140058076
mov r8d, 1
mov rcx, qword [rbp + 0x80]
mov rdx, r12
call sym.__rust_dealloc
cmp rbx, 0xffffffffffffffff
je 0x140058084
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0x90]
add rsp, 0x128
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
test rdi, rdi
mov r12, qword [rbp + 0x70]
je 0x1400580bc
mov rdx, rdi
add rdx, rdi
mov r8d, 2
mov rcx, rsi
call sym.__rust_dealloc
mov dword [rbp + 0x10], 0
mov dword [rbp + 0x30], 0
mov word [rbp + 0x34], 0
movzx eax, byte [rbp + 0x8f]
mov byte [rbp + 0x31], al
xor al, 1
mov byte [rbp + 0x30], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp - 0x10], 0x18
mov qword [rbp - 8], 0
mov dword [rbp], 1
lea rax, [rbp - 0x10]
mov qword [rbp + 0x18], rax
xor r15d, r15d
lea r8, [rbp + 0x10]
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp - 0x20]
call sym.std::sys::pal::windows::fs::File::open::hc26adf99dd0cd861
test rax, rax
je 0x14005813d
mov rax, qword [rbp + 0x60]
mov qword [rax + 8], rdx
mov qword [rax], 1
test r12, r12
jne 0x140058061
jmp 0x140058076
mov rax, qword [rbp + 0x60]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
test r12, r12
je 0x140058084
mov r8d, 1
mov rcx, qword [rbp + 0x80]
mov rdx, r12
call sym.__rust_dealloc
jmp 0x140058084
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp]
mov rsi, rdi
jmp 0x140058182
xor ecx, ecx
mov r12, qword [rbp + 0x70]
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
jmp 0x1400581a2
xor r14d, r14d
mov r15b, 1
mov rcx, r14
mov rdx, r13
mov r12, qword [rbp + 0x70]
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
ud2