Function at 0x3db63e0
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], 0x3dbd2f0
mov dword [esi + 0x28], ecx
lea eax, [esi + 0xb0]
mov bl, 1
mov dword [esi + 0x88], edx
mov dword [esi + 8], 0
mov dword [esi + 0x2c], 8
mov dword [esi + 0x54], 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 + 0x90], eax
nop word [eax + eax]
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x94], eax
jmp 0x3db6489
mov eax, dword [esi + 0x60]
xchg dword [0x3de3a3c], eax
mov eax, dword [0x3de3a3c]
test eax, eax
jne 0x3db64e0
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 0x3db6480
mov eax, dword [esi + 0x10]
mov byte [esi + 7], 1
mov dword [esi + 0xb8], 1
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
mov byte [esi + 6], al
call fcn.03db75c0
jmp 0x3db6483
mov eax, 1
lea ecx, [esi + 0x94]
lea edx, [esi + 0x3c]
lock xadd dword [0x3de3a3c], eax
mov dword [esi + 0x44], ecx
lea ecx, [esi + 0x44]
mov dword [esi + 0x48], fcn.03d93480
mov dword [esi + 0x4c], edx
mov dword [esi + 0x60], 0x3dda420
mov dword [esi + 0x64], 2
mov dword [esi + 0x70], 0
mov dword [esi + 0x50], fcn.03d93480
mov byte [esi + 7], 1
mov dword [esi + 0xb8], 1
mov dword [esi + 0x68], ecx
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x6c], 2
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x9c]
lea edx, [esi + 0x60]
mov byte [esi + 6], al
call fcn.03d92750
cmp dword [esi + 0x14], 0
mov ecx, dword [esi + 0xc]
sete al
or cl, al
test cl, 1
jne 0x3db657f
push dword [esi + 0x10]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 0xa0]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xa4]
lea ecx, [edx + eax]
test eax, eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x30], ecx
je 0x3db65c0
movzx ecx, byte [edx]
movzx edi, cl
test cl, cl
js 0x3db65e0
lea eax, [edx + 1]
mov dword [esi + 0xc], edi
mov dword [esi + 8], eax
jmp 0x3db666a
xor edi, edi
mov dword [esi + 0xc], 0
xor eax, eax
mov dword [esi + 8], 0
xor ebx, ebx
jmp 0x3db668b
mov ebx, edx
movzx edx, byte [edx + 1]
and edi, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x3db661e
movzx eax, byte [ebx + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x3db662d
movzx ecx, byte [ebx + 3]
and edi, 7
shl eax, 6
shl edi, 0x12
and ecx, 0x3f
or ecx, eax
lea eax, [ebx + 4]
or edi, ecx
mov dword [esi + 8], eax
jmp 0x3db6638
shl edi, 6
lea eax, [ebx + 2]
or edi, edx
mov dword [esi + 8], eax
mov edx, ebx
jmp 0x3db6667
shl edi, 0xc
lea ecx, [ebx + 3]
mov dword [esi + 8], ecx
or edi, eax
mov edx, ebx
cmp edi, 0xffff
jbe 0x3db6667
lea ecx, [edi + 0xff0000]
and edi, 0x3ff
mov eax, 2
shr ecx, 0xa
or edi, 0xdc00
or ecx, 0xd800
mov dword [esi + 0xc], ecx
jmp 0x3db6671
mov dword [esi + 0xc], edi
mov eax, 1
xor edi, edi
mov ebx, dword [esi + 0x30]
mov ecx, 0xffffffff
sub ebx, dword [esi + 8]
add ebx, 3
cmovb ebx, ecx
shr ebx, 2
add ebx, eax
mov ax, 1
cmp ebx, 4
mov ecx, 3
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
cmovb ebx, ecx
cmp ebx, 0x3ffffffe
ja 0x3db6b0d
mov edi, ebx
lea ebx, [ebx + ebx + 2]
mov dword [esi + 0x10], edx
test ebx, ebx
js 0x3db6b47
movzx eax, byte [0x3de3a90]
xor ecx, ecx
mov edx, ebx
call fcn.03db9190
test eax, eax
je 0x3db6b25
mov ecx, eax
mov eax, dword [esi + 0x54]
mov edx, edi
inc edx
mov dword [esi + 0x18], ecx
inc eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0xc]
mov word [ecx], ax
mov eax, 1
jmp 0x3db66ff
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0xc]
mov ebx, edx
mov word [ecx + eax*2], di
inc eax
mov edx, ebx
mov ebx, dword [esi + 8]
mov dword [esi + 0xc], eax
test ebx, ebx
je 0x3db6740
mov edi, dword [esi + 0x34]
test di, di
je 0x3db6720
xor eax, eax
jmp 0x3db6810
cmp ebx, dword [esi + 0x30]
je 0x3db6740
mov dword [esi + 0x1c], edx
movzx edx, byte [ebx]
movzx edi, dl
test dl, dl
js 0x3db6771
inc ebx
mov edx, dword [esi + 0x1c]
xor eax, eax
jmp 0x3db6810
cmp word [esi + 0x38], 1
jne 0x3db68e0
cmp eax, edx
mov edi, 0
mov ebx, 0
mov dword [esi + 8], 0
mov dword [esi + 0x38], 0
je 0x3db6845
mov ebx, edx
xor edi, edi
jmp 0x3db66f8
mov dword [esi + 8], ebx
movzx ebx, byte [ebx + 1]
and edi, 0x1f
and ebx, 0x3f
cmp dl, 0xdf
jbe 0x3db67bf
mov eax, dword [esi + 8]
shl ebx, 6
movzx eax, byte [eax + 2]
and eax, 0x3f
or eax, ebx
cmp dl, 0xf0
jb 0x3db67d3
mov ebx, dword [esi + 8]
and edi, 7
shl eax, 6
shl edi, 0x12
movzx edx, byte [ebx + 3]
add ebx, 4
and edx, 0x3f
or edx, eax
or edi, edx
cmp edi, 0xffff
jbe 0x3db6733
jmp 0x3db67ea
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x1c]
shl edi, 6
or edi, ebx
add eax, 2
mov ebx, eax
xor eax, eax
jmp 0x3db6810
mov ebx, dword [esi + 8]
shl edi, 0xc
or edi, eax
add ebx, 3
cmp edi, 0xffff
jbe 0x3db6733
lea edx, [edi + 0xff0000]
and edi, 0x3ff
shr edx, 0xa
or edi, 0xdc00
or edx, 0xd800
mov eax, edi
mov edi, edx
mov edx, dword [esi + 0x1c]
nop dword [eax]
cmp dword [esi + 0xc], edx
mov dword [esi + 8], ebx
jne 0x3db66f0
mov ebx, dword [esi + 0x30]
mov ecx, 0xffffffff
sub ebx, dword [esi + 8]
add ebx, 3
cmovb ebx, ecx
shr ebx, 2
cmp ax, 1
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0xc]
sbb ebx, 0xffffffff
cmp word [esi + 0x38], 1
sbb ebx, 0xffffffff
inc ebx
mov dword [esi + 0x1c], edx
add ebx, eax
jb 0x3db6ae8
lea ecx, [edx + edx]
mov eax, 4
mov dword [esi + 0x5c], edi
mov edi, edx
cmp ecx, ebx
cmova ebx, ecx
cmp ebx, 5
cmovb ebx, eax
xor edx, edx
cmp ebx, 0x40000000
setb al
test edi, edi
je 0x3db6888
mov edi, dword [esi + 0x18]
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], ecx
mov ecx, 2
jmp 0x3db688a
xor ecx, ecx
mov dl, al
mov dword [esi + 0x64], ecx
lea ecx, [esi + 0x44]
lea eax, [esi + 0x60]
lea edi, [ebx + ebx]
add edx, edx
push eax
push edi
call fcn.03da4af0
add esp, 8
cmp dword [esi + 0x44], 0
mov ecx, dword [esi + 0x48]
je 0x3db68d0
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x5c]
cmp ecx, 0x80000001
jne 0x3db6ae4
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov dword [esi + 8], edx
jmp 0x3db66f8
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x5c]
mov dword [esi + 0x18], ecx
jmp 0x3db66f8
mov edi, edx
sub esp, 0x20
movaps xmm0, xmmword [0x3dce610]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x3db69ad
call sub.KERNEL32.dll_GetLastError
cmp dword [esi + 0x58], 9
mov ecx, dword [esi + 0x18]
mov edx, edi
jg 0x3db6977
cmp eax, 5
jne 0x3db6940
mov eax, dword [esi + 0x58]
mov dword [esi + 0x54], eax
jmp 0x3db6952
cmp dword [esi + 0x2c], 0
je 0x3db6977
cmp eax, 0x57
mov dword [esi + 0x2c], 0
jne 0x3db6977
mov al, 1
xor ebx, ebx
test edx, edx
mov dword [esi + 8], eax
je 0x3db6460
push ecx
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x3db6460
mov ecx, dword [esi + 0x28]
mov edi, 0xffffffff
test edx, edx
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 1
je 0x3db6aac
push dword [esi + 0x18]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x3db6aac
test edi, edi
je 0x3db69cc
push dword [esi + 0x18]
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0xb8], 1
mov eax, dword [esi + 0x88]
mov dword [esi + 0x60], 0
mov dword [esi + 0x7c], 0
mov word [esi + 0x80], 0
xorps xmm0, xmm0
mov edx, dword [esi + 0x10]
mov dword [esi + 0x44], 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 1
mov dword [esi + 8], ebx
mov dword [esi + 0x98], ebx
mov byte [esi + 6], 1
mov byte [esi + 7], 0
mov dword [esi + 0xb8], 1
lea ecx, [esi + 0x3c]
mov byte [esi + 0x7d], al
xor al, 1
mov dword [esi + 0x20], edx
mov byte [esi + 0x7c], al
lea eax, [esi + 0x44]
movups xmmword [esi + 0x68], xmm0
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x60]
push eax
push dword [esi + 0x8c]
call fcn.03daa100
add esp, 8
movzx eax, byte [esi + 0x3c]
cmp al, 4
jne 0x3db6a86
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 8]
cmp dword [esi + 0x14], 0
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x10]
mov dword [ecx], 0
je 0x3db6ad0
push eax
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x3db6ad0
mov edx, dword [esi + 0x28]
movzx ebx, word [esi + 0x3d]
movzx ecx, byte [esi + 0x3f]
mov edi, dword [esi + 0x40]
mov word [edx + 5], bx
mov ebx, dword [esi + 8]
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 + 0x10]
cmp dword [esi + 0x14], 0
je 0x3db6ac4
push eax
push 0
push dword [0x3de3a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, 0xffffffff
je 0x3db6ad0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xb0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ecx, ecx
jne 0x3db6af9
mov dword [esi + 0xb8], 2
call fcn.03d92320
jmp 0x3db6b60
mov edx, dword [esi + 0x4c]
mov dword [esi + 0xb8], 2
call fcn.03dcc180
jmp 0x3db6b60
mov eax, dword [esi + 0x14]
mov dword [esi + 0x20], edx
mov byte [esi + 6], 1
mov byte [esi + 7], 1
mov dword [esi + 0x24], eax
call fcn.03d92320
jmp 0x3db6b60
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov edx, ebx
mov byte [esi + 6], 1
mov byte [esi + 7], 1
mov dword [esi + 0x24], ecx
mov ecx, 2
mov dword [esi + 0x20], eax
call fcn.03dcc180
jmp 0x3db6b60
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov byte [esi + 6], 1
mov byte [esi + 7], 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
call fcn.03d92320
ud2