Function at 0x488f50
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov esi, esp
mov dword [esi + 0xb8], ebp
mov dword [esi + 0xbc], esp
mov dword [esi + 0xc8], 0xffffffff
mov dword [esi + 0xc4], 0x492540
mov dword [esi + 0x24], ecx
lea eax, [esi + 0xc0]
mov dword [esi + 0x8c], edx
mov dword [esi + 8], 0
mov dword [esi + 0x28], 8
mov dword [esi + 0x50], 0
mov ecx, dword fs:[0]
mov dword [esi + 0xc0], ecx
mov dword fs:[0], eax
mov eax, 0x40080002
sub eax, edx
mov dword [esi + 0x90], eax
mov al, 1
nop word [eax + eax]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x9c], eax
mov eax, dword [0x519224]
test eax, eax
je 0x489002
jmp 0x489051
mov eax, dword [esi + 0x60]
xchg dword [0x519224], eax
mov eax, dword [0x519224]
test eax, eax
jne 0x489051
xorps xmm0, xmm0
movaps xmmword [esi + 0x60], xmm0
push 2
push 0x10
lea eax, [esi + 0x60]
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jns 0x488ff0
mov eax, dword [esi + 8]
lea ecx, [esi + 0xa8]
mov byte [esi + 7], 1
mov dword [esi + 0xc8], 1
mov byte [esi + 6], al
call fcn.0048e0c0
mov eax, dword [esi + 0xa8]
xchg dword [0x519224], eax
mov eax, dword [0x519224]
test eax, eax
je 0x489002
mov eax, 1
lock xadd dword [0x519224], eax
mov dword [esi + 0x60], 0x50d4f8
mov dword [esi + 0x64], 2
mov dword [esi + 0x70], 0
mov byte [esi + 7], 1
mov dword [esi + 0xc8], 1
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 8]
mov byte [esi + 6], al
lea eax, [esi + 0x9c]
mov dword [esi + 0x40], eax
lea eax, [esi + 0xa0]
mov dword [esi + 0x44], fcn.004a4b30
mov dword [esi + 0x48], eax
lea eax, [esi + 0x40]
mov dword [esi + 0x4c], fcn.004a4b30
mov dword [esi + 0x68], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x6c], 2
push eax
lea eax, [esi + 0x54]
push eax
call fcn.004998a0
add esp, 8
movsd xmm0, qword [esi + 0x54]
mov eax, dword [esi + 0x5c]
test byte [esi + 0xc], 1
movsd qword [esi + 0x60], xmm0
mov dword [esi + 0x68], eax
jne 0x4890f5
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4890f5
push 1
push eax
push dword [esi + 0x30]
call fcn.00414130
add esp, 0xc
movsd xmm0, qword [esi + 0x60]
mov eax, dword [esi + 0x68]
movsd qword [esi + 0x30], xmm0
test eax, eax
mov dword [esi + 0x38], eax
mov edi, dword [esi + 0x30]
lea ecx, [edi + eax]
mov dword [esi + 0x2c], ecx
je 0x489120
movzx ecx, byte [edi]
movzx ebx, cl
test cl, cl
js 0x489140
inc edi
jmp 0x489190
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
xor edx, edx
jmp 0x4891be
movzx edx, byte [edi + 1]
and ebx, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x489188
movzx eax, byte [edi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x4894c6
movzx ecx, byte [edi + 3]
and ebx, 7
shl eax, 6
add edi, 4
shl ebx, 0x12
and ecx, 0x3f
or ecx, eax
or ebx, ecx
cmp ebx, 0xffff
jbe 0x489190
jmp 0x4894da
shl ebx, 6
add edi, 2
or ebx, edx
mov eax, 1
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x2c]
mov ecx, 0xffffffff
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], edi
sub edx, edi
add edx, 3
cmovb edx, ecx
shr edx, 2
add edx, eax
mov ax, 1
mov dword [esi + 0x20], eax
cmp edx, 4
mov eax, 3
cmovb edx, eax
xor ebx, ebx
cmp edx, 0x3fffffff
setb al
jae 0x4896ba
lea edi, [edx + edx + 2]
mov dword [esi + 0x14], edx
test edi, edi
js 0x489697
mov bl, al
movzx eax, byte [0x519171]
add ebx, ebx
push ebx
push edi
call fcn.00414120
add esp, 8
test eax, eax
je 0x4896a6
mov ecx, eax
mov eax, dword [esi + 0x50]
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
mov edx, dword [esi + 0x10]
mov dword [esi + 0x18], ecx
inc eax
inc edi
mov dword [esi + 0x94], eax
mov eax, dword [esi + 8]
mov dword [esi + 8], 1
mov word [ecx], ax
mov eax, ecx
jmp 0x489240
mov ecx, edx
mov edx, dword [esi + 8]
mov word [eax + edx*2], cx
inc edx
mov dword [esi + 8], edx
mov edx, dword [esi + 0xc]
test ebx, ebx
je 0x4892b0
test dx, dx
je 0x489290
mov dword [esi + 0xc], 0
cmp dword [esi + 8], edi
jne 0x489230
mov ecx, dword [esi + 0x2c]
mov eax, 0xffffffff
sub ecx, ebx
add ecx, 3
cmovb ecx, eax
shr ecx, 2
cmp word [esi + 0xc], 1
sbb ecx, 0xffffffff
cmp word [esi + 0x20], 1
sbb ecx, 0xffffffff
inc ecx
mov dword [esi + 0x14], edi
add ecx, dword [esi + 8]
jae 0x4892dd
jmp 0x48966d
cmp ebx, dword [esi + 0x2c]
je 0x4892b0
movzx edx, byte [ebx]
movzx ecx, dl
test dl, dl
js 0x489390
inc ebx
mov edx, ecx
jmp 0x489249
cmp word [esi + 0x20], 1
jne 0x489440
xor ecx, ecx
cmp dword [esi + 8], edi
jne 0x489330
mov dword [esi + 0xc], edx
mov dword [esi + 0x20], 0
xor ebx, ebx
xor edx, edx
inc ecx
mov dword [esi + 0x14], edi
add ecx, dword [esi + 8]
jb 0x48966d
lea eax, [edi + edi]
mov dword [esi + 0x1c], ebx
mov ebx, edi
mov dword [esi + 0x10], edx
cmp eax, ecx
cmova ecx, eax
cmp ecx, 5
mov edi, ecx
mov ecx, 4
cmovb edi, ecx
xor edx, edx
cmp edi, 0x40000000
lea ecx, [edi + edi]
setb dl
mov dword [esi + 0x98], ecx
add edx, edx
test ebx, ebx
je 0x489341
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], 2
mov dword [esi + 0x68], eax
jmp 0x489348
xor ebx, ebx
mov dword [esi + 0xc], edx
mov dword [esi + 0x20], 0
jmp 0x489232
mov dword [esi + 0x64], 0
lea eax, [esi + 0x60]
lea ecx, [esi + 0x40]
push eax
push dword [esi + 0x98]
call fcn.00476020
add esp, 8
cmp dword [esi + 0x40], 0
mov eax, dword [esi + 0x44]
je 0x489382
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
cmp eax, 0x80000001
jne 0x489669
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
jmp 0x489232
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x18], eax
jmp 0x489232
mov dword [esi + 0x14], edi
movzx edi, byte [ebx + 1]
and ecx, 0x1f
and edi, 0x3f
cmp dl, 0xdf
jbe 0x4893e3
mov dword [esi + 0x10], ecx
movzx ecx, byte [ebx + 2]
shl edi, 6
and ecx, 0x3f
or ecx, edi
cmp dl, 0xf0
jb 0x4893fc
movzx edx, byte [ebx + 3]
mov edi, dword [esi + 0x10]
shl ecx, 6
add ebx, 4
and edi, 7
and edx, 0x3f
shl edi, 0x12
or edx, ecx
or edi, edx
mov edx, edi
mov edi, dword [esi + 0x14]
cmp edx, 0xffff
jbe 0x489249
jmp 0x489416
shl ecx, 6
add ebx, 2
mov dword [esi + 0xc], 0
or ecx, edi
mov edi, dword [esi + 0x14]
mov edx, ecx
jmp 0x489250
mov edx, dword [esi + 0x10]
add ebx, 3
shl edx, 0xc
or edx, ecx
mov edi, dword [esi + 0x14]
cmp edx, 0xffff
jbe 0x489249
lea ecx, [edx + 0xff0000]
and edx, 0x3ff
shr ecx, 0xa
or edx, 0xdc00
mov dword [esi + 0xc], edx
or ecx, 0xd800
mov edx, ecx
jmp 0x489250
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x28]
push dword [esi + 0x90]
mov ebx, dword [esi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x489558
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x94]
cmp ecx, 0xa
jge 0x489506
cmp eax, 5
jne 0x489490
mov dword [esi + 0x50], ecx
jmp 0x4894a2
cmp dword [esi + 0x28], 0
je 0x489506
cmp eax, 0x57
mov dword [esi + 0x28], 0
jne 0x489506
mov al, 1
mov dword [esi + 8], eax
xor eax, eax
test edi, edi
je 0x488fd0
add edi, edi
push 2
push edi
push ebx
call fcn.00414130
add esp, 0xc
xor eax, eax
jmp 0x488fd0
shl ebx, 0xc
add edi, 3
or ebx, eax
cmp ebx, 0xffff
jbe 0x489190
lea ecx, [ebx + 0xff0000]
and ebx, 0x3ff
shr ecx, 0xa
or ebx, 0xdc00
mov eax, ebx
or ecx, 0xd800
mov dword [esi + 0x10], eax
mov eax, 2
mov ebx, ecx
jmp 0x48919c
mov ecx, dword [esi + 0x24]
test edi, edi
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 1
je 0x48952b
add edi, edi
push 2
push edi
push ebx
call fcn.00414130
add esp, 0xc
mov eax, dword [esi + 0x34]
test eax, eax
je 0x489540
push 1
push eax
push dword [esi + 0x30]
call fcn.00414130
add esp, 0xc
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x489624
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x489624
mov ecx, eax
test edi, edi
je 0x48957a
add edi, edi
push 2
push edi
push ebx
mov edi, ecx
call fcn.00414130
mov ecx, edi
add esp, 0xc
mov dword [esi + 0xc8], 1
mov eax, dword [esi + 0x8c]
mov dword [esi + 0x60], 0
mov dword [esi + 0x7c], 0
mov word [esi + 0x80], 0
mov edx, dword [esi + 0x30]
xorps xmm0, xmm0
lea edi, [esi + 0x60]
mov dword [esi + 0x40], 0xc
mov dword [esi + 0x44], 0
mov dword [esi + 0xa4], ecx
mov dword [esi + 0x48], 1
mov byte [esi + 6], 1
mov byte [esi + 7], 0
mov dword [esi + 0xc8], 1
lea ecx, [esi + 0x54]
mov byte [esi + 0x7d], al
xor al, 1
mov dword [esi + 0xc], edx
mov byte [esi + 0x7c], al
lea eax, [esi + 0x40]
movups xmmword [esi + 0x68], xmm0
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x38]
push edi
push eax
call fcn.00485370
add esp, 8
movzx eax, byte [esi + 0x54]
cmp al, 4
jne 0x489638
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x34]
mov dword [ecx], 0
test eax, eax
je 0x489624
push 1
push eax
push dword [esi + 0xc]
call fcn.00414130
add esp, 0xc
mov eax, dword [esi + 0xc0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [esi + 0x57]
mov edx, dword [esi + 0x24]
movzx ebx, word [esi + 0x55]
mov edi, dword [esi + 0x58]
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 + 0x34]
test eax, eax
jne 0x489532
jmp 0x489540
test eax, eax
jne 0x48967e
mov dword [esi + 0xc8], 2
call fcn.004994d0
jmp 0x4896c7
mov ecx, dword [esi + 0x48]
mov dword [esi + 0xc8], 2
push ecx
push eax
call fcn.004b45c0
add esp, 8
jmp 0x4896c7
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.004994d0
jmp 0x4896c7
mov byte [esi + 6], 1
mov byte [esi + 7], 1
push edi
push ebx
call fcn.004b45c0
add esp, 8
jmp 0x4896c7
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.004994d0
ud2