Function at 0x41a360
Capabilities:
Create pipe
Generate random numbers via winapi
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, esp
mov dword [esi + 0xa8], ebp
mov dword [esi + 0xac], esp
mov dword [esi + 0xb8], 0xffffffff
mov dword [esi + 0xb4], 0x422c40
mov dword [esi + 0x28], ecx
lea eax, [esi + 0xb0]
mov dword [esi + 0x84], edx
mov dword [esi + 8], 0
mov dword [esi + 0x2c], 8
mov dword [esi + 0x58], 0
mov ecx, dword fs:[0]
mov dword [esi + 0xb0], ecx
mov dword fs:[0], eax
mov eax, 0x40080002
sub eax, edx
mov dword [esi + 0x88], eax
mov al, 1
nop word [eax + eax]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x8c], eax
mov edi, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov eax, dword [0x44da74]
test eax, eax
je 0x41a4f6
mov eax, 1
lock xadd dword [0x44da74], eax
mov dword [esi + 0x68], 0x441aec
mov dword [esi + 0x6c], 2
mov dword [esi + 0x60], 0
mov byte [esi + 7], 1
mov dword [esi + 0xb8], 1
mov dword [esi + 0x90], eax
mov eax, dword [esi + 8]
mov byte [esi + 6], al
lea eax, [esi + 0x8c]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x90]
mov dword [esi + 0x4c], fcn.0042e710
mov dword [esi + 0x50], eax
lea eax, [esi + 0x48]
mov dword [esi + 0x54], fcn.0042e710
mov dword [esi + 0x70], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x74], 2
push eax
lea eax, [esi + 0x14]
push eax
call fcn.00429f80
add esp, 8
movsd xmm0, qword [esi + 0x14]
mov eax, dword [esi + 0x1c]
test byte [esi + 0xc], 1
movsd qword [esi + 0x60], xmm0
mov dword [esi + 0x68], eax
jne 0x41a4a6
mov eax, dword [esi + 0x38]
test eax, eax
je 0x41a4a6
push 1
push eax
push dword [esi + 0x3c]
call fcn.00406dd0
add esp, 0xc
mov eax, dword [esi + 0x68]
movsd xmm0, qword [esi + 0x60]
mov dword [esi + 0x40], eax
movsd qword [esi + 0x38], xmm0
test eax, eax
mov ebx, dword [esi + 0x3c]
lea ecx, [ebx + eax]
mov dword [esi + 0x30], ecx
je 0x41a550
movzx ecx, byte [ebx]
movzx edi, cl
test cl, cl
js 0x41a570
mov dword [esi + 8], edi
inc ebx
jmp 0x41a5c3
mov eax, dword [esi + 0x60]
xchg dword [0x44da74], eax
mov eax, dword [0x44da74]
test eax, eax
jne 0x41a402
xorps xmm0, xmm0
movaps xmmword [esi + 0x60], xmm0
push 2
push 0x10
lea eax, [esi + 0x60]
push eax
push 0
call edi
test eax, eax
jns 0x41a4e0
mov eax, dword [esi + 8]
lea ecx, [esi + 0x98]
mov byte [esi + 7], 1
mov dword [esi + 0xb8], 1
mov byte [esi + 6], al
call fcn.0041f6c0
mov eax, dword [esi + 0x98]
mov edi, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xchg dword [0x44da74], eax
mov eax, dword [0x44da74]
test eax, eax
je 0x41a4f6
jmp 0x41a402
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
xor edi, edi
mov dword [esi + 0x20], 0
xor ecx, ecx
jmp 0x41a5eb
movzx edx, byte [ebx + 1]
and edi, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x41a5b8
movzx eax, byte [ebx + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x41a8c6
movzx ecx, byte [ebx + 3]
and edi, 7
shl eax, 6
add ebx, 4
shl edi, 0x12
and ecx, 0x3f
or ecx, eax
or edi, ecx
cmp edi, 0xffff
jbe 0x41a5c0
jmp 0x41a8da
shl edi, 6
add ebx, 2
or edi, edx
mov dword [esi + 8], edi
mov eax, 1
xor edi, edi
mov edx, dword [esi + 0x30]
mov ecx, 0xffffffff
mov dword [esi + 0x10], ebx
sub edx, ebx
add edx, 3
cmovb edx, ecx
mov ecx, edx
shr ecx, 2
add ecx, eax
mov ax, 1
mov dword [esi + 0x20], eax
cmp ecx, 4
mov eax, 3
mov dword [esi + 0x34], edi
cmovb ecx, eax
xor ebx, ebx
cmp ecx, 0x3fffffff
setb al
jae 0x41aabb
mov edi, ecx
lea ecx, [ecx + ecx + 2]
test ecx, ecx
js 0x41aa96
mov bl, al
add ebx, ebx
push ebx
mov dword [esi + 0xc], ecx
push ecx
call fcn.00406dc0
add esp, 8
test eax, eax
je 0x41aaa5
mov ecx, dword [esi + 0x58]
mov ebx, dword [esi + 0x10]
inc edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 1
mov dword [esi + 0x24], edi
inc ecx
mov dword [esi + 0x5c], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 8], edi
mov word [eax], cx
mov ecx, 1
jmp 0x41a66b
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0xc]
mov word [eax + ecx*2], di
inc ecx
mov edi, dword [esi + 0x34]
test ebx, ebx
je 0x41a6d0
test di, di
je 0x41a6b0
mov dword [esi + 0xc], ecx
xor ecx, ecx
mov edx, dword [esi + 8]
cmp dword [esi + 0xc], edx
jne 0x41a660
mov edx, dword [esi + 0x30]
mov eax, 0xffffffff
sub edx, ebx
add edx, 3
cmovb edx, eax
shr edx, 2
cmp cx, 1
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0xc]
sbb edx, 0xffffffff
cmp word [esi + 0x20], 1
sbb edx, 0xffffffff
jmp 0x41a6fc
cmp ebx, dword [esi + 0x30]
je 0x41a6d0
movzx edx, byte [ebx]
mov dword [esi + 0xc], ecx
movzx edi, dl
test dl, dl
js 0x41a7a4
inc ebx
xor ecx, ecx
jmp 0x41a67c
cmp word [esi + 0x20], 1
jne 0x41a840
mov edx, dword [esi + 0x24]
xor edi, edi
mov ebx, 0
mov dword [esi + 0x20], 0
cmp ecx, edx
mov dword [esi + 8], edx
mov edx, 0
jne 0x41a666
inc edx
mov dword [esi + 0xc], edi
mov edi, ecx
add edx, ecx
jb 0x41aa69
mov eax, dword [esi + 0x14]
mov dword [esi + 8], eax
add eax, eax
cmp eax, edx
mov ecx, eax
ja 0x41a71a
mov ecx, edx
cmp ecx, 5
mov dword [esi + 0x10], ebx
jae 0x41a727
mov ecx, 4
xor ebx, ebx
cmp ecx, 0x40000000
lea edx, [ecx + ecx]
mov dword [esi + 0x24], ecx
setb bl
add ebx, ebx
cmp dword [esi + 8], 0
je 0x41a750
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
mov eax, 2
jmp 0x41a752
xor eax, eax
mov dword [esi + 0x68], eax
lea eax, [esi + 0x60]
lea ecx, [esi + 0x48]
push eax
push ebx
call fcn.0040c390
add esp, 8
cmp dword [esi + 0x48], 0
mov eax, dword [esi + 0x4c]
je 0x41a78b
mov ecx, dword [esi + 0x50]
mov ebx, dword [esi + 0x10]
cmp ecx, 0x80000001
jne 0x41aa65
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 8]
mov dword [esi + 0x24], ecx
jmp 0x41a79a
mov ecx, dword [esi + 0x24]
mov ebx, dword [esi + 0x10]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 8], ecx
mov ecx, edi
mov edi, dword [esi + 0xc]
jmp 0x41a666
mov ecx, ebx
movzx ebx, byte [ebx + 1]
and edi, 0x1f
and ebx, 0x3f
cmp dl, 0xdf
jbe 0x41a813
mov dword [esi + 0x10], ecx
movzx ecx, byte [ecx + 2]
shl ebx, 6
and ecx, 0x3f
or ecx, ebx
cmp dl, 0xf0
mov ebx, ecx
jb 0x41a824
mov ecx, dword [esi + 0x10]
and edi, 7
shl ebx, 6
shl edi, 0x12
movzx edx, byte [ecx + 3]
add ecx, 4
and edx, 0x3f
or edx, ebx
or edi, edx
mov ebx, ecx
cmp edi, 0xffff
jbe 0x41a839
lea edx, [edi + 0xff0000]
and edi, 0x3ff
shr edx, 0xa
or edi, 0xdc00
or edx, 0xd800
mov ecx, edi
mov edi, edx
jmp 0x41a67c
shl edi, 6
add ecx, 2
or edi, ebx
mov ebx, ecx
xor ecx, ecx
jmp 0x41a67c
mov ecx, dword [esi + 0x10]
shl edi, 0xc
or edi, ebx
add ecx, 3
mov ebx, ecx
cmp edi, 0xffff
ja 0x41a7ef
xor ecx, ecx
jmp 0x41a67c
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x2c]
push dword [esi + 0x88]
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x41a954
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x5c], 0xa
jge 0x41a902
cmp eax, 5
jne 0x41a890
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x58], eax
jmp 0x41a8a2
cmp dword [esi + 0x2c], 0
je 0x41a902
cmp eax, 0x57
mov dword [esi + 0x2c], 0
jne 0x41a902
mov al, 1
mov dword [esi + 8], eax
xor eax, eax
test ebx, ebx
je 0x41a3e0
add ebx, ebx
push 2
push ebx
push edi
call fcn.00406dd0
add esp, 0xc
xor eax, eax
jmp 0x41a3e0
shl edi, 0xc
add ebx, 3
or edi, eax
cmp edi, 0xffff
jbe 0x41a5c0
lea ecx, [edi + 0xff0000]
and edi, 0x3ff
mov eax, 2
shr ecx, 0xa
or edi, 0xdc00
or ecx, 0xd800
mov dword [esi + 8], ecx
jmp 0x41a5ca
mov ecx, dword [esi + 0x28]
test ebx, ebx
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x41a927
add ebx, ebx
push 2
push ebx
push edi
call fcn.00406dd0
add esp, 0xc
mov eax, dword [esi + 0x38]
test eax, eax
je 0x41a93c
push 1
push eax
push dword [esi + 0x3c]
call fcn.00406dd0
add esp, 0xc
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x41aa20
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41aa20
mov ecx, eax
test ebx, ebx
je 0x41a976
add ebx, ebx
push 2
push ebx
push edi
mov edi, ecx
call fcn.00406dd0
mov ecx, edi
add esp, 0xc
mov dword [esi + 0xb8], 1
mov eax, dword [esi + 0x84]
mov dword [esi + 0x60], 0
mov dword [esi + 0x7c], 0
mov word [esi + 0x80], 0
mov edx, dword [esi + 0x3c]
xorps xmm0, xmm0
lea edi, [esi + 0x60]
mov dword [esi + 0x48], 0xc
mov dword [esi + 0x4c], 0
mov dword [esi + 0x94], ecx
mov dword [esi + 0x50], 1
mov byte [esi + 6], 1
mov byte [esi + 7], 0
mov dword [esi + 0xb8], 1
lea ecx, [esi + 0x14]
mov byte [esi + 0x7d], al
xor al, 1
mov dword [esi + 0xc], edx
mov byte [esi + 0x7c], al
lea eax, [esi + 0x48]
movups xmmword [esi + 0x68], xmm0
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x40]
push edi
push eax
call fcn.00417c30
add esp, 8
movzx eax, byte [esi + 0x14]
cmp al, 4
jne 0x41aa34
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x38]
mov dword [ecx], 0
test eax, eax
je 0x41aa20
push 1
push eax
push dword [esi + 0xc]
call fcn.00406dd0
add esp, 0xc
mov eax, dword [esi + 0xb0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [esi + 0x17]
mov edx, dword [esi + 0x28]
movzx ebx, word [esi + 0x15]
mov edi, dword [esi + 0x18]
mov byte [edx + 7], cl
mov word [edx + 5], bx
mov byte [edx + 4], al
mov dword [edx + 8], edi
mov dword [edx], 1
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x41a92e
jmp 0x41a93c
test ecx, ecx
jne 0x41aa7d
mov dword [esi + 0x1c], edi
mov dword [esi + 0xb8], 2
call fcn.00429bb0
jmp 0x41aac8
mov dword [esi + 0x1c], edi
mov dword [esi + 0xb8], 2
push ecx
push eax
call fcn.0043e060
add esp, 8
jmp 0x41aac8
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00429bb0
jmp 0x41aac8
mov byte [esi + 6], 1
mov byte [esi + 7], 1
push ebx
push dword [esi + 0xc]
call fcn.0043e060
add esp, 8
jmp 0x41aac8
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00429bb0
ud2