Function at 0x435500
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], 0x43c2b0
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 [0xa679cc]
test eax, eax
je 0x4355b2
jmp 0x4355f7
mov eax, dword [esi + 0x60]
xchg dword [0xa679cc], eax
mov eax, dword [0xa679cc]
test eax, eax
jne 0x4355f7
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 0x4355a0
mov eax, dword [esi + 8]
mov byte [esi + 7], 1
mov dword [esi + 0xa8], 1
mov byte [esi + 6], al
call fcn.00436ac0
mov ebx, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xchg dword [0xa679cc], eax
mov eax, dword [0xa679cc]
test eax, eax
je 0x4355b2
mov eax, 1
lea ecx, [esi + 0x8c]
lea edx, [esi + 0x90]
lock xadd dword [0xa679cc], eax
mov dword [esi + 0x48], ecx
lea ecx, [esi + 0x48]
mov dword [esi + 0x4c], 0x414b60
mov dword [esi + 0x50], edx
mov dword [esi + 0x68], 0xa5e328
mov dword [esi + 0x6c], 2
mov dword [esi + 0x60], 0
lea edx, [esi + 0x60]
mov dword [esi + 0x54], 0x414b60
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.00411110
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 0x43569d
push dword [esi + 0x3c]
push 0
push dword [0xa679c8]
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 0x4356d0
movzx ecx, byte [edi]
movzx ebx, cl
test cl, cl
js 0x4356f0
mov dword [esi + 8], ebx
inc edi
jmp 0x435743
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x24], 0
xor edi, edi
jmp 0x43576d
movzx edx, byte [edi + 1]
and ebx, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x435738
movzx eax, byte [edi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x435a8d
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 0x435740
jmp 0x435aa1
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 0x435c8c
lea edx, [edi + edi + 2]
test edx, edx
js 0x435c7d
mov byte [esi + 0xc], al
mov dword [esi + 0x20], ecx
mov eax, dword [0xa679c8]
test eax, eax
jne 0x4357b9
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x435c62
mov edx, ebx
mov dword [0xa679c8], eax
mov ebx, edx
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x435c62
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 0x43580e
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 0x435850
test dx, dx
je 0x435830
mov dword [esi + 0x28], ecx
xor ecx, ecx
mov dword [esi + 0xc], edx
jmp 0x43592b
cmp ebx, dword [esi + 0x34]
je 0x435850
movzx edx, byte [ebx]
mov dword [esi + 0x28], ecx
movzx ecx, dl
test dl, dl
js 0x43587f
mov dword [esi + 0xc], ecx
inc ebx
jmp 0x435929
cmp word [esi + 0x24], 1
jne 0x435a00
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 0x435806
jmp 0x435959
mov dword [esi + 0x10], ebx
movzx ebx, byte [ebx + 1]
and ecx, 0x1f
and ebx, 0x3f
cmp dl, 0xdf
jbe 0x4358fb
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 0x43590d
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 0x435926
lea edx, [ecx + 0xff0000]
and ecx, 0x3ff
shr edx, 0xa
or ecx, 0xdc00
or edx, 0xd800
mov dword [esi + 0xc], edx
jmp 0x43592b
mov edx, dword [esi + 0x10]
shl ecx, 6
or ecx, ebx
mov dword [esi + 0xc], ecx
add edx, 2
mov ebx, edx
jmp 0x435929
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 0x4358db
mov dword [esi + 0xc], ecx
xor ecx, ecx
cmp edi, dword [esi + 8]
jne 0x435800
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 0x435c38
mov eax, dword [esi + 0x14]
mov dword [esi + 8], eax
add eax, eax
cmp eax, edx
mov ecx, eax
ja 0x435972
mov ecx, edx
cmp ecx, 5
mov dword [esi + 0x10], ebx
jae 0x43597f
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 0x4359a8
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
mov eax, 2
jmp 0x4359aa
xor eax, eax
mov dword [esi + 0x68], eax
lea eax, [esi + 0x60]
lea ecx, [esi + 0x48]
push eax
push ebx
call fcn.00423d50
add esp, 8
cmp dword [esi + 0x48], 0
mov eax, dword [esi + 0x4c]
je 0x4359e3
mov edx, dword [esi + 0x50]
mov ebx, dword [esi + 0x10]
cmp edx, 0x80000001
jne 0x435c34
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 8]
jmp 0x435806
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 0x435806
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 0x435b21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x5c], 0xa
jge 0x435ac9
cmp eax, 5
jne 0x435a50
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x58], eax
jmp 0x435a62
cmp dword [esi + 0x30], 0
je 0x435ac9
cmp eax, 0x57
mov dword [esi + 0x30], 0
jne 0x435ac9
mov al, 1
mov dword [esi + 8], eax
xor eax, eax
test ebx, ebx
mov ebx, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
je 0x435580
push edi
push 0
push dword [0xa679c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x435580
shl ebx, 0xc
add edi, 3
or ebx, eax
cmp ebx, 0xffff
jbe 0x435740
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 0x43574a
mov ecx, dword [esi + 0x2c]
test ebx, ebx
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x435aef
push edi
push 0
push dword [0xa679c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, 0xffffffff
cmp dword [esi + 0x38], 0
je 0x435b0b
push dword [esi + 0x3c]
push 0
push dword [0xa679c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 8], 0xffffffff
je 0x435bed
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x435bed
test ebx, ebx
je 0x435b3e
push edi
push 0
push dword [0xa679c8]
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.00428cf0
add esp, 8
movzx eax, byte [esi + 0x14]
cmp al, 4
jne 0x435c01
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 0x435bed
push dword [esi + 0xc]
push 0
push dword [0xa679c8]
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 0x435afa
jmp 0x435b0b
test edx, edx
jne 0x435c4c
mov dword [esi + 0x1c], edi
mov dword [esi + 0xa8], 2
call fcn.00410b20
jmp 0x435c99
mov ecx, eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0xa8], 2
call fcn.0044a3d0
jmp 0x435c99
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.0044a3d0
jmp 0x435c99
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00410b20
jmp 0x435c99
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00410b20
ud2