Function at 0x434590
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], 0x43bf20
mov dword [esi + 0x38], ecx
lea eax, [esi + 0xb0]
mov dword [esi + 0x84], edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x3c], 8
mov dword [esi + 0x5c], 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 + 0x8c], eax
mov al, 1
mov dword [esi + 0xc], eax
jmp 0x43462e
mov dword [esi + 0x5c], ecx
push edi
push 0
push dword [0xc4d9c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x94], eax
jmp 0x434649
mov eax, dword [esi + 0x60]
xchg dword [0xc4d9cc], eax
mov eax, dword [0xc4d9cc]
test eax, eax
jne 0x4346a0
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 0x434640
mov eax, dword [esi + 0x18]
mov byte [esi + 0xb], 1
mov dword [esi + 0xb8], 1
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x10]
mov byte [esi + 0xa], al
call fcn.00435b40
jmp 0x434643
mov eax, 1
lea ecx, [esi + 0x94]
lea edx, [esi + 0x44]
lock xadd dword [0xc4d9cc], eax
mov dword [esi + 0x4c], ecx
lea ecx, [esi + 0x4c]
mov dword [esi + 0x50], 0x4143a0
mov dword [esi + 0x54], edx
mov dword [esi + 0x60], 0xc43bc8
mov dword [esi + 0x64], 2
mov dword [esi + 0x70], 0
mov dword [esi + 0x58], 0x4143a0
mov byte [esi + 0xb], 1
mov dword [esi + 0xb8], 1
mov dword [esi + 0x68], ecx
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x6c], 2
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], ecx
lea ecx, [esi + 0x9c]
lea edx, [esi + 0x60]
mov byte [esi + 0xa], al
call fcn.004106d0
cmp dword [esi + 0x18], 0
mov ecx, dword [esi + 0xc]
sete al
or cl, al
test cl, 1
jne 0x43473f
push dword [esi + 0x1c]
push 0
push dword [0xc4d9c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0xa4]
lea ecx, [edx + eax]
test eax, eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x40], ecx
je 0x434780
movzx ecx, byte [edx]
movzx ebx, cl
test cl, cl
js 0x4347a0
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
jmp 0x4347fc
mov dword [esi + 0xc], 0
xor ebx, ebx
mov dword [esi + 0x34], 0
mov dword [esi + 0x20], 0
xor edi, edi
jmp 0x434825
mov edi, edx
movzx edx, byte [edx + 1]
and ebx, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x4347ef
movzx eax, byte [edi + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x434b20
movzx ecx, byte [edi + 3]
and ebx, 7
shl eax, 6
shl ebx, 0x12
and ecx, 0x3f
or ecx, eax
lea eax, [edi + 4]
or ebx, ecx
mov dword [esi + 0x20], eax
mov edx, edi
cmp ebx, 0xffff
jbe 0x4347fc
jmp 0x434b39
shl ebx, 6
lea eax, [edi + 2]
or ebx, edx
mov dword [esi + 0x20], eax
mov edx, edi
mov eax, 1
mov dword [esi + 0xc], 0
mov edi, dword [esi + 0x40]
mov ecx, 0xffffffff
sub edi, dword [esi + 0x20]
add edi, 3
cmovb edi, ecx
shr edi, 2
add edi, eax
mov ax, 1
mov dword [esi + 0x34], eax
cmp edi, 4
mov eax, 3
mov dword [esi + 0x10], ebx
cmovb edi, eax
cmp edi, 0x3ffffffe
ja 0x434d17
lea ecx, [edi + edi + 2]
mov dword [esi + 0x24], edi
test ecx, ecx
js 0x434d2f
mov dword [esi + 0x1c], edx
movzx eax, byte [0xc4d948]
mov eax, dword [0xc4d9c8]
mov edi, dword [esi + 0xc]
test eax, eax
jne 0x43487b
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x434cf5
mov ecx, ebx
mov dword [0xc4d9c8], eax
mov ebx, ecx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x434cf5
mov ecx, eax
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x24]
mov ebx, dword [esi + 0x20]
mov dword [esi + 0x30], ecx
inc eax
inc edx
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0x10]
mov word [ecx], ax
mov eax, 1
jmp 0x4348ce
mov edi, edx
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, edi
mov edi, dword [esi + 0xc]
inc eax
test ebx, ebx
mov dword [esi + 0x10], eax
je 0x434940
test di, di
je 0x434920
xor eax, eax
mov dword [esi + 0x14], edi
cmp dword [esi + 0x10], edx
jne 0x434a66
mov edi, dword [esi + 0x40]
mov ecx, 0xffffffff
sub edi, ebx
add edi, 3
cmovb edi, ecx
shr edi, 2
cmp ax, 1
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
sbb edi, 0xffffffff
cmp word [esi + 0x34], 1
sbb edi, 0xffffffff
jmp 0x43496b
cmp ebx, dword [esi + 0x40]
je 0x434940
mov dword [esi + 0xc], ecx
movzx ecx, byte [ebx]
mov dword [esi + 0x24], edx
movzx edi, cl
test cl, cl
js 0x4349ee
inc ebx
jmp 0x434a52
cmp word [esi + 0x34], 1
jne 0x434ac0
mov dword [esi + 0xc], edi
xor ebx, ebx
cmp eax, edx
mov edi, 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x14], 0
jne 0x4348c0
inc edi
add edi, eax
jb 0x434cd0
lea eax, [edx + edx]
mov ecx, 4
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], ebx
lea ebx, [esi + 0x60]
cmp eax, edi
cmova edi, eax
cmp edi, 5
cmovb edi, ecx
mov ecx, dword [esi + 0x30]
xor edx, edx
cmp edi, 0x40000000
setb dl
add edx, edx
mov dword [esi + 0x60], ecx
lea ecx, [esi + 0x4c]
mov dword [esi + 0x64], 2
mov dword [esi + 0x68], eax
lea eax, [edi + edi]
push ebx
push eax
call fcn.00422410
add esp, 8
cmp dword [esi + 0x4c], 0
mov ecx, dword [esi + 0x50]
je 0x4349e6
mov edx, dword [esi + 0x14]
cmp ecx, 0x80000001
jne 0x434ccc
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x30]
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x10]
jmp 0x4348c4
mov ebx, dword [esi + 0x20]
mov dword [esi + 0x30], ecx
jmp 0x434a6b
movzx edx, byte [ebx + 1]
and edi, 0x1f
and edx, 0x3f
cmp cl, 0xdf
mov dword [esi + 0x14], edx
jbe 0x434a49
movzx eax, byte [ebx + 2]
mov edx, dword [esi + 0x14]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x434a76
movzx edx, byte [ebx + 3]
and edi, 7
shl eax, 6
add ebx, 4
shl edi, 0x12
and edx, 0x3f
or edx, eax
or edi, edx
mov ecx, dword [esi + 0xc]
cmp edi, 0xffff
ja 0x434a89
mov edx, dword [esi + 0x24]
mov dword [esi + 0x14], edi
xor eax, eax
cmp dword [esi + 0x10], edx
je 0x4348e8
jmp 0x434a66
shl edi, 6
add ebx, 2
add edi, dword [esi + 0x14]
mov dword [esi + 0x14], edi
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0xc]
xor eax, eax
cmp dword [esi + 0x10], edx
je 0x4348e8
mov edi, edx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
jmp 0x4348c4
shl edi, 0xc
add ebx, 3
or edi, eax
mov ecx, dword [esi + 0xc]
cmp edi, 0xffff
jbe 0x434a36
lea edx, [edi + 0xff0000]
and edi, 0x3ff
shr edx, 0xa
or edi, 0xdc00
or edx, 0xd800
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x24]
mov eax, edi
cmp dword [esi + 0x10], edx
je 0x4348e8
jmp 0x434a66
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x3c]
push dword [esi + 0x8c]
mov edi, dword [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x434bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x90]
cmp ecx, 9
jg 0x434b65
cmp eax, 5
je 0x434610
cmp dword [esi + 0x3c], 0
je 0x434b65
cmp eax, 0x57
mov dword [esi + 0x3c], 0
je 0x434613
jmp 0x434b65
shl ebx, 0xc
lea ecx, [edi + 3]
mov dword [esi + 0x20], ecx
or ebx, eax
mov edx, edi
cmp ebx, 0xffff
jbe 0x4347fc
lea ecx, [ebx + 0xff0000]
and ebx, 0x3ff
mov eax, 2
shr ecx, 0xa
or ebx, 0xdc00
or ecx, 0xd800
mov edi, ebx
mov ebx, ecx
mov dword [esi + 0xc], edi
jmp 0x434808
mov ecx, dword [esi + 0x38]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 1
push edi
push 0
push dword [0xc4d9c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, 0xffffffff
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x18], 0
je 0x434ba4
push eax
push 0
push dword [0xc4d9c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, 0xffffffff
je 0x434c80
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x434c80
push edi
push 0
push dword [0xc4d9c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0x84]
mov dword [esi + 0x60], 0
mov dword [esi + 0x7c], 0
mov word [esi + 0x80], 0
xorps xmm0, xmm0
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x4c], 0xc
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 1
mov dword [esi + 0x10], ebx
mov dword [esi + 0x98], ebx
mov byte [esi + 0xa], 1
mov byte [esi + 0xb], 0
mov dword [esi + 0xb8], 1
lea ecx, [esi + 0x44]
mov byte [esi + 0x7d], al
xor al, 1
mov dword [esi + 0x2c], edx
mov byte [esi + 0x7c], al
lea eax, [esi + 0x4c]
movups xmmword [esi + 0x68], xmm0
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x60]
push eax
push dword [esi + 0x88]
call fcn.00427b30
add esp, 8
movzx eax, byte [esi + 0x44]
cmp al, 4
jne 0x434c94
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x10]
cmp dword [esi + 0x18], 0
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx], 0
je 0x434c80
push eax
push 0
push dword [0xc4d9c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0xb0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esi + 0x38]
movzx ebx, word [esi + 0x45]
movzx ecx, byte [esi + 0x47]
mov edi, dword [esi + 0x48]
mov word [edx + 5], bx
mov ebx, dword [esi + 0x10]
mov byte [edx + 7], cl
mov byte [edx + 4], al
mov dword [edx + 8], edi
mov dword [edx], 1
mov edi, ebx
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x18], 0
jne 0x434b95
jmp 0x434ba4
test ecx, ecx
jne 0x434ce1
mov dword [esi + 0xb8], 2
call fcn.004102c0
jmp 0x434d45
mov edx, dword [esi + 0x54]
mov dword [esi + 0xb8], 2
call fcn.00449fe0
jmp 0x434d45
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov edx, ebx
mov byte [esi + 0xa], 1
mov byte [esi + 0xb], 1
mov dword [esi + 0x2c], ecx
mov ecx, 2
mov dword [esi + 0x28], eax
call fcn.00449fe0
jmp 0x434d45
mov eax, dword [esi + 0x18]
mov dword [esi + 0x2c], edx
mov byte [esi + 0xa], 1
mov byte [esi + 0xb], 1
mov dword [esi + 0x28], eax
call fcn.004102c0
jmp 0x434d45
mov eax, dword [esi + 0x18]
mov dword [esi + 0x2c], edx
mov byte [esi + 0xa], 1
mov byte [esi + 0xb], 1
mov dword [esi + 0x28], eax
call fcn.004102c0
ud2