Function at 0x43ade0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov edi, dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
mov eax, 0x40080002
mov bl, 1
lea esi, [esp + 0x50]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x2c], 8
sub eax, edx
mov dword [esp + 0x84], eax
nop word cs:[eax + eax]
nop dword [eax + eax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [esp + 0x8c], eax
xorps xmm0, xmm0
mov eax, dword [0x4a50c4]
test eax, eax
jne 0x43ae6f
nop dword [eax + eax]
movaps xmmword [esp + 0x50], xmm0
push 0x10
push esi
call edi
mov eax, dword [esp + 0x50]
xorps xmm0, xmm0
mov dword [0x4a50c4], eax
mov eax, dword [0x4a50c4]
test eax, eax
je 0x43ae50
mov eax, 1
lock xadd dword [0x4a50c4], eax
mov dword [esp + 0x50], 0x49c96c
mov dword [esp + 0x54], 2
mov dword [esp + 0x60], 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], fcn.00403470
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], fcn.00403470
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 2
lea ecx, [esp + 0x90]
mov edx, esi
call fcn.00402f90
cmp dword [esp + 0x18], 0
sete al
or bl, al
test bl, 1
jne 0x43aef6
mov ecx, dword [esp + 8]
mov edx, 1
call fcn.004028a0
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], ecx
lea edx, [ecx + eax]
test eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x30], edx
je 0x43af40
movzx ebx, byte [ecx]
test bl, bl
js 0x43af70
lea eax, [ecx + 1]
mov dword [esp + 0xc], eax
jmp 0x43afce
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 4
mov esi, 8
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], 0
xor ebx, ebx
jmp 0x43b01a
movzx edx, byte [ecx + 1]
mov eax, ebx
and eax, 0x1f
and edx, 0x3f
cmp bl, 0xdf
jbe 0x43afc0
mov esi, ecx
movzx ecx, byte [ecx + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp bl, 0xf0
jb 0x43b303
movzx ebx, byte [esi + 3]
and eax, 7
shl ecx, 6
lea edx, [esi + 4]
shl eax, 0x12
mov dword [esp + 0xc], edx
and ebx, 0x3f
or ebx, ecx
or ebx, eax
cmp ebx, 0xffff
jbe 0x43afce
jmp 0x43b31d
shl eax, 6
add ecx, 2
or eax, edx
mov dword [esp + 0xc], ecx
mov ebx, eax
mov dword [esp + 0x14], 0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov edx, 0xffffffff
sub ecx, dword [esp + 0xc]
add ecx, 3
cmovb ecx, edx
shr ecx, 2
add ecx, eax
mov eax, 2
cmp ecx, 3
cmovae eax, ecx
cmp ecx, 0x3ffffffd
lea esi, [eax + eax + 4]
ja 0x43b4b0
add eax, 2
mov dword [esp + 0x1c], eax
mov ax, 1
mov dword [esp + 0x24], eax
movzx eax, byte [0x4a5058]
mov ecx, esi
call fcn.0043cf80
test eax, eax
je 0x43b4a9
mov ecx, eax
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov word [ecx], bx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, 1
inc eax
mov dword [esp + 0x88], eax
jmp 0x43b07d
mov ebx, eax
mov eax, dword [esp + 0x10]
mov edi, edx
mov edx, dword [esp + 4]
mov word [eax + ecx*2], dx
mov edx, edi
mov edi, dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
mov dword [esp + 0x10], eax
inc ecx
test esi, esi
je 0x43b0f0
test bx, bx
je 0x43b0d0
xor eax, eax
mov dword [esp + 4], ebx
cmp ecx, edx
jne 0x43b060
mov edi, dword [esp + 0x30]
mov dword [esp + 0xc], esi
mov ebx, eax
sub edi, esi
mov esi, ecx
mov ecx, 0xffffffff
add edi, 3
cmovb edi, ecx
mov ecx, esi
mov esi, dword [esp + 0x24]
shr edi, 2
cmp ax, 1
mov eax, dword [esp + 0xc]
sbb edi, 0xffffffff
cmp si, 1
sbb edi, 0xffffffff
jmp 0x43b11a
cmp esi, dword [esp + 0x30]
je 0x43b0f0
movzx ebx, byte [esi]
test bl, bl
js 0x43b1be
mov dword [esp + 4], ebx
inc esi
xor eax, eax
jmp 0x43b08c
cmp word [esp + 0x24], 1
jne 0x43b270
cmp ecx, edx
mov eax, 0
mov edi, 0
mov dword [esp + 0x24], 0
mov dword [esp + 4], 0
jne 0x43b170
inc edi
mov dword [esp + 0x1c], edx
add edi, ecx
jb 0x43b4a0
mov dword [esp + 0x20], ecx
lea ecx, [edx + edx]
mov esi, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], eax
mov ebx, 4
cmp ecx, edi
cmova edi, ecx
xor edx, edx
cmp edi, 0x40000000
setb al
cmp edi, 5
cmovb edi, ebx
test esi, esi
je 0x43b17f
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ecx
mov ecx, 2
jmp 0x43b181
mov eax, dword [esp + 0x10]
mov edi, edx
xor edx, edx
xor esi, esi
jmp 0x43b06c
xor ecx, ecx
mov dl, al
lea ebx, [edi + edi]
mov dword [esp + 0x54], ecx
add edx, edx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x3c]
push eax
push ebx
call fcn.00407fd0
add esp, 8
cmp dword [esp + 0x3c], 0
jne 0x43b496
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
jmp 0x43b068
mov edi, edx
movzx edx, byte [esi + 1]
mov eax, ebx
and eax, 0x1f
and edx, 0x3f
cmp bl, 0xdf
jbe 0x43b1ff
mov dword [esp + 0x20], ecx
movzx ecx, byte [esi + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp bl, 0xf0
jb 0x43b214
movzx ebx, byte [esi + 3]
and eax, 7
shl ecx, 6
add esi, 4
shl eax, 0x12
and ebx, 0x3f
or ebx, ecx
or ebx, eax
jmp 0x43b21e
shl eax, 6
add esi, 2
or eax, edx
mov edx, edi
mov dword [esp + 4], eax
xor eax, eax
jmp 0x43b08c
shl eax, 0xc
add esi, 3
or ecx, eax
mov ebx, ecx
mov edx, edi
cmp ebx, 0xffff
jbe 0x43b252
lea ecx, [ebx + 0xff0000]
and ebx, 0x3ff
shr ecx, 0xa
or ebx, 0xdc00
or ecx, 0xd800
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x20]
mov eax, ebx
jmp 0x43b08c
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ebx
xor eax, eax
jmp 0x43b08c
mov ebx, edx
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esp + 0x40]
push dword [esp + 0x9c]
push dword [esp + 0x2c]
call sub.KERNEL32.dll_CreateNamedPipeW
cmp eax, 0xffffffff
mov dword [esp + 4], eax
jne 0x43b3a0
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [esp + 0x88]
lea esi, [esp + 0x50]
mov edx, ebx
cmp ecx, 0xa
jge 0x43b348
cmp eax, 5
jne 0x43b2d0
mov eax, ecx
mov dword [esp + 0x4c], ecx
jmp 0x43b2e4
cmp dword [esp + 0x2c], 0
je 0x43b348
cmp eax, 0x57
mov dword [esp + 0x2c], 0
jne 0x43b348
xor ebx, ebx
test edx, edx
je 0x43ae30
mov ecx, dword [esp + 0x10]
mov edx, 2
call fcn.004028a0
xor ebx, ebx
jmp 0x43ae30
shl eax, 0xc
lea edx, [esi + 3]
or ecx, eax
mov dword [esp + 0xc], edx
mov ebx, ecx
cmp ebx, 0xffff
jbe 0x43afce
lea ecx, [ebx + 0xff0000]
and ebx, 0x3ff
mov eax, 1
shr ecx, 0xa
or ebx, 0xdc00
mov dword [esp + 0x14], ebx
or ecx, 0xd800
mov ebx, ecx
jmp 0x43afd8
mov ecx, dword [esp + 0x28]
mov esi, 0xffffffff
test edx, edx
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 1
je 0x43b373
mov ecx, dword [esp + 0x10]
mov edx, 2
call fcn.004028a0
mov ecx, dword [esp + 8]
mov edi, dword [esp + 4]
cmp dword [esp + 0x18], 0
je 0x43b38c
mov edx, 1
call fcn.004028a0
cmp edi, 0xffffffff
je 0x43b453
push esi
call sub.KERNEL32.dll_CloseHandle
jmp 0x43b453
test ebx, ebx
lea esi, [esp + 0x50]
je 0x43b3b6
mov ecx, dword [esp + 0x10]
mov edx, 2
call fcn.004028a0
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x6c], 0
mov word [esp + 0x70], 0
xorps xmm0, xmm0
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
lea eax, [esp + 0x3c]
movups xmmword [esp + 0x58], xmm0
mov dword [esp + 0x68], eax
mov edx, dword [esp + 8]
lea ecx, [esp + 0x34]
push esi
push dword [esp + 0x84]
mov edi, dword [esp + 0xc]
call fcn.0042f060
add esp, 8
movzx eax, byte [esp + 0x34]
cmp al, 4
jne 0x43b45b
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx], 0
je 0x43b453
mov ecx, dword [esp + 8]
mov edx, 1
call fcn.004028a0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [esp + 0x37]
mov edx, dword [esp + 0x28]
mov esi, edi
mov byte [edx + 7], cl
movzx ecx, word [esp + 0x35]
mov word [edx + 5], cx
mov ecx, dword [esp + 0x38]
mov byte [edx + 4], al
mov dword [edx + 8], ecx
mov ecx, dword [esp + 8]
mov dword [edx], 1
cmp dword [esp + 0x18], 0
jne 0x43b382
jmp 0x43b38c
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
jmp 0x43b4a2
xor ecx, ecx
call fcn.00402bb0
jmp 0x43b4bb
mov ecx, 2
jmp 0x43b4b2
xor ecx, ecx
mov bl, 1
mov edx, esi
call fcn.00402bb0
ud2