Function at 0x10043410
Capabilities:
Create pipe
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, 0x40080002
mov bl, 1
lea esi, [esp + 0x50]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x28], 8
sub eax, edx
mov dword [esp + 0x7c], eax
nop dword [eax + eax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [esp + 0x8c], eax
mov edi, dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xorps xmm0, xmm0
mov eax, dword [0x1008b09c]
test eax, eax
jne 0x1004348f
nop
movaps xmmword [esp + 0x50], xmm0
push 0x10
push esi
call edi
mov eax, dword [esp + 0x50]
xorps xmm0, xmm0
mov dword [0x1008b09c], eax
mov eax, dword [0x1008b09c]
test eax, eax
je 0x10043470
mov eax, 1
lea edi, [esp + 0x3c]
lock xadd dword [0x1008b09c], eax
mov dword [esp + 0x50], 0x1007cca0
mov dword [esp + 0x54], 2
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], 2
mov dword [esp + 0x34], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], fcn.10007990
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], fcn.10007990
lea ecx, [esp + 0x90]
mov edx, esi
call fcn.10007410
cmp dword [esp + 0x24], 0
sete al
or bl, al
test bl, 1
jne 0x10043516
mov ecx, dword [esp + 0x10]
mov edx, 1
call fcn.10006c20
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
lea esi, [ecx + edx]
test edx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x30], esi
je 0x10043560
movzx ebx, byte [ecx]
test bl, bl
js 0x10043590
mov dword [esp + 0xc], ebx
lea ebx, [ecx + 1]
jmp 0x100435ed
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov edi, 8
xor ebx, ebx
xor esi, esi
mov dword [esp + 0xc], 0
jmp 0x10043634
movzx edx, byte [ecx + 1]
mov eax, ebx
and eax, 0x1f
and edx, 0x3f
cmp bl, 0xdf
jbe 0x100435e1
mov esi, ecx
movzx ecx, byte [ecx + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp bl, 0xf0
jb 0x10043921
movzx edx, byte [esi + 3]
and eax, 7
shl ecx, 6
lea ebx, [esi + 4]
shl eax, 0x12
and edx, 0x3f
or edx, ecx
or edx, eax
cmp edx, 0xffff
ja 0x10043937
mov dword [esp + 0xc], edx
jmp 0x100435ed
shl eax, 6
lea ebx, [ecx + 2]
or eax, edx
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x30]
mov edx, 0xffffffff
sub ecx, ebx
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 edi, [eax + eax + 2]
ja 0x10043ab0
inc eax
mov si, 1
mov dword [esp + 0x14], eax
movzx eax, byte [0x1008b0d4]
xor ecx, ecx
mov edx, edi
call fcn.10045ab0
test eax, eax
je 0x10043aa9
mov ecx, eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov edi, esi
mov dword [esp + 0x1c], ecx
inc eax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], 1
mov word [ecx], ax
mov ecx, dword [esp + 0x18]
jmp 0x1004369f
mov esi, edx
mov eax, ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov word [ecx + edx*2], ax
inc edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], edx
mov edx, esi
mov esi, dword [esp + 0xc]
test ebx, ebx
je 0x10043700
test cx, cx
je 0x100436e0
mov dword [esp + 0x20], 0
cmp esi, edx
jne 0x10043680
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov ecx, 0xffffffff
sub eax, ebx
add eax, 3
cmovb eax, ecx
movzx ecx, di
shr eax, 2
cmp word [esp + 0x20], 1
sbb eax, 0xffffffff
add eax, ecx
jmp 0x10043720
cmp ebx, dword [esp + 0x30]
je 0x10043700
movzx ecx, byte [ebx]
test cl, cl
js 0x100437d4
inc ebx
jmp 0x100436ac
cmp di, 1
jne 0x10043880
xor eax, eax
cmp esi, edx
jne 0x10043780
mov dword [esp + 0x20], ecx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x18], 0
lea ecx, [eax + 1]
mov dword [esp + 0x14], edx
add ecx, esi
jb 0x10043aa0
lea esi, [eax + esi + 1]
lea ecx, [edx + edx]
mov dword [esp + 0x88], edi
mov edi, edx
mov dword [esp + 0x84], ebx
mov ebx, 4
cmp ecx, esi
cmova esi, ecx
xor edx, edx
cmp esi, 0x40000000
setb al
cmp esi, 5
cmovb esi, ebx
test edi, edi
je 0x1004378f
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ecx
mov ecx, 2
jmp 0x10043791
mov esi, edx
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x20], ecx
jmp 0x10043684
xor ecx, ecx
mov dl, al
lea ebx, [esi + esi]
mov dword [esp + 0x54], ecx
add edx, edx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x3c]
push eax
push ebx
call fcn.1000d030
add esp, 8
cmp dword [esp + 0x3c], 0
mov edi, dword [esp + 0x88]
jne 0x10043a96
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x18]
jmp 0x10043688
mov dword [esp + 0x14], edx
movzx edx, byte [ebx + 1]
mov eax, ecx
and eax, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x10043817
mov esi, ecx
movzx ecx, byte [ebx + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
mov edx, esi
cmp dl, 0xf0
jb 0x10043836
movzx edx, byte [ebx + 3]
shl ecx, 6
and eax, 7
add ebx, 4
shl eax, 0x12
and edx, 0x3f
or edx, ecx
mov ecx, edx
jmp 0x1004383c
shl eax, 6
mov esi, dword [esp + 0xc]
add ebx, 2
mov dword [esp + 0x20], 0
or eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
jmp 0x100436b4
add ebx, 3
shl eax, 0xc
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
or ecx, eax
cmp ecx, 0xffff
jbe 0x100436ac
lea eax, [ecx + 0xff0000]
and ecx, 0x3ff
shr eax, 0xa
or ecx, 0xdc00
mov dword [esp + 0x20], ecx
or eax, 0xd800
mov ecx, eax
jmp 0x100436b4
mov ebx, edx
push 0
push 0
push 0x10000
push 0x10000
push 1
mov esi, dword [esp + 0x3c]
push esi
push dword [esp + 0x94]
mov edi, dword [esp + 0x38]
push edi
call sub.KERNEL32.dll_CreateNamedPipeW
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10043993
mov dword [esp + 0x28], esi
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [esp + 0x80]
lea esi, [esp + 0x50]
mov edx, ebx
cmp ecx, 9
jg 0x10043964
cmp eax, 5
jne 0x100438f0
mov eax, ecx
mov dword [esp + 0x4c], ecx
jmp 0x10043904
cmp dword [esp + 0x28], 0
je 0x10043964
cmp eax, 0x57
mov dword [esp + 0x28], 0
jne 0x10043964
xor ebx, ebx
test edx, edx
je 0x10043450
mov ecx, edi
mov edx, 2
call fcn.10006c20
xor ebx, ebx
jmp 0x10043450
shl eax, 0xc
lea ebx, [esi + 3]
or ecx, eax
mov edx, ecx
cmp edx, 0xffff
jbe 0x100435db
lea ecx, [edx + 0xff0000]
and edx, 0x3ff
mov eax, 2
shr ecx, 0xa
or edx, 0xdc00
mov dword [esp + 0x18], edx
or ecx, 0xd800
mov dword [esp + 0xc], ecx
jmp 0x100435fa
mov ecx, dword [esp + 0x2c]
mov esi, 0xffffffff
test edx, edx
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x10043a6c
mov ecx, edi
mov edx, 2
call fcn.10006c20
jmp 0x10043a6c
test ebx, ebx
lea esi, [esp + 0x50]
je 0x100439a7
mov ecx, edi
mov edx, 2
call fcn.10006c20
mov eax, dword [esp + 0x74]
mov dword [esp + 0x50], 0
mov dword [esp + 0x6c], 0
mov word [esp + 0x70], 0
xorps xmm0, xmm0
lea edi, [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
mov byte [esp + 0x6d], al
xor al, 1
mov byte [esp + 0x6c], al
movups xmmword [esp + 0x58], xmm0
mov dword [esp + 0x68], edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push esi
push dword [esp + 0x7c]
call fcn.10037b90
add esp, 8
movzx eax, byte [esp + 0x34]
cmp al, 4
jne 0x10043a43
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov dword [ecx], 0
je 0x10043a8e
mov ecx, dword [esp + 0x10]
mov edx, 1
call fcn.10006c20
jmp 0x10043a8e
movzx ecx, byte [esp + 0x37]
mov edx, dword [esp + 0x2c]
movzx edi, word [esp + 0x35]
mov esi, dword [esp + 0x38]
mov byte [edx + 7], cl
mov word [edx + 5], di
mov byte [edx + 4], al
mov dword [edx + 8], esi
mov esi, dword [esp + 0xc]
mov dword [edx], 1
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x24], 0
je 0x10043a81
mov edx, 1
call fcn.10006c20
cmp dword [esp + 0xc], 0xffffffff
je 0x10043a8e
push esi
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
jmp 0x10043aa2
xor ecx, ecx
call fcn.10006fb0
jmp 0x10043abb
mov ecx, 2
jmp 0x10043ab2
xor ecx, ecx
mov bl, 1
mov edx, edi
call fcn.10006fb0
ud2