Function at 0x424e60
Capabilities:
Check os version
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, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
mov dword [esi + 0x9c], esp
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xa4], 0x42aed0
mov dword [esi + 0x2c], ecx
lea eax, [esi + 0xa0]
mov ebx, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov dword [esi + 0x84], edx
mov dword [esi + 8], 0
mov dword [esi + 0x30], 8
mov dword [esi + 0x58], 0
mov ecx, dword fs:[0]
mov dword [esi + 0xa0], ecx
mov dword fs:[0], eax
mov eax, 0x40080002
sub eax, edx
mov dword [esi + 0x88], eax
mov al, 1
nop dword [eax]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x8c], eax
mov eax, dword [0x4489c4]
test eax, eax
je 0x424f12
jmp 0x424f57
mov eax, dword [esi + 0x60]
xchg dword [0x4489c4], eax
mov eax, dword [0x4489c4]
test eax, eax
jne 0x424f57
xorps xmm0, xmm0
movaps xmmword [esi + 0x60], xmm0
push 2
push 0x10
lea eax, [esi + 0x60]
push eax
push 0
call ebx
test eax, eax
jns 0x424f00
mov eax, dword [esi + 8]
mov byte [esi + 7], 1
mov dword [esi + 0xa8], 1
mov byte [esi + 6], al
call fcn.004260e0
mov ebx, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xchg dword [0x4489c4], eax
mov eax, dword [0x4489c4]
test eax, eax
je 0x424f12
mov eax, 1
lea ecx, [esi + 0x8c]
lea edx, [esi + 0x90]
lock xadd dword [0x4489c4], eax
mov dword [esi + 0x48], ecx
lea ecx, [esi + 0x48]
mov dword [esi + 0x4c], 0x4067a0
mov dword [esi + 0x50], edx
mov dword [esi + 0x68], 0x43ef40
mov dword [esi + 0x6c], 2
mov dword [esi + 0x60], 0
lea edx, [esi + 0x60]
mov dword [esi + 0x54], 0x4067a0
mov byte [esi + 7], 1
mov dword [esi + 0xa8], 1
mov dword [esi + 0x70], ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x74], 2
mov dword [esi + 0x90], eax
mov eax, dword [esi + 8]
mov byte [esi + 6], al
call fcn.004063a0
cmp dword [esi + 0x38], 0
mov ecx, dword [esi + 0xc]
movsd xmm0, qword [esi + 0x14]
mov eax, dword [esi + 0x1c]
sete dl
movsd qword [esi + 0x60], xmm0
mov dword [esi + 0x68], eax
or cl, dl
test cl, 1
jne 0x424ffd
push dword [esi + 0x3c]
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0x68]
movsd xmm0, qword [esi + 0x60]
mov dword [esi + 0x40], eax
movsd qword [esi + 0x38], xmm0
test eax, eax
mov edi, dword [esi + 0x3c]
lea ecx, [edi + eax]
mov dword [esi + 0x34], ecx
je 0x425030
movzx ecx, byte [edi]
movzx ebx, cl
test cl, cl
js 0x425050
mov dword [esi + 8], ebx
inc edi
jmp 0x4250a3
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x24], 0
xor edi, edi
jmp 0x4250cd
movzx edx, byte [edi + 1]
and ebx, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x425098
movzx eax, byte [edi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x4253ed
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 0x4250a0
jmp 0x425401
shl ebx, 6
add edi, 2
or ebx, edx
mov dword [esi + 8], ebx
mov eax, 1
xor ebx, ebx
mov edx, dword [esi + 0x34]
mov ecx, 0xffffffff
mov dword [esi + 0x10], edi
sub edx, edi
add edx, 3
cmovb edx, ecx
mov ecx, ebx
mov edi, edx
shr edi, 2
add edi, eax
mov ax, 1
mov dword [esi + 0x24], eax
cmp edi, 4
mov eax, 3
cmovb edi, eax
cmp edi, 0x3fffffff
setb al
jae 0x4255ec
lea edx, [edi + edi + 2]
test edx, edx
js 0x4255dd
mov byte [esi + 0xc], al
mov dword [esi + 0x20], ecx
mov eax, dword [0x4489c0]
test eax, eax
jne 0x425119
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4255c2
mov edx, ebx
mov dword [0x4489c0], eax
mov ebx, edx
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4255c2
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 8]
mov ebx, dword [esi + 0x10]
inc ecx
mov word [eax], dx
mov dword [esi + 0x5c], ecx
mov ecx, edi
mov edi, 1
inc ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 1
mov dword [esi + 8], ecx
jmp 0x42516e
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0xc]
mov word [eax + edi*2], dx
inc edi
mov edx, dword [esi + 0x20]
test ebx, ebx
je 0x4251b0
test dx, dx
je 0x425190
mov dword [esi + 0x28], ecx
xor ecx, ecx
mov dword [esi + 0xc], edx
jmp 0x42528b
cmp ebx, dword [esi + 0x34]
je 0x4251b0
movzx edx, byte [ebx]
mov dword [esi + 0x28], ecx
movzx ecx, dl
test dl, dl
js 0x4251df
mov dword [esi + 0xc], ecx
inc ebx
jmp 0x425289
cmp word [esi + 0x24], 1
jne 0x425360
cmp edi, ecx
mov ebx, 0
mov edx, 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], ecx
mov dword [esi + 0x24], 0
jne 0x425166
jmp 0x4252b9
mov dword [esi + 0x10], ebx
movzx ebx, byte [ebx + 1]
and ecx, 0x1f
and ebx, 0x3f
cmp dl, 0xdf
jbe 0x42525b
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0x10]
shl ebx, 6
movzx ecx, byte [ecx + 2]
and ecx, 0x3f
or ecx, ebx
cmp dl, 0xf0
mov dword [esi + 0x20], ecx
jb 0x42526d
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx + 3]
add ecx, 4
and edx, 7
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x20]
shl edx, 0x12
and ebx, 0x3f
shl ecx, 6
or ebx, ecx
or edx, ebx
mov ebx, dword [esi + 0x10]
cmp edx, 0xffff
mov ecx, edx
jbe 0x425286
lea edx, [ecx + 0xff0000]
and ecx, 0x3ff
shr edx, 0xa
or ecx, 0xdc00
or edx, 0xd800
mov dword [esi + 0xc], edx
jmp 0x42528b
mov edx, dword [esi + 0x10]
shl ecx, 6
or ecx, ebx
mov dword [esi + 0xc], ecx
add edx, 2
mov ebx, edx
jmp 0x425289
mov edx, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
shl edx, 0xc
add ebx, 3
add edx, dword [esi + 0x20]
cmp edx, 0xffff
mov ecx, edx
ja 0x42523b
mov dword [esi + 0xc], ecx
xor ecx, ecx
cmp edi, dword [esi + 8]
jne 0x425160
mov edx, dword [esi + 0x34]
mov eax, 0xffffffff
sub edx, ebx
add edx, 3
cmovb edx, eax
shr edx, 2
cmp cx, 1
mov dword [esi + 0x20], ecx
sbb edx, 0xffffffff
cmp word [esi + 0x24], 1
sbb edx, 0xffffffff
inc edx
add edx, edi
jb 0x425598
mov eax, dword [esi + 0x14]
mov dword [esi + 8], eax
add eax, eax
cmp eax, edx
mov ecx, eax
ja 0x4252d2
mov ecx, edx
cmp ecx, 5
mov dword [esi + 0x10], ebx
jae 0x4252df
mov ecx, 4
xor ebx, ebx
cmp ecx, 0x40000000
lea edx, [ecx + ecx]
mov dword [esi + 0x28], ecx
setb bl
add ebx, ebx
cmp dword [esi + 8], 0
je 0x425308
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
mov eax, 2
jmp 0x42530a
xor eax, eax
mov dword [esi + 0x68], eax
lea eax, [esi + 0x60]
lea ecx, [esi + 0x48]
push eax
push ebx
call fcn.00405320
add esp, 8
cmp dword [esi + 0x48], 0
mov eax, dword [esi + 0x4c]
je 0x425343
mov edx, dword [esi + 0x50]
mov ebx, dword [esi + 0x10]
cmp edx, 0x80000001
jne 0x425594
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 8]
jmp 0x425166
mov ecx, dword [esi + 0x28]
mov ebx, dword [esi + 0x10]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 8], ecx
jmp 0x425166
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x30]
push dword [esi + 0x88]
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x425481
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x5c], 0xa
jge 0x425429
cmp eax, 5
jne 0x4253b0
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x58], eax
jmp 0x4253c2
cmp dword [esi + 0x30], 0
je 0x425429
cmp eax, 0x57
mov dword [esi + 0x30], 0
jne 0x425429
mov al, 1
mov dword [esi + 8], eax
xor eax, eax
test ebx, ebx
mov ebx, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
je 0x424ee0
push edi
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x424ee0
shl ebx, 0xc
add edi, 3
or ebx, eax
cmp ebx, 0xffff
jbe 0x4250a0
lea ecx, [ebx + 0xff0000]
and ebx, 0x3ff
mov eax, 2
shr ecx, 0xa
or ebx, 0xdc00
or ecx, 0xd800
mov dword [esi + 8], ecx
jmp 0x4250aa
mov ecx, dword [esi + 0x2c]
test ebx, ebx
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x42544f
push edi
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, 0xffffffff
cmp dword [esi + 0x38], 0
je 0x42546b
push dword [esi + 0x3c]
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 8], 0xffffffff
je 0x42554d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42554d
test ebx, ebx
je 0x42549e
push edi
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0xa8], 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]
mov ecx, dword [esi + 8]
xorps xmm0, xmm0
lea edi, [esi + 0x60]
mov dword [esi + 0x48], 0xc
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 1
mov byte [esi + 6], 1
mov byte [esi + 7], 0
mov dword [esi + 0xa8], 1
mov byte [esi + 0x7d], al
xor al, 1
mov dword [esi + 0x94], ecx
lea ecx, [esi + 0x14]
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.0041a540
add esp, 8
movzx eax, byte [esi + 0x14]
cmp al, 4
jne 0x425561
cmp dword [esi + 0x38], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov dword [ecx], 0
je 0x42554d
push dword [esi + 0xc]
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0xa0]
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 + 0x2c]
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 edi, dword [esi + 8]
mov dword [edx], 1
cmp dword [esi + 0x38], 0
jne 0x42545a
jmp 0x42546b
test edx, edx
jne 0x4255ac
mov dword [esi + 0x1c], edi
mov dword [esi + 0xa8], 2
call fcn.00406200
jmp 0x4255f9
mov ecx, eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0xa8], 2
call fcn.00439680
jmp 0x4255f9
movzx eax, byte [esi + 0xc]
xor edx, edx
mov ecx, ebx
mov byte [esi + 6], 1
mov byte [esi + 7], 1
mov dl, al
add edx, edx
call fcn.00439680
jmp 0x4255f9
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00406200
jmp 0x4255f9
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00406200
ud2