Function at 0x1004ba50
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, 0x40080002
lea edi, [esp + 0x50]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x80], edx
mov dword [esp], 0
mov dword [esp + 0x28], 8
mov dword [esp + 0x48], 0
sub eax, edx
mov dword [esp + 0x88], eax
nop word cs:[eax + eax]
nop dword [eax]
call sub.kernel32.dll_GetCurrentProcessId
mov dword [esp + 0x8c], eax
mov esi, dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xorps xmm0, xmm0
mov eax, dword [0x100ff0c0]
test eax, eax
jne 0x1004badf
nop
movaps xmmword [esp + 0x50], xmm0
push 0x10
push edi
call esi
mov eax, dword [esp + 0x50]
xorps xmm0, xmm0
mov dword [0x100ff0c0], eax
mov eax, dword [0x100ff0c0]
test eax, eax
je 0x1004bac0
mov eax, 1
lock xadd dword [0x100ff0c0], eax
mov dword [esp + 0x50], 0x100f0e60
mov dword [esp + 0x54], 2
mov dword [esp + 0x60], 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::h8917667e5366c09f
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x44], sym.core::fmt::num::imp::__LT_impl_u20_core..fmt..Display_u20_for_u20_u32_GT_::fmt::h8917667e5366c09f
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 2
push edi
lea eax, [esp + 0x94]
push eax
call sym.alloc::fmt::format::format_inner::h615817f0e0a04e8e
add esp, 8
cmp dword [esp + 0x10], 0
mov ecx, dword [esp]
setne al
and cl, al
cmp cl, 1
jne 0x1004bb6f
push dword [esp + 0xc]
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0x90]
lea edx, [ecx + eax]
test eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], edx
je 0x1004bbc0
movzx ebx, byte [ecx]
test bl, bl
js 0x1004bbf0
lea eax, [ecx + 1]
mov dword [esp + 4], eax
jmp 0x1004bc4e
mov dword [esp + 0x14], 0
mov dword [esp + 8], 4
mov esi, 8
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0
xor ebx, ebx
jmp 0x1004bc9b
movzx edx, byte [ecx + 1]
mov eax, ebx
and eax, 0x1f
and edx, 0x3f
cmp bl, 0xdf
jbe 0x1004bc40
mov esi, ecx
movzx ecx, byte [ecx + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp bl, 0xf0
jb 0x1004bf94
movzx ebx, byte [esi + 3]
and eax, 7
shl ecx, 6
lea edx, [esi + 4]
shl eax, 0x12
mov dword [esp + 4], edx
and ebx, 0x3f
or ebx, ecx
or ebx, eax
cmp ebx, 0xffff
jbe 0x1004bc4e
jmp 0x1004bfae
shl eax, 6
add ecx, 2
or eax, edx
mov dword [esp + 4], ecx
mov ebx, eax
mov eax, 1
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x2c]
mov edx, 0xffffffff
sub ecx, dword [esp + 4]
add ecx, 3
cmovb ecx, edx
shr ecx, 2
add ecx, eax
mov eax, 3
cmp ecx, 4
cmovae eax, ecx
cmp ecx, 0x3ffffffe
lea esi, [eax + eax + 2]
ja 0x1004c13c
inc eax
mov dword [esp + 8], eax
mov ax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [0x100f2e44]
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x1004c135
mov edi, eax
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov ecx, 1
mov word [edi], bx
mov ebx, dword [esp + 4]
inc eax
mov dword [esp + 0x4c], eax
jmp 0x1004bcfa
mov edx, eax
mov eax, dword [esp]
mov word [edi + ecx*2], ax
inc ecx
test ebx, ebx
je 0x1004bd60
test dx, dx
je 0x1004bd40
xor eax, eax
mov dword [esp], edx
cmp ecx, esi
jne 0x1004bcf0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], edi
mov edi, ecx
mov ecx, 0xffffffff
mov dword [esp + 4], ebx
sub edx, ebx
add edx, 3
cmovb edx, ecx
movzx ecx, word [esp + 0x1c]
shr edx, 2
cmp ax, 1
sbb ecx, 0xffffffff
add ecx, edx
mov edx, eax
jmp 0x1004bd92
cmp ebx, dword [esp + 0x2c]
je 0x1004bd60
movzx eax, byte [ebx]
test al, al
mov dword [esp], eax
js 0x1004be4c
inc ebx
xor eax, eax
jmp 0x1004bd08
cmp word [esp + 0x1c], 1
jne 0x1004bf00
mov dword [esp + 0x20], edi
mov edi, ecx
cmp ecx, esi
mov ecx, 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp], 0
jne 0x1004be00
mov dword [esp + 8], esi
lea esi, [ecx + 1]
xor eax, eax
mov dword [esp + 0x14], edx
add esi, edi
jb 0x1004c11f
lea esi, [ecx + edi + 1]
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], edi
add ecx, ecx
cmp ecx, esi
cmova esi, ecx
cmp esi, 5
jae 0x1004bdc4
mov esi, 4
mov edi, dword [esp + 4]
test esi, esi
js 0x1004c11f
lea ebx, [esi + esi]
cmp ebx, 0x7ffffffe
ja 0x1004c129
cmp dword [esp + 8], 0
je 0x1004be0f
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov eax, 2
mov dword [esp + 0x58], ecx
jmp 0x1004be11
mov ecx, edi
mov edi, dword [esp + 0x20]
xor eax, eax
xor ebx, ebx
jmp 0x1004bcf5
xor eax, eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x38]
mov edx, 2
push eax
push ebx
call sym.alloc::raw_vec::finish_grow::h5d63371c85173a49
add esp, 8
cmp dword [esp + 0x38], 1
je 0x1004c121
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, edi
mov edi, eax
jmp 0x1004bcf2
movzx edx, byte [ebx + 1]
and eax, 0x1f
and edx, 0x3f
cmp byte [esp], 0xdf
mov dword [esp + 8], edx
jbe 0x1004bea8
mov edx, dword [esp + 8]
mov dword [esp + 0x18], ecx
movzx ecx, byte [ebx + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp byte [esp], 0xf0
jb 0x1004bebc
movzx edx, byte [ebx + 3]
and eax, 7
shl ecx, 6
add ebx, 4
shl eax, 0x12
and edx, 0x3f
or edx, ecx
or edx, eax
mov eax, edx
cmp eax, 0xffff
ja 0x1004becd
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
xor eax, eax
jmp 0x1004bd08
shl eax, 6
add ebx, 2
add eax, dword [esp + 8]
mov dword [esp], eax
xor eax, eax
jmp 0x1004bd08
shl eax, 0xc
add ebx, 3
or ecx, eax
mov eax, ecx
cmp eax, 0xffff
jbe 0x1004be9a
lea ecx, [eax + 0xff0000]
and eax, 0x3ff
shr ecx, 0xa
or eax, 0xdc00
or ecx, 0xd800
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
jmp 0x1004bd08
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esp + 0x3c]
push dword [esp + 0xa0]
mov ebx, edi
push edi
call sub.kernel32.dll_CreateNamedPipeW
cmp eax, 0xffffffff
mov dword [esp], eax
jne 0x1004c02c
call sub.kernel32.dll_GetLastError
cmp dword [esp + 0x4c], 9
lea edi, [esp + 0x50]
jg 0x1004bfd9
cmp eax, 5
jne 0x1004bf60
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
jmp 0x1004bf74
cmp dword [esp + 0x28], 0
je 0x1004bfd9
cmp eax, 0x57
mov dword [esp + 0x28], 0
jne 0x1004bfd9
mov al, 1
test esi, esi
mov dword [esp], eax
je 0x1004baa0
push ebx
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
jmp 0x1004baa0
shl eax, 0xc
lea edx, [esi + 3]
or ecx, eax
mov dword [esp + 4], edx
mov ebx, ecx
cmp ebx, 0xffff
jbe 0x1004bc4e
lea ecx, [ebx + 0xff0000]
and ebx, 0x3ff
mov eax, 2
shr ecx, 0xa
or ebx, 0xdc00
mov dword [esp + 0x14], ebx
or ecx, 0xd800
mov ebx, ecx
jmp 0x1004bc5b
mov ecx, dword [esp + 0x24]
test esi, esi
mov esi, dword [esp + 0x10]
mov edi, dword [esp]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x1004c003
push ebx
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
test esi, esi
je 0x1004c018
push dword [esp + 0xc]
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
cmp edi, 0xffffffff
je 0x1004c0e5
push edi
call sub.kernel32.dll_CloseHandle
jmp 0x1004c0e5
test esi, esi
mov esi, dword [esp + 0x10]
lea edi, [esp + 0x50]
je 0x1004c046
push ebx
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 0x80]
mov dword [esp + 0x50], 0
mov dword [esp + 0x6c], 0
mov word [esp + 0x70], 0
xorps xmm0, xmm0
lea ebx, [esp + 0x38]
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 1
mov byte [esp + 0x6d], al
xor al, 1
mov byte [esp + 0x6c], al
movups xmmword [esp + 0x58], xmm0
mov dword [esp + 0x68], ebx
mov bl, 1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x30]
push edi
push dword [esp + 0x88]
call sym.std::sys::pal::windows::fs::File::open::h2b59cc016f8293b2
add esp, 8
movzx eax, byte [esp + 0x30]
mov edi, dword [esp]
cmp al, 4
jne 0x1004c0ed
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
test esi, esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx], 0
je 0x1004c0e5
push dword [esp + 0xc]
push 0
push dword [0x100ff0c8]
call sub.kernel32.dll_HeapFree
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [esp + 0x33]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
mov byte [edx + 7], cl
movzx ecx, word [esp + 0x31]
mov word [edx + 5], cx
mov byte [edx + 4], al
mov dword [edx + 8], ebx
mov dword [edx], 1
test esi, esi
jne 0x1004c007
jmp 0x1004c018
jmp 0x1004c129
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push edx
push eax
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
add esp, 8
jmp 0x1004c14e
mov eax, 2
jmp 0x1004c13e
xor eax, eax
xor ebx, ebx
push esi
push eax
mov esi, dword [esp + 0x18]
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
add esp, 8
ud2