Function at 0x6b55b0
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov esi, esp
mov dword [esi + 0xb8], ebp
mov dword [esi + 0xbc], esp
mov dword [esi + 0xc8], 0xffffffff
mov dword [esi + 0xc4], 0x707160
mov dword [esi + 0x24], ecx
lea eax, [esi + 0xc0]
mov dword [esi + 0x90], edx
mov dword [esi + 0xc], 0
mov dword [esi + 0x28], 8
mov dword [esi + 0x50], 0
mov ecx, dword fs:[0]
mov dword [esi + 0xc0], ecx
mov dword fs:[0], eax
mov eax, 0x40080002
sub eax, edx
mov dword [esi + 0x94], eax
mov al, 1
nop word [eax + eax]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [esi + 0x9c], eax
mov eax, dword [0x91982c]
test eax, eax
je 0x6b5662
jmp 0x6b56b1
mov eax, dword [esi + 0x60]
xchg dword [0x91982c], eax
mov eax, dword [0x91982c]
test eax, eax
jne 0x6b56b1
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 0x6b5650
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0xa8]
mov byte [esi + 7], 1
mov dword [esi + 0xc8], 1
mov byte [esi + 6], al
call fcn.006b6be0
mov eax, dword [esi + 0xa8]
xchg dword [0x91982c], eax
mov eax, dword [0x91982c]
test eax, eax
je 0x6b5662
mov eax, 1
lea ecx, [esi + 0x9c]
lea edx, [esi + 0xa0]
lock xadd dword [0x91982c], eax
mov dword [esi + 0x40], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x44], 0x4262e0
mov dword [esi + 0x48], edx
mov dword [esi + 0x60], 0x8c9a08
mov dword [esi + 0x64], 2
mov dword [esi + 0x70], 0
lea edx, [esi + 0x60]
mov dword [esi + 0x4c], 0x4262e0
mov byte [esi + 7], 1
mov dword [esi + 0xc8], 1
mov dword [esi + 0x68], ecx
lea ecx, [esi + 0x54]
mov dword [esi + 0x6c], 2
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0xc]
mov byte [esi + 6], al
call fcn.00425710
cmp dword [esi + 0x34], 0
mov ecx, dword [esi + 8]
movsd xmm0, qword [esi + 0x54]
mov eax, dword [esi + 0x5c]
sete dl
movsd qword [esi + 0x60], xmm0
mov dword [esi + 0x68], eax
or cl, dl
test cl, 1
jne 0x6b5757
push dword [esi + 0x30]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
movsd xmm0, qword [esi + 0x60]
mov eax, dword [esi + 0x68]
movsd qword [esi + 0x30], xmm0
test eax, eax
mov dword [esi + 0x38], eax
mov ebx, dword [esi + 0x30]
lea ecx, [ebx + eax]
mov dword [esi + 0x2c], ecx
je 0x6b5790
movzx ecx, byte [ebx]
movzx edi, cl
test cl, cl
js 0x6b57b0
inc ebx
jmp 0x6b5800
mov dword [esi + 0x10], 0
xor edi, edi
mov dword [esi + 0x20], 0
mov dword [esi + 8], 0
xor edx, edx
jmp 0x6b582b
movzx edx, byte [ebx + 1]
and edi, 0x1f
and edx, 0x3f
cmp cl, 0xdf
jbe 0x6b57f8
movzx eax, byte [ebx + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x6b5b79
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 0x6b5800
jmp 0x6b5b8d
shl edi, 6
add ebx, 2
or edi, edx
mov eax, 1
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x2c]
mov ecx, 0xffffffff
mov dword [esi + 8], ebx
sub edx, ebx
add edx, 3
cmovb edx, ecx
shr edx, 2
add edx, eax
mov ax, 1
mov dword [esi + 0x20], eax
cmp edx, 4
mov eax, 3
mov dword [esi + 0xc], edi
cmovb edx, eax
cmp edx, 0x3fffffff
setb al
jae 0x6b5d7e
lea ecx, [edx + edx + 2]
test ecx, ecx
js 0x6b5d6f
mov byte [esi + 0x14], al
mov edi, edx
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x6b5880
mov ebx, ecx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x6b5d54
mov ecx, ebx
mov dword [0x919820], eax
mov ebx, ecx
push ecx
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6b5d54
mov edx, eax
mov eax, dword [esi + 0x50]
mov ebx, dword [esi + 8]
inc edi
mov ecx, edx
mov dword [esi + 0x18], edx
inc eax
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], 1
mov word [edx], ax
mov edx, dword [esi + 0x10]
jmp 0x6b58d5
mov ebx, dword [esi + 0x14]
mov eax, edx
mov edx, dword [esi + 0xc]
mov word [ecx + edx*2], ax
inc edx
mov dword [esi + 0xc], edx
mov edx, ebx
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x6b5930
test dx, dx
je 0x6b5900
mov dword [esi + 0x14], 0
cmp dword [esi + 0xc], edi
mov dword [esi + 8], ebx
jne 0x6b58c0
jmp 0x6b5a2e
cmp ebx, dword [esi + 0x2c]
je 0x6b5930
movzx edx, byte [ebx]
movzx eax, dl
test dl, dl
js 0x6b5975
inc ebx
mov edx, eax
mov dword [esi + 0x14], 0
mov dword [esi + 8], ebx
jmp 0x6b5a1f
cmp word [esi + 0x20], 1
jne 0x6b5af0
xor eax, eax
cmp dword [esi + 0xc], edi
jne 0x6b5960
mov ecx, edx
mov dword [esi + 0x20], 0
mov dword [esi + 8], 0
xor edx, edx
jmp 0x6b5a54
mov ebx, edx
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
jmp 0x6b58c5
mov dword [esi + 0x1c], edi
movzx edi, byte [ebx + 1]
and eax, 0x1f
and edi, 0x3f
cmp dl, 0xdf
jbe 0x6b59e6
mov dword [esi + 0x10], eax
movzx eax, byte [ebx + 2]
shl edi, 6
and eax, 0x3f
or eax, edi
cmp dl, 0xf0
jb 0x6b59ff
movzx edx, byte [ebx + 3]
mov edi, dword [esi + 0x10]
shl eax, 6
add ebx, 4
mov dword [esi + 8], ebx
and edi, 7
and edx, 0x3f
shl edi, 0x12
or edx, eax
or edi, edx
mov edx, edi
mov edi, dword [esi + 0x1c]
cmp edx, 0xffff
jbe 0x6b5a18
lea eax, [edx + 0xff0000]
and edx, 0x3ff
shr eax, 0xa
or edx, 0xdc00
mov dword [esi + 0x14], edx
or eax, 0xd800
mov edx, eax
jmp 0x6b5a1f
shl eax, 6
add ebx, 2
mov dword [esi + 0x14], 0
or eax, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 8], ebx
mov edx, eax
jmp 0x6b5a1f
mov edx, dword [esi + 0x10]
add ebx, 3
mov dword [esi + 8], ebx
shl edx, 0xc
or edx, eax
mov edi, dword [esi + 0x1c]
cmp edx, 0xffff
ja 0x6b59c5
mov dword [esi + 0x14], 0
mov ebx, dword [esi + 8]
cmp dword [esi + 0xc], edi
mov dword [esi + 8], ebx
jne 0x6b58c0
mov eax, dword [esi + 0x2c]
mov ecx, 0xffffffff
sub eax, dword [esi + 8]
add eax, 3
cmovb eax, ecx
mov ecx, dword [esi + 0x14]
shr eax, 2
cmp cx, 1
sbb eax, 0xffffffff
cmp word [esi + 0x20], 1
sbb eax, 0xffffffff
inc eax
mov dword [esi + 0x1c], edi
add eax, dword [esi + 0xc]
jb 0x6b5d2f
mov dword [esi + 0x14], ecx
lea ecx, [edi + edi]
mov ebx, edi
mov dword [esi + 0x10], edx
cmp ecx, eax
cmova eax, ecx
cmp eax, 5
mov edi, eax
mov eax, 4
cmovb edi, eax
xor edx, edx
cmp edi, 0x40000000
lea eax, [edi + edi]
setb dl
add edx, edx
test ebx, ebx
je 0x6b5aa2
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ecx
mov ecx, 2
jmp 0x6b5aa4
xor ecx, ecx
mov dword [esi + 0x64], ecx
lea ecx, [esi + 0x40]
lea ebx, [esi + 0x60]
push ebx
push eax
call fcn.00563910
add esp, 8
cmp dword [esi + 0x40], 0
mov ecx, dword [esi + 0x44]
je 0x6b5add
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
cmp ecx, 0x80000001
jne 0x6b5d2b
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
jmp 0x6b58c5
mov ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], ecx
jmp 0x6b58c5
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x28]
push dword [esi + 0x94]
push dword [esi + 0x18]
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x6b5c14
call sub.kernel32.dll_GetLastError
mov ecx, dword [esi + 0x98]
cmp ecx, 0xa
jge 0x6b5bb9
cmp eax, 5
jne 0x6b5b40
mov dword [esi + 0x50], ecx
jmp 0x6b5b52
cmp dword [esi + 0x28], 0
je 0x6b5bb9
cmp eax, 0x57
mov dword [esi + 0x28], 0
jne 0x6b5bb9
mov al, 1
mov dword [esi + 0xc], eax
xor eax, eax
test edi, edi
je 0x6b5630
push dword [esi + 0x18]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
jmp 0x6b5630
shl edi, 0xc
add ebx, 3
or edi, eax
cmp edi, 0xffff
jbe 0x6b5800
lea ecx, [edi + 0xff0000]
and edi, 0x3ff
shr ecx, 0xa
or edi, 0xdc00
mov eax, edi
or ecx, 0xd800
mov dword [esi + 0x10], eax
mov eax, 2
mov edi, ecx
jmp 0x6b580c
mov ecx, dword [esi + 0x24]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 1
mov ecx, edi
mov edi, 0xffffffff
test ecx, ecx
je 0x6b5be8
push dword [esi + 0x18]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x34], 0
je 0x6b5bff
push dword [esi + 0x30]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp ebx, 0xffffffff
je 0x6b5ce2
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x6b5ce2
test edi, edi
je 0x6b5c33
push dword [esi + 0x18]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esi + 0xc8], 1
mov eax, dword [esi + 0x90]
mov dword [esi + 0x60], 0
mov dword [esi + 0x7c], 0
mov word [esi + 0x80], 0
mov edx, dword [esi + 0x30]
xorps xmm0, xmm0
lea edi, [esi + 0x60]
mov dword [esi + 0x40], 0xc
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0xa4], ebx
mov byte [esi + 6], 1
mov byte [esi + 7], 0
mov dword [esi + 0xc8], 1
lea ecx, [esi + 0x54]
mov byte [esi + 0x7d], al
xor al, 1
mov dword [esi + 8], edx
mov byte [esi + 0x7c], al
lea eax, [esi + 0x40]
movups xmmword [esi + 0x68], xmm0
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x38]
push edi
push eax
call fcn.006a9060
add esp, 8
movzx eax, byte [esi + 0x54]
cmp al, 4
jne 0x6b5cf6
cmp dword [esi + 0x34], 0
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0xc]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov dword [ecx], 0
je 0x6b5ce2
push dword [esi + 8]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0xc0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esi + 0x24]
movzx ebx, word [esi + 0x55]
movzx ecx, byte [esi + 0x57]
mov edi, dword [esi + 0x58]
mov word [edx + 5], bx
mov ebx, dword [esi + 0xc]
mov byte [edx + 7], cl
mov byte [edx + 4], al
mov dword [edx + 8], edi
mov dword [edx], 1
mov edi, ebx
cmp dword [esi + 0x34], 0
jne 0x6b5bee
jmp 0x6b5bff
test ecx, ecx
jne 0x6b5d40
mov dword [esi + 0xc8], 2
call fcn.00425040
jmp 0x6b5d8b
mov edx, dword [esi + 0x48]
mov dword [esi + 0xc8], 2
call fcn.00709d20
jmp 0x6b5d8b
movzx eax, byte [esi + 0x14]
xor ecx, ecx
mov edx, ebx
mov byte [esi + 6], 1
mov byte [esi + 7], 1
mov cl, al
add ecx, ecx
call fcn.00709d20
jmp 0x6b5d8b
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00425040
jmp 0x6b5d8b
mov byte [esi + 6], 1
mov byte [esi + 7], 1
call fcn.00425040
ud2