Function at 0x1001e6b0
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], 0x10025510
mov dword [esi + 0x3c], ecx
lea eax, [esi + 0xb0]
mov edi, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov dword [esi + 0x94], edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x40], 8
mov dword [esi + 0x68], 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 + 0x98], eax
mov al, 1
nop dword [eax]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x9c], eax
jmp 0x1001e759
mov eax, dword [esi + 0x70]
xchg dword [0x100409b4], eax
mov eax, dword [0x100409b4]
test eax, eax
jne 0x1001e7b0
xorps xmm0, xmm0
movaps xmmword [esi + 0x70], xmm0
push 2
push 0x10
lea eax, [esi + 0x70]
push eax
push 0
call edi
test eax, eax
jns 0x1001e750
mov ecx, dword [esi + 0x10]
mov byte [esi + 0xf], 1
mov dword [esi + 0xb8], 1
mov byte [esi + 0xe], cl
mov ecx, eax
call fcn.1001fb40
mov edi, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xchg dword [0x100409b4], eax
jmp 0x1001e759
mov eax, 1
lea ecx, [esi + 0x9c]
lea edx, [esi + 0xa0]
lock xadd dword [0x100409b4], eax
mov dword [esi + 0x58], ecx
lea ecx, [esi + 0x58]
mov dword [esi + 0x5c], fcn.10001700
mov dword [esi + 0x60], edx
mov dword [esi + 0x70], 0x10037bf8
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0
lea edx, [esi + 0x70]
mov dword [esi + 0x64], fcn.10001700
mov byte [esi + 0xf], 1
mov dword [esi + 0xb8], 1
mov dword [esi + 0x80], ecx
lea ecx, [esi + 0x30]
mov dword [esi + 0x84], 2
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x10]
mov byte [esi + 0xe], al
call fcn.100011f0
movsd xmm0, qword [esi + 0x30]
mov eax, dword [esi + 0x38]
test byte [esi + 0x14], 1
movsd qword [esi + 0x70], xmm0
mov dword [esi + 0x78], eax
jne 0x1001e854
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x1001e854
mov ecx, dword [esi + 0x48]
not edx
shr edx, 0x1f
call fcn.10001030
movsd xmm0, qword [esi + 0x70]
mov edi, dword [esi + 0x78]
movsd qword [esi + 0x48], xmm0
test edi, edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x14], edi
mov edx, dword [esi + 0x48]
lea eax, [edx + edi]
mov dword [esi + 0x44], eax
je 0x1001e890
movzx ecx, byte [edx]
movzx eax, cl
test cl, cl
js 0x1001e8b0
mov dword [esi + 0x10], eax
inc edx
jmp 0x1001e91c
mov dword [esi + 0x10], 0
mov dword [esi + 0x24], 0
xor edi, edi
xor edx, edx
xor ebx, ebx
jmp 0x1001e93f
mov ebx, edx
movzx edx, byte [edx + 1]
and eax, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x1001e8f3
mov dword [esi + 0x10], eax
movzx eax, byte [ebx + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x1001e8ff
mov edx, dword [esi + 0x10]
movzx ecx, byte [ebx + 3]
shl eax, 6
add ebx, 4
and edx, 7
and ecx, 0x3f
shl edx, 0x12
or ecx, eax
mov eax, edx
or eax, ecx
jmp 0x1001e90c
shl eax, 6
add ebx, 2
or eax, edx
mov edx, ebx
jmp 0x1001e919
mov ecx, dword [esi + 0x10]
add ebx, 3
shl ecx, 0xc
or ecx, eax
mov eax, ecx
mov edx, ebx
cmp eax, 0xffff
ja 0x1001ec3b
mov dword [esi + 0x10], eax
mov eax, 1
xor edi, edi
mov ebx, dword [esi + 0x44]
mov ecx, 0xffffffff
sub ebx, edx
add ebx, 3
cmovb ebx, ecx
shr ebx, 2
add ebx, eax
mov ax, 1
mov dword [esi + 0x24], eax
cmp ebx, 4
mov eax, 3
mov dword [esi + 0x20], edi
cmovb ebx, eax
cmp ebx, 0x3fffffff
setb byte [esi + 0x28]
jae 0x1001edf1
lea ecx, [ebx + ebx + 2]
mov eax, ebx
test ecx, ecx
js 0x1001ee00
mov edi, edx
mov ebx, eax
mov dword [esi + 0x2c], ecx
call fcn.10001000
test eax, eax
je 0x1001ee0f
mov ecx, dword [esi + 0x10]
inc ebx
cmp dword [esi + 0x14], 0
mov word [eax], cx
mov dword [esi + 0x30], edi
je 0x1001ebb3
mov edx, edi
mov edi, dword [esi + 0x20]
mov ecx, eax
mov eax, ebx
mov dword [esi + 0x10], 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x2c], ecx
jmp 0x1001e9d1
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov edi, ebx
mov ecx, dword [esi + 0x20]
mov ebx, dword [esi + 0x10]
mov dword [esi + 0x2c], eax
mov word [eax + ebx*2], cx
mov eax, dword [esi + 0x28]
inc ebx
mov dword [esi + 0x10], ebx
mov ebx, edi
mov edi, dword [esi + 0x14]
test edx, edx
lea ecx, [esi + 0x30]
cmovne edx, ecx
je 0x1001ea60
test di, di
jne 0x1001eaa1
mov dword [esi + 0x1c], ebx
mov ebx, edx
mov edx, dword [edx]
cmp edx, dword [esi + 0x44]
je 0x1001ea55
lea ecx, [edx + 1]
mov dword [ebx], ecx
movzx ecx, byte [edx]
movzx edi, cl
test cl, cl
jns 0x1001ea9e
and edi, 0x1f
mov dword [esi + 0x20], edi
lea edi, [edx + 2]
mov dword [ebx], edi
movzx edi, byte [edx + 1]
and edi, 0x3f
cmp cl, 0xdf
jbe 0x1001ea79
mov dword [esi + 0x14], edi
lea edi, [edx + 3]
shl dword [esi + 0x14], 6
mov dword [ebx], edi
movzx edi, byte [edx + 2]
and edi, 0x3f
add edi, dword [esi + 0x14]
cmp cl, 0xf0
jb 0x1001ea85
lea ecx, [edx + 4]
shl edi, 6
mov dword [ebx], ecx
movzx ecx, byte [edx + 3]
and ecx, 0x3f
or ecx, edi
mov edi, dword [esi + 0x20]
and edi, 7
shl edi, 0x12
jmp 0x1001ea8d
mov ebx, dword [esi + 0x1c]
mov dword [esi + 0x30], 0
nop
cmp word [esi + 0x24], 1
jne 0x1001ebb0
mov dword [esi + 0x14], edi
xor edi, edi
mov dword [esi + 0x24], 0
jmp 0x1001eaa8
mov ecx, dword [esi + 0x20]
shl ecx, 6
or ecx, edi
mov edi, ecx
jmp 0x1001ea9e
mov ecx, edi
mov edi, dword [esi + 0x20]
shl edi, 0xc
mov ebx, dword [esi + 0x1c]
or edi, ecx
cmp edi, 0xffff
ja 0x1001eb80
mov ebx, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], eax
mov edx, dword [esi + 0x30]
mov dword [esi + 0x20], edi
jne 0x1001e9b0
test edx, edx
mov dword [esi + 0x6c], edx
je 0x1001eae3
mov ecx, dword [esi + 0x44]
sub ecx, edx
mov edx, 0xffffffff
add ecx, 3
cmovb ecx, edx
shr ecx, 2
cmp word [esi + 0x14], 1
sbb ecx, 0xffffffff
cmp word [esi + 0x24], 1
sbb ecx, 0xffffffff
jmp 0x1001eaed
xor ecx, ecx
cmp word [esi + 0x24], 0
setne cl
inc ecx
mov dword [esi + 0x1c], ebx
add eax, ecx
jb 0x1001edcd
lea ecx, [ebx + ebx]
cmp ecx, eax
cmova eax, ecx
cmp eax, 5
mov edi, eax
mov eax, 4
cmovb edi, eax
xor eax, eax
cmp edi, 0x40000000
lea edx, [edi + edi]
setb al
add eax, eax
test ebx, ebx
je 0x1001eb32
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ecx
mov ecx, 2
jmp 0x1001eb34
xor ecx, ecx
lea ebx, [esi + 0x70]
mov dword [esi + 0x78], ecx
lea ecx, [esi + 0x58]
push ebx
push eax
call fcn.1000ec60
add esp, 8
cmp dword [esi + 0x58], 0
mov eax, dword [esi + 0x5c]
je 0x1001eb72
mov edx, dword [esi + 0x60]
cmp edx, 0x80000001
jne 0x1001edc9
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x6c]
mov edi, eax
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x18]
jmp 0x1001e9b8
mov edx, dword [esi + 0x6c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x28], edi
jmp 0x1001e9b8
add edi, 0xffff0000
mov ecx, edi
and edi, 0x3ff
shr ecx, 0xa
or edi, 0xdc00
mov dword [esi + 0x14], edi
or ecx, 0xd800
mov edi, ecx
jmp 0x1001eaa8
mov eax, dword [esi + 0x18]
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x40]
push dword [esi + 0x98]
mov dword [esi + 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x1001ec95
mov eax, dword [esi + 0x68]
lea edi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xa
jge 0x1001ec64
cmp eax, 5
jne 0x1001ec00
mov dword [esi + 0x68], edi
jmp 0x1001ec12
cmp dword [esi + 0x40], 0
je 0x1001ec64
cmp eax, 0x57
mov dword [esi + 0x40], 0
jne 0x1001ec64
mov edi, dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov al, 1
mov dword [esi + 0x10], eax
xor eax, eax
test ebx, ebx
je 0x1001e730
mov ecx, dword [esi + 0x18]
mov edx, 2
call fcn.10001030
xor eax, eax
jmp 0x1001e730
add eax, 0xffff0000
mov ecx, eax
and eax, 0x3ff
or eax, 0xdc00
shr ecx, 0xa
mov edi, eax
mov eax, 2
or ecx, 0xd800
mov dword [esi + 0x10], ecx
jmp 0x1001e923
mov ecx, dword [esi + 0x3c]
movsd xmm0, qword [0x10034300]
mov edi, 0xffffffff
test ebx, ebx
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
je 0x1001ed94
mov ecx, dword [esi + 0x18]
mov edx, 2
call fcn.10001030
jmp 0x1001ed94
mov edi, eax
test ebx, ebx
je 0x1001ecb2
mov ecx, dword [esi + 0x18]
mov edx, 2
call fcn.10001030
mov dword [esi + 0xb8], 1
mov eax, dword [esi + 0x94]
xorps xmm0, xmm0
mov edx, dword [esi + 0x48]
mov dword [esi + 0xa4], edi
lea edi, [esi + 0x70]
mov dword [esi + 0x58], 0xc
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 1
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 0
mov dword [esi + 0xb8], 1
lea ecx, [esi + 0x30]
movlps qword [esi + 0x70], xmm0
mov dword [esi + 0x8c], 0
mov word [esi + 0x90], 0
mov dword [esi + 0x84], 0
mov byte [esi + 0x8d], al
xor al, 1
mov dword [esi + 0x14], edx
mov byte [esi + 0x8c], al
lea eax, [esi + 0x58]
movlps qword [esi + 0x7c], xmm0
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x50]
push edi
push eax
call fcn.10013b60
add esp, 8
movzx eax, byte [esi + 0x30]
cmp al, 4
jne 0x1001ed70
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x34]
mov dword [ecx + 4], edx
mov edx, dword [esi + 0x4c]
mov dword [ecx + 8], eax
mov dword [ecx], 0
test edx, edx
je 0x1001edb5
mov ecx, dword [esi + 0x14]
not edx
shr edx, 0x1f
call fcn.10001030
jmp 0x1001edb5
movzx ecx, word [esi + 0x31]
mov edx, dword [esi + 0x3c]
mov edi, dword [esi + 0x10]
mov word [edx + 5], cx
movzx ecx, byte [esi + 0x33]
mov byte [edx + 7], cl
mov ecx, dword [esi + 0x34]
mov byte [edx + 4], al
mov dword [edx + 8], ecx
mov dword [edx], 1
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x1001eda8
mov ecx, dword [esi + 0x48]
not edx
shr edx, 0x1f
call fcn.10001030
cmp dword [esi + 0x10], 0xffffffff
je 0x1001edb5
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 edx, edx
jne 0x1001edde
mov dword [esi + 0xb8], 2
call fcn.10001080
jmp 0x1001ee29
mov ecx, eax
mov dword [esi + 0xb8], 2
call fcn.10032910
jmp 0x1001ee29
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 1
call fcn.10001080
jmp 0x1001ee29
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 1
call fcn.10001080
jmp 0x1001ee29
movzx eax, byte [esi + 0x28]
mov ecx, dword [esi + 0x2c]
xor edx, edx
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 1
mov dl, al
add edx, edx
call fcn.10032910
ud2