Function at 0x420b40
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], 0x426b00
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
jmp 0x420be9
mov eax, dword [esi + 0x60]
xchg dword [0x444a34], eax
mov eax, dword [0x444a34]
test eax, eax
jne 0x420c30
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 0x420be0
mov eax, dword [esi + 8]
mov byte [esi + 7], 1
mov dword [esi + 0xa8], 1
mov byte [esi + 6], al
call fcn.00421cf0
mov ebx, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xchg dword [0x444a34], eax
jmp 0x420be9
mov eax, 1
lea ecx, [esi + 0x8c]
lea edx, [esi + 0x90]
lock xadd dword [0x444a34], eax
mov dword [esi + 0x48], ecx
lea ecx, [esi + 0x48]
mov dword [esi + 0x4c], fcn.004046c0
mov dword [esi + 0x50], edx
mov dword [esi + 0x68], 0x43adc8
mov dword [esi + 0x6c], 2
mov dword [esi + 0x60], 0
lea edx, [esi + 0x60]
mov dword [esi + 0x54], fcn.004046c0
mov byte [esi + 7], 1
mov dword [esi + 0xa8], 1
mov dword [esi + 0x70], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x74], 2
mov dword [esi + 0x90], eax
mov eax, dword [esi + 8]
mov byte [esi + 6], al
call fcn.00404230
cmp dword [esi + 0x38], 0
mov ecx, dword [esi + 0xc]
movsd xmm0, qword [esi + 0x1c]
mov eax, dword [esi + 0x24]
sete dl
movsd qword [esi + 0x60], xmm0
mov dword [esi + 0x68], eax
or cl, dl
test cl, 1
jne 0x420cd2
mov ecx, dword [esi + 0x3c]
mov edx, 1
call fcn.004038e0
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 + 0x34], ecx
je 0x420d00
movzx ecx, byte [ebx]
movzx edi, cl
test cl, cl
js 0x420d20
inc ebx
jmp 0x420d70
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
xor edx, edx
mov dword [esi + 0x28], 0
xor edi, edi
jmp 0x420d99
movzx edx, byte [ebx + 1]
and edi, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x420d68
movzx eax, byte [ebx + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x42109a
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 0x420d70
jmp 0x4210ae
shl edi, 6
add ebx, 2
or edi, edx
mov dword [esi + 8], edi
mov eax, 1
xor edx, edx
mov edi, dword [esi + 0x34]
mov ecx, 0xffffffff
mov dword [esi + 0x10], ebx
sub edi, ebx
add edi, 3
cmovb edi, ecx
shr edi, 2
add edi, eax
mov ax, 1
mov dword [esi + 0x28], eax
cmp edi, 4
mov eax, 3
cmovb edi, eax
xor ebx, ebx
cmp edi, 0x3fffffff
setb al
jae 0x421286
lea ecx, [edi + edi + 2]
mov dword [esi + 0x18], edx
test ecx, ecx
js 0x421263
mov bl, al
mov dword [esi + 0xc], ecx
add ebx, ebx
mov edx, ebx
call fcn.00403880
test eax, eax
je 0x421272
mov ecx, dword [esi + 0x58]
mov ebx, dword [esi + 0x10]
inc edi
mov dword [esi + 0xc], edi
inc ecx
mov dword [esi + 0x5c], ecx
mov ecx, dword [esi + 8]
mov word [eax], cx
mov ecx, 1
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 1
jmp 0x420e1e
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
mov word [eax + ecx*2], dx
inc ecx
mov edx, dword [esi + 0x18]
test ebx, ebx
mov dword [esi + 8], ecx
je 0x420e60
test dx, dx
je 0x420e40
xor ecx, ecx
mov dword [esi + 0x14], edx
jmp 0x420f1a
cmp ebx, dword [esi + 0x34]
je 0x420e60
movzx edx, byte [ebx]
movzx ecx, dl
test dl, dl
js 0x420e92
mov dword [esi + 0x14], ecx
inc ebx
jmp 0x420f18
cmp word [esi + 0x28], 1
jne 0x421010
mov dword [esi + 0x18], edx
cmp ecx, edi
mov ebx, 0
mov edx, 0
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x28], 0
jne 0x420e16
jmp 0x420f4e
mov dword [esi + 0x10], ebx
movzx ebx, byte [ebx + 1]
and ecx, 0x1f
and ebx, 0x3f
cmp dl, 0xdf
jbe 0x420ee6
mov dword [esi + 0x14], 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 + 0x18], ecx
jb 0x420ef8
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
movzx ebx, byte [ecx + 3]
add ecx, 4
and edx, 7
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x18]
shl edx, 0x12
and ebx, 0x3f
shl ecx, 6
or ebx, ecx
or edx, ebx
mov ebx, dword [esi + 0x10]
jmp 0x420f07
mov edx, dword [esi + 0x10]
shl ecx, 6
or ecx, ebx
mov dword [esi + 0x14], ecx
add edx, 2
mov ebx, edx
jmp 0x420f18
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
shl edx, 0xc
add ebx, 3
add edx, dword [esi + 0x18]
cmp edx, 0xffff
mov ecx, edx
ja 0x420fec
mov dword [esi + 0x14], ecx
xor ecx, ecx
mov edx, dword [esi + 0xc]
cmp dword [esi + 8], edx
jne 0x420e10
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 + 0x18], ecx
mov ecx, dword [esi + 8]
sbb edx, 0xffffffff
cmp word [esi + 0x28], 1
sbb edx, 0xffffffff
inc edx
add edx, ecx
jb 0x421239
mov eax, dword [esi + 0x1c]
mov dword [esi + 0xc], eax
add eax, eax
cmp eax, edx
mov edi, eax
ja 0x420f67
mov edi, edx
cmp edi, 5
mov dword [esi + 0x10], ebx
jae 0x420f74
mov edi, 4
xor ebx, ebx
cmp edi, 0x40000000
lea edx, [edi + edi]
setb bl
add ebx, ebx
cmp dword [esi + 0xc], 0
je 0x420f9a
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
mov eax, 2
jmp 0x420f9c
xor eax, eax
mov dword [esi + 0x68], eax
lea eax, [esi + 0x60]
lea ecx, [esi + 0x48]
push eax
push ebx
call fcn.00411fc0
add esp, 8
cmp dword [esi + 0x48], 0
mov eax, dword [esi + 0x4c]
je 0x420fd8
mov edx, dword [esi + 0x50]
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 8]
cmp edx, 0x80000001
jne 0x421235
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0xc]
jmp 0x420e16
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0xc], edi
jmp 0x420e16
lea edx, [ecx + 0xff0000]
and ecx, 0x3ff
shr edx, 0xa
or ecx, 0xdc00
or edx, 0xd800
mov dword [esi + 0x14], edx
jmp 0x420f1a
mov ebx, dword [esi + 0x1c]
mov edi, dword [esi + 0x20]
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 0x421129
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x5c], 0xa
jge 0x4210d8
cmp eax, 5
jne 0x421060
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x58], eax
jmp 0x421072
cmp dword [esi + 0x30], 0
je 0x4210d8
cmp eax, 0x57
mov dword [esi + 0x30], 0
jne 0x4210d8
mov al, 1
mov dword [esi + 8], eax
xor eax, eax
test ebx, ebx
mov ebx, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
je 0x420bc0
mov ecx, edi
mov edx, 2
call fcn.004038e0
xor eax, eax
jmp 0x420bc0
shl edi, 0xc
add ebx, 3
or edi, eax
cmp edi, 0xffff
jbe 0x420d70
lea ecx, [edi + 0xff0000]
and edi, 0x3ff
mov eax, 2
or edi, 0xdc00
shr ecx, 0xa
mov edx, edi
or ecx, 0xd800
mov dword [esi + 8], ecx
jmp 0x420d7a
mov ecx, dword [esi + 0x2c]
test ebx, ebx
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x4210fb
mov ecx, edi
mov edx, 2
call fcn.004038e0
mov edi, 0xffffffff
cmp dword [esi + 0x38], 0
je 0x421113
mov ecx, dword [esi + 0x3c]
mov edx, 1
call fcn.004038e0
cmp dword [esi + 8], 0xffffffff
je 0x4211ee
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4211ee
test ebx, ebx
je 0x421143
mov ecx, edi
mov edx, 2
call fcn.004038e0
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 + 0x1c]
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.00416640
add esp, 8
movzx eax, byte [esi + 0x1c]
cmp al, 4
jne 0x421202
cmp dword [esi + 0x38], 0
mov eax, dword [esi + 0x20]
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 0x4211ee
mov ecx, dword [esi + 0xc]
mov edx, 1
call fcn.004038e0
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 + 0x1f]
mov edx, dword [esi + 0x2c]
movzx ebx, word [esi + 0x1d]
mov edi, dword [esi + 0x20]
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 0x421106
jmp 0x421113
test edx, edx
jne 0x42124d
mov dword [esi + 0x24], ecx
mov dword [esi + 0xa8], 2
call fcn.004040b0
jmp 0x421293
mov dword [esi + 0x24], ecx
mov ecx, eax
mov dword [esi + 0xa8], 2
call fcn.00435190
jmp 0x421293
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.004040b0
jmp 0x421293
mov ecx, dword [esi + 0xc]
mov edx, ebx
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00435190
jmp 0x421293
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.004040b0
ud2