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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fe930
mov eax, dword fs:[0]
push eax
mov eax, 0x1438
call fcn.100f0960
mov eax, dword [0x10143964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x142c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1444], eax
mov dword [ebp - 0x1430], eax
lea eax, [edi + 0x54]
mov dword [ebp - 0x1428], 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1438], eax
mov byte [ebp - 0x1434], 0
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x10082c31
mov byte [ebp - 0x1434], 1
mov dword [ebp - 4], 1
call sub.MSVCP140.dll__Xtime_get_ticks
mov dword [ebp - 0x143c], edx
mov ecx, 1
movzx edx, ax
mov dword [ebp - 0xa0], 0xffffffff
mov dword [ebp - 0x1420], edx
nop dword [eax + eax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x1420], edx
inc ecx
cmp ecx, 0x270
jb 0x100825d0
mov dword [ebp - 0x1424], 0x270
mov ecx, 1
or eax, 0xffffffff
shr eax, 1
inc ecx
cmp eax, 1
ja 0x10082601
lea eax, [ecx + 7]
mov dword [ebp - 0x90], 0xffffffff
xor edx, edx
mov dword [ebp - 0x8c], 0xffffffff
div ecx
xor edx, edx
mov dword [ebp - 0x34], 0
mov ecx, eax
mov dword [ebp - 0x30], 0
mov eax, 8
mov dword [ebp - 0x98], ecx
div ecx
push 0x10
sub ecx, edx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x2c], 0
call fcn.100f0182
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
add esp, 4
lea ecx, [eax + 0x10]
mov dword [ebp - 0x2c], ecx
movups xmmword [eax], xmm0
mov dword [ebp - 0x143c], ecx
mov dword [ebp - 0x30], ecx
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 2
cmp esi, ecx
je 0x100826a8
mov edi, ecx
nop word [eax + eax]
lea ecx, [ebp - 0x1424]
call fcn.1007f5b0
mov byte [esi], al
inc esi
cmp esi, edi
jne 0x10082690
mov edi, dword [ebp - 0x142c]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100744c0
mov ecx, dword [ebp - 0x34]
add esp, 8
mov dword [ebp - 0x1428], 2
mov byte [ebp - 4], 1
test ecx, ecx
je 0x100826fc
mov edx, dword [ebp - 0x2c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100826f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100826f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100f01b2
add esp, 8
lea eax, [ebp - 0x28]
lea esi, [edi + 0x3c]
push eax
mov ecx, esi
call fcn.100062c0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10082740
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10082736
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10082736
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100f01b2
add esp, 8
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x88]
push str.GET
push eax
call fcn.1000d410
add esp, 0xc
push 0x11
push str._HTTP_1.1_r_nHost:
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1001f760
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x1428], 6
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov byte [ebp - 4], 4
jb 0x100827b9
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.1001f760
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x1428], 0xe
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 0x59
push str._r_nConnection:_upgrade_r_nUpgrade:_websocket_r_nSec_WebSocket_Version:_13_r_nSec_WebSocket_Key:
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.1001f760
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x1428], 0x1e
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
mov byte [ebp - 4], 6
jb 0x10082869
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.1001f760
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x1428], 0x3e
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 2
push 0x10101430
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.1001f760
mov esi, dword [ebp - 0x1430]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1428], 0x7f
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x10082944
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1008293a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10082a5d
push edx
push ecx
call fcn.100f01b2
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x1008298e
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10082984
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10082a5d
push edx
push ecx
call fcn.100f01b2
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x100829d8
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100829ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10082a5d
push edx
push ecx
call fcn.100f01b2
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x10082a1e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10082a14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10082a5d
push edx
push ecx
call fcn.100f01b2
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x10082a6d
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10082a63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10082a63
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100f01b2
add esp, 8
mov eax, dword [edi + 0x30]
add edi, 0x30
cmp eax, dword [edi + 4]
je 0x10082bf6
push 0x2c
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.10082df0
add esp, 0xc
push 0x18
push str.Sec_WebSocket_Protocol:
push 0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.10022ed0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x1428], 0xff
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 2
push 0x10101430
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.1001f760
mov dword [ebp - 0x1428], 0x1ff
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0x58], xmm1
mov dword [eax + 0x10], 0
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
push dword [ebp - 0x48]
movd eax, xmm1
mov byte [ebp - 4], 0xa
cmovae ecx, eax
push ecx
mov ecx, esi
call fcn.1001f760
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x10082b73
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10082b69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10082be6
push edx
push ecx
call fcn.100f01b2
add esp, 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x10082ba7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10082b9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10082be6
push edx
push ecx
call fcn.100f01b2
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x10082bf6
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10082bec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10082bec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100f01b2
add esp, 8
push 2
push 0x10101430
mov ecx, esi
call fcn.1001f760
push dword [ebp - 0x1438]
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100f06e3
mov esp, ebp
pop ebp
ret 4
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3