Function at 0x4156d0
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], 0x41e890
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 [0x449a1c]
test eax, eax
je 0x415866
mov eax, 1
lock xadd dword [0x449a1c], eax
mov dword [esi + 0x68], 0x43db44
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.0042a320
mov dword [esi + 0x50], eax
lea eax, [esi + 0x48]
mov dword [esi + 0x54], fcn.0042a320
mov dword [esi + 0x70], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x74], 2
push eax
lea eax, [esi + 0x14]
push eax
call fcn.00425c00
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 0x415816
mov eax, dword [esi + 0x38]
test eax, eax
je 0x415816
push 1
push eax
push dword [esi + 0x3c]
call fcn.00402a20
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 0x4158c0
movzx ecx, byte [ebx]
movzx edi, cl
test cl, cl
js 0x4158e0
mov dword [esi + 8], edi
inc ebx
jmp 0x415933
mov eax, dword [esi + 0x60]
xchg dword [0x449a1c], eax
mov eax, dword [0x449a1c]
test eax, eax
jne 0x415772
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 0x415850
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.0041b370
mov eax, dword [esi + 0x98]
mov edi, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xchg dword [0x449a1c], eax
mov eax, dword [0x449a1c]
test eax, eax
je 0x415866
jmp 0x415772
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
xor edi, edi
mov dword [esi + 0x20], 0
xor ecx, ecx
jmp 0x41595b
movzx edx, byte [ebx + 1]
and edi, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x415928
movzx eax, byte [ebx + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x415c36
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 0x415930
jmp 0x415c4a
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 0x415e2b
mov edi, ecx
lea ecx, [ecx + ecx + 2]
test ecx, ecx
js 0x415e06
mov bl, al
add ebx, ebx
push ebx
mov dword [esi + 0xc], ecx
push ecx
call fcn.00402a10
add esp, 8
test eax, eax
je 0x415e15
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 0x4159db
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 0x415a40
test di, di
je 0x415a20
mov dword [esi + 0xc], ecx
xor ecx, ecx
mov edx, dword [esi + 8]
cmp dword [esi + 0xc], edx
jne 0x4159d0
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 0x415a6c
cmp ebx, dword [esi + 0x30]
je 0x415a40
movzx edx, byte [ebx]
mov dword [esi + 0xc], ecx
movzx edi, dl
test dl, dl
js 0x415b14
inc ebx
xor ecx, ecx
jmp 0x4159ec
cmp word [esi + 0x20], 1
jne 0x415bb0
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 0x4159d6
inc edx
mov dword [esi + 0xc], edi
mov edi, ecx
add edx, ecx
jb 0x415dd9
mov eax, dword [esi + 0x14]
mov dword [esi + 8], eax
add eax, eax
cmp eax, edx
mov ecx, eax
ja 0x415a8a
mov ecx, edx
cmp ecx, 5
mov dword [esi + 0x10], ebx
jae 0x415a97
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 0x415ac0
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
mov eax, 2
jmp 0x415ac2
xor eax, eax
mov dword [esi + 0x68], eax
lea eax, [esi + 0x60]
lea ecx, [esi + 0x48]
push eax
push ebx
call fcn.00408220
add esp, 8
cmp dword [esi + 0x48], 0
mov eax, dword [esi + 0x4c]
je 0x415afb
mov ecx, dword [esi + 0x50]
mov ebx, dword [esi + 0x10]
cmp ecx, 0x80000001
jne 0x415dd5
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 8]
mov dword [esi + 0x24], ecx
jmp 0x415b0a
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 0x4159d6
mov ecx, ebx
movzx ebx, byte [ebx + 1]
and edi, 0x1f
and ebx, 0x3f
cmp dl, 0xdf
jbe 0x415b83
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 0x415b94
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 0x415ba9
lea edx, [edi + 0xff0000]
and edi, 0x3ff
shr edx, 0xa
or edi, 0xdc00
or edx, 0xd800
mov ecx, edi
mov edi, edx
jmp 0x4159ec
shl edi, 6
add ecx, 2
or edi, ebx
mov ebx, ecx
xor ecx, ecx
jmp 0x4159ec
mov ecx, dword [esi + 0x10]
shl edi, 0xc
or edi, ebx
add ecx, 3
mov ebx, ecx
cmp edi, 0xffff
ja 0x415b5f
xor ecx, ecx
jmp 0x4159ec
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 0x415cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x5c], 0xa
jge 0x415c72
cmp eax, 5
jne 0x415c00
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x58], eax
jmp 0x415c12
cmp dword [esi + 0x2c], 0
je 0x415c72
cmp eax, 0x57
mov dword [esi + 0x2c], 0
jne 0x415c72
mov al, 1
mov dword [esi + 8], eax
xor eax, eax
test ebx, ebx
je 0x415750
add ebx, ebx
push 2
push ebx
push edi
call fcn.00402a20
add esp, 0xc
xor eax, eax
jmp 0x415750
shl edi, 0xc
add ebx, 3
or edi, eax
cmp edi, 0xffff
jbe 0x415930
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 0x41593a
mov ecx, dword [esi + 0x28]
test ebx, ebx
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x415c97
add ebx, ebx
push 2
push ebx
push edi
call fcn.00402a20
add esp, 0xc
mov eax, dword [esi + 0x38]
test eax, eax
je 0x415cac
push 1
push eax
push dword [esi + 0x3c]
call fcn.00402a20
add esp, 0xc
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x415d90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415d90
mov ecx, eax
test ebx, ebx
je 0x415ce6
add ebx, ebx
push 2
push ebx
push edi
mov edi, ecx
call fcn.00402a20
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.00413680
add esp, 8
movzx eax, byte [esi + 0x14]
cmp al, 4
jne 0x415da4
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 0x415d90
push 1
push eax
push dword [esi + 0xc]
call fcn.00402a20
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 0x415c9e
jmp 0x415cac
test ecx, ecx
jne 0x415ded
mov dword [esi + 0x1c], edi
mov dword [esi + 0xb8], 2
call fcn.00425830
jmp 0x415e38
mov dword [esi + 0x1c], edi
mov dword [esi + 0xb8], 2
push ecx
push eax
call fcn.00439c90
add esp, 8
jmp 0x415e38
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00425830
jmp 0x415e38
mov byte [esi + 6], 1
mov byte [esi + 7], 1
push ebx
push dword [esi + 0xc]
call fcn.00439c90
add esp, 8
jmp 0x415e38
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00425830
ud2