Function at 0x101a3480
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101ad510
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x18]
lea ebx, [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], 8
mov dword [ebp - 0x68], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, 0x40080002
sub eax, edx
mov dword [ebp - 0x9c], eax
nop word cs:[eax + eax]
nop dword [eax + eax]
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 0xa8], eax
mov edi, dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
mov eax, dword [0x10284c08]
test eax, eax
jne 0x101a3533
nop dword [eax + eax]
mov dword [ebp - 0x90], 0
push 4
push ebx
call edi
mov eax, dword [ebp - 0x90]
mov dword [0x10284c08], eax
mov eax, dword [0x10284c08]
test eax, eax
je 0x101a3510
mov eax, 1
lock xadd dword [0x10284c08], eax
mov dword [ebp - 0x90], 0x1024a52c
mov dword [ebp - 0x8c], 2
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x22], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x60], fcn.101bfa60
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], fcn.101bfa60
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x84], 2
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x21], al
push ebx
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0x34], esi
call fcn.101b4250
add esp, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
test edx, edx
setne al
and cl, al
cmp cl, 1
jne 0x101a35db
push 1
push edx
push dword [ebp - 0x30]
call fcn.10013780
add esp, 0xc
mov eax, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xb4]
lea ebx, [ebp - 0x90]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x30], edi
lea ecx, [edi + eax]
test eax, eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x4c], ecx
je 0x101a3620
movzx ecx, byte [edi]
movzx esi, cl
test cl, cl
js 0x101a3650
lea eax, [edi + 1]
mov dword [ebp - 0x2c], eax
jmp 0x101a36a6
mov dword [ebp - 0x20], 0
mov esi, 4
mov edi, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
jmp 0x101a36ee
movzx edx, byte [edi + 1]
and esi, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x101a369b
movzx eax, byte [edi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x101a39c8
movzx edx, byte [edi + 3]
and esi, 7
shl eax, 6
lea ecx, [edi + 4]
shl esi, 0x12
mov dword [ebp - 0x2c], ecx
and edx, 0x3f
or edx, eax
or esi, edx
cmp esi, 0xffff
jbe 0x101a36a6
jmp 0x101a39df
shl esi, 6
lea eax, [edi + 2]
mov dword [ebp - 0x2c], eax
or esi, edx
mov dword [ebp - 0x28], esi
mov eax, 1
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x4c]
mov edx, 0xffffffff
mov esi, 3
sub ecx, dword [ebp - 0x2c]
add ecx, 3
cmovb ecx, edx
shr ecx, 2
add ecx, eax
cmp ecx, 4
cmovae esi, ecx
cmp ecx, 0x3ffffffe
lea edi, [esi + esi + 2]
ja 0x101a3ba6
inc esi
mov ax, 1
mov dword [ebp - 0x38], eax
movzx eax, byte [0x10284b49]
push 2
push edi
call fcn.10013770
add esp, 8
test eax, eax
je 0x101a3b9f
mov edx, eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x2c]
mov edi, 1
inc eax
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x28]
mov word [edx], ax
mov eax, dword [ebp - 0x20]
jmp 0x101a3742
mov ebx, esi
mov esi, dword [ebp - 0x20]
mov word [edx + edi*2], si
mov esi, ebx
inc edi
lea ebx, [ebp - 0x90]
test ecx, ecx
je 0x101a37b0
test ax, ax
je 0x101a3790
mov ebx, edi
mov edi, eax
mov dword [ebp - 0x20], edi
xor eax, eax
mov edi, ebx
cmp edi, esi
jne 0x101a3730
mov dword [ebp - 0x28], edx
mov edx, ecx
mov ecx, dword [ebp - 0x4c]
movzx ebx, word [ebp - 0x38]
mov dword [ebp - 0x2c], edx
sub ecx, edx
mov edx, 0xffffffff
add ecx, 3
cmovb ecx, edx
shr ecx, 2
cmp ax, 1
sbb ecx, 0xffffffff
add ecx, ebx
jmp 0x101a37dc
cmp ecx, dword [ebp - 0x4c]
je 0x101a37b0
mov ebx, ecx
movzx ecx, byte [ecx]
movzx eax, cl
test cl, cl
js 0x101a388b
inc ebx
mov dword [ebp - 0x20], eax
xor eax, eax
mov ecx, ebx
jmp 0x101a3756
cmp word [ebp - 0x38], 1
mov dword [ebp - 0x28], edx
jne 0x101a3940
cmp edi, esi
mov ecx, 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
jne 0x101a3840
mov ebx, edi
lea edx, [ecx + 1]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x6c], esi
add edx, ebx
jb 0x101a3b7d
mov dword [ebp - 0xa4], ebx
lea ebx, [ecx + ebx + 1]
lea ecx, [esi + esi]
cmp ecx, ebx
cmova ebx, ecx
cmp ebx, 5
jae 0x101a380c
mov ebx, 4
test ebx, ebx
js 0x101a3b7d
lea esi, [ebx + ebx]
cmp esi, 0x7ffffffe
ja 0x101a3b8c
cmp dword [ebp - 0x6c], 0
je 0x101a384e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x90], eax
mov eax, 2
mov dword [ebp - 0x88], ecx
jmp 0x101a3850
mov edx, dword [ebp - 0x28]
mov ebx, esi
xor esi, esi
xor ecx, ecx
jmp 0x101a3735
xor eax, eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x64]
mov edx, 2
push eax
push esi
call fcn.10194f50
add esp, 8
cmp dword [ebp - 0x64], 1
je 0x101a3b7f
mov eax, edi
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0xa4]
jmp 0x101a3732
mov dword [ebp - 0x28], edx
movzx edx, byte [ebx + 1]
and eax, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x101a38fe
mov dword [ebp - 0x20], eax
movzx eax, byte [ebx + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
mov edx, eax
jb 0x101a3915
movzx ecx, byte [ebx + 3]
mov eax, dword [ebp - 0x20]
shl edx, 6
add ebx, 4
and eax, 7
and ecx, 0x3f
shl eax, 0x12
or ecx, edx
or eax, ecx
mov edx, dword [ebp - 0x28]
mov ecx, ebx
cmp eax, 0xffff
jbe 0x101a392c
mov ebx, ecx
lea ecx, [eax + 0xff0000]
and eax, 0x3ff
shr ecx, 0xa
or eax, 0xdc00
or ecx, 0xd800
mov dword [ebp - 0x20], ecx
mov ecx, ebx
jmp 0x101a3756
shl eax, 6
add ebx, 2
or eax, edx
mov edx, dword [ebp - 0x28]
mov ecx, ebx
mov dword [ebp - 0x20], eax
xor eax, eax
jmp 0x101a3756
mov eax, dword [ebp - 0x20]
add ebx, 3
shl eax, 0xc
or eax, edx
mov edx, dword [ebp - 0x28]
mov ecx, ebx
cmp eax, 0xffff
ja 0x101a38d9
mov dword [ebp - 0x20], eax
xor eax, eax
jmp 0x101a3756
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [ebp - 0x48]
push dword [ebp - 0x9c]
mov edi, edx
push edx
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x101a3a5f
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x34]
cmp ecx, 9
jg 0x101a3a0c
cmp eax, 5
jne 0x101a3990
mov dword [ebp - 0x68], ecx
jmp 0x101a39a2
cmp dword [ebp - 0x48], 0
je 0x101a3a0c
cmp eax, 0x57
mov dword [ebp - 0x48], 0
jne 0x101a3a0c
mov ecx, edi
mov al, 1
mov edi, esi
test esi, esi
mov esi, edx
mov dword [ebp - 0x20], eax
je 0x101a34f0
add edi, edi
push 2
push edi
push ecx
call fcn.10013780
add esp, 0xc
jmp 0x101a34f0
shl esi, 0xc
lea ecx, [edi + 3]
mov dword [ebp - 0x2c], ecx
or esi, eax
cmp esi, 0xffff
jbe 0x101a36a6
lea ecx, [esi + 0xff0000]
and esi, 0x3ff
mov eax, 2
or esi, 0xdc00
shr ecx, 0xa
mov edx, esi
or ecx, 0xd800
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], edx
jmp 0x101a36b5
mov ecx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x30]
mov edi, esi
test esi, esi
mov esi, edx
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x101a3a37
add edi, edi
push 2
push edi
push dword [ebp - 0x28]
call fcn.10013780
add esp, 0xc
test esi, esi
je 0x101a3a47
push 1
push esi
push ebx
call fcn.10013780
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101a3b35
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x101a3b35
mov ecx, eax
test esi, esi
mov eax, esi
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
je 0x101a3a89
add eax, eax
push 2
push eax
push edi
mov edi, edx
call fcn.10013780
mov ecx, dword [ebp - 0x20]
mov edx, edi
add esp, 0xc
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x74], 0
mov word [ebp - 0x70], 0
xorps xmm0, xmm0
lea edi, [ebp - 0x64]
mov dword [ebp - 0x64], 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x21], 1
mov byte [ebp - 0x22], 1
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x54]
mov edx, esi
mov byte [ebp - 0x73], al
xor al, 1
mov byte [ebp - 0x74], al
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], edi
push ebx
push dword [ebp - 0x98]
call fcn.101a1130
add esp, 8
movzx eax, byte [ebp - 0x54]
cmp al, 4
jne 0x101a3b49
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov dword [ecx], 0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
test ecx, ecx
je 0x101a3b35
push 1
push ecx
push eax
call fcn.10013780
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [ebp - 0x51]
mov edx, dword [ebp - 0x44]
movzx edi, word [ebp - 0x53]
mov esi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x30]
mov byte [edx + 7], cl
mov word [edx + 5], di
mov byte [edx + 4], al
mov dword [edx + 8], esi
mov esi, dword [ebp - 0x34]
mov dword [edx], 1
test esi, esi
jne 0x101a3a3b
jmp 0x101a3a47
jmp 0x101a3b8c
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x10], 2
push edx
push eax
call fcn.101cc661
add esp, 8
jmp 0x101a3bc6
mov eax, 2
jmp 0x101a3ba8
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov byte [ebp - 0x21], 1
mov byte [ebp - 0x22], 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
push edi
push eax
call fcn.101cc661
add esp, 8
ud2