Function at 0x10080960
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
lea ebp, [esp - 0x13b0]
mov eax, 0x13b0
call fcn.100f0960
push 0xffffffffffffffff
push 0x100fe680
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10143964]
xor eax, ebp
mov dword [ebp + 0x13ac], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [0x1014a500]
mov ebx, dword [ebp + 0x13b8]
mov dword [ebp - 0x18], ebx
test eax, eax
je 0x10080a56
cmp dword [eax + 4], 5
jl 0x10080a56
push 0
push 0
push 0x101008a0
push 0x150
push str.rtc::impl::WsTransport::sendFrame
push 5
lea ecx, [ebp + 0x129c]
call fcn.10005670
mov dword [ebp - 0x10], eax
lea esi, [eax + 0x28]
mov dword [ebp - 4], 0
push str.WebSocket_sending_frame:_opcode
push esi
call fcn.10006870
movzx edx, byte [ebx]
add esp, 8
mov ecx, esi
push edx
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
push str.__length
push esi
call fcn.10006870
add esp, 8
mov ecx, esi
push dword [ebx + 8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_int_]
mov edi, dword [0x1014a500]
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0xc]
je 0x10080a44
mov ebx, dword [ebp - 0x10]
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [edi + 0xc]
jne 0x10080a31
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp + 0x129c]
mov dword [ebp - 4], 0xffffffff
call fcn.10006040
movzx ecx, byte [ebx + 0xc]
mov al, byte [ebx]
neg cl
mov edx, dword [ebx + 8]
sbb cl, cl
movzx esi, dx
and cl, 0x80
and al, 0xf
or cl, al
mov byte [ebp + 0x139c], cl
mov cl, byte [ebx + 0xd]
cmp edx, 0x7e
jae 0x10080a95
neg cl
lea esi, [ebp + 0x139e]
sbb cl, cl
and dl, 0x7f
and cl, 0x80
or cl, dl
mov byte [ebp + 0x139d], cl
jmp 0x10080b02
cmp edx, 0xffff
ja 0x10080ac8
test cl, cl
mov edx, 0xfe
mov eax, 0x7e
cmovne eax, edx
push esi
mov byte [ebp + 0x139d], al
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp + 0x139e], ax
lea esi, [ebp + 0x13a0]
jmp 0x10080b02
test cl, cl
mov esi, 0xff
mov eax, 0x7f
cmovne eax, esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edx
mov byte [ebp + 0x139d], al
call esi
push 0
mov edi, eax
call esi
xor ecx, ecx
mov dword [ebp + 0x139e], eax
or ecx, edi
lea esi, [ebp + 0x13a6]
mov dword [ebp + 0x13a2], ecx
cmp byte [ebx + 0xd], 0
je 0x10080be7
call sub.MSVCP140.dll__Xtime_get_ticks
mov dword [ebp - 0x18], edx
mov ecx, 1
movzx edx, ax
mov dword [ebp + 0x1384], 0xffffffff
mov dword [ebp + 4], edx
nop dword [eax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 + 4], edx
inc ecx
cmp ecx, 0x270
jb 0x10080b30
mov dword [ebp], 0x270
mov ecx, 1
or eax, 0xffffffff
nop dword [eax + eax]
shr eax, 1
inc ecx
cmp eax, 1
ja 0x10080b60
xor edx, edx
mov dword [ebp + 0x1394], 0xffffffff
lea eax, [ecx + 7]
mov dword [ebp + 0x1398], 0xffffffff
div ecx
xor edx, edx
mov dword [ebp - 0x18], esi
mov ecx, eax
lea edi, [esi + 4]
mov eax, 8
mov dword [ebp + 0x138c], ecx
div ecx
sub ecx, edx
mov dword [ebp + 0x1390], eax
mov dword [ebp + 0x1388], ecx
cmp esi, edi
je 0x10080bbf
nop dword [eax]
lea ecx, [ebp]
call fcn.1007f5b0
mov byte [esi], al
inc esi
cmp esi, edi
jne 0x10080bb0
mov esi, edi
xor edi, edi
mov dword [ebp - 0x10], esi
cmp dword [ebx + 8], edi
jbe 0x10080be7
mov esi, dword [ebp - 0x18]
nop
mov ecx, dword [ebx + 4]
mov eax, edi
and eax, 3
mov dl, byte [eax + esi]
xor byte [ecx + edi], dl
inc edi
cmp edi, dword [ebx + 8]
jb 0x10080bd0
mov esi, dword [ebp - 0x10]
sub esp, 8
mov ecx, esp
sub esp, 8
mov eax, esp
push 0
push 0
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [ebp + 0x139c]
push esi
push eax
push ecx
call fcn.10027fa0
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
call fcn.1004fde0
mov esi, dword [ebx + 4]
sub esp, 8
mov edx, dword [ebx + 8]
mov ecx, esp
sub esp, 8
add edx, esi
mov eax, esp
push 0
push 0
push edx
push esi
push ecx
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.10027fa0
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
call fcn.1004fde0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x13ac]
xor ecx, ebp
call fcn.100f06e3
lea esp, [ebp + 0x13b0]
pop ebp
ret 4