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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022d521
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x106c15c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x106c376c]
xorps xmm0, xmm0
mov eax, dword [0x106c3770]
xorps xmm1, xmm1
movss dword [ebp - 0x58], xmm0
xorps xmm2, xmm2
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [0x1022f850]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x4c], 0
movss dword [ebp - 0x54], xmm2
movss dword [ebp - 0x48], xmm2
movss dword [ebp - 0x74], xmm1
movss dword [ebp - 0x70], xmm1
movss dword [ebp - 0x6c], xmm1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
movss dword [ebp - 0x50], xmm0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], eax
cmp esi, eax
je 0x101ce03f
mov eax, dword [ebp - 0x5c]
add esi, 0xc8
mov ecx, dword [ebp - 0x60]
cmp byte [0x106c5c2c], 0
je 0x101cdd09
comiss xmm1, dword [esi - 0x40]
jae 0x101ce01f
cmp byte [0x106c5b71], 0
je 0x101cdd1f
cmp byte [esi - 0xc4], 0
je 0x101ce01f
movq xmm0, qword [esi]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi + 8]
sub esp, 0xc
mov ecx, esp
sub esp, 0x40
cmp byte [0x106c5c38], 0
movq qword [ecx], xmm0
movups xmm0, xmmword [0x106c3e80]
mov dword [ecx + 8], eax
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x106c3e90]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x106c3ea0]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x106c3eb0]
movups xmmword [eax + 0x30], xmm0
je 0x101cdd7d
call fcn.100032a0
add esp, 0x54
jmp 0x101cdd8d
call fcn.100032a0
add esp, 0x54
test eax, eax
je 0x101ce016
mov edi, dword [0x106c3ac8]
mov eax, edi
movss xmm1, dword [ebp - 0x30]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
mov eax, dword [0x106c3acc]
cvtdq2ps xmm0, xmm0
cdq
sub eax, edx
sar eax, 1
subss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x54], xmm1
movss xmm1, dword [ebp - 0x2c]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x1022f848]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
movsd xmm1, qword [0x1022f848]
movsd qword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x54]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
addsd xmm0, qword [ebp - 0x28]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x101cde07
sqrtsd xmm0, xmm0
jmp 0x101cde0c
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cmp byte [0x106c5c2d], 0
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x54], xmm0
je 0x101cde62
movss xmm0, dword [0x106c5c30]
push ecx
movss dword [esp], xmm0
push dword [ebp - 0x2c]
movd xmm0, dword [0x106c3acc]
push dword [ebp - 0x30]
cvtdq2ps xmm0, xmm0
sub esp, 8
movss dword [esp + 4], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.100029c0
add esp, 0x14
test al, al
je 0x101ce016
mov eax, dword [0x106c5e60]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x106c57e8]
cmp eax, dword [ecx + 4]
jg 0x101ce4a3
mov ecx, 0x106c4460
call fcn.101cb270
mov edi, 6
mul edi
cmp eax, edi
jae 0x101cdeb1
cmp eax, 4
jae 0x101cdeb1
nop dword [eax]
mov ecx, 0x106c4460
call fcn.101cb270
mul edi
cmp eax, 4
jb 0x101cdea0
movss xmm2, dword [ebp - 0x50]
lea eax, [edx - 0x80000000]
movss xmm3, dword [ebp - 0x54]
xor eax, 0x80000000
comiss xmm2, xmm3
mov dword [0x106c3f70], eax
jbe 0x101ce016
test eax, eax
jne 0x101cdf11
cmp byte [0x106c5d09], 0
movq xmm0, qword [esi]
mov eax, dword [esi + 8]
movq qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x44], eax
jne 0x101cdf02
movss xmm1, dword [ebp - 0x44]
addss xmm1, dword [0x106bfaac]
jmp 0x101cdff4
movss xmm0, dword [ebp - 0x44]
movss dword [ebp - 0x58], xmm0
jmp 0x101cdffe
cmp eax, 1
jne 0x101cdf2e
mov eax, dword [esi + 8]
mov dword [ebp - 0x44], eax
movss xmm1, dword [ebp - 0x44]
subss xmm1, dword [0x1029bc60]
jmp 0x101cdfd9
cmp eax, 2
jne 0x101cdf61
movq xmm0, qword [esi]
mov eax, dword [esi + 8]
movq qword [ebp - 0x4c], xmm0
movss xmm0, dword [ebp - 0x4c]
addss xmm0, dword [0x1029bc4c]
mov dword [ebp - 0x44], eax
movss xmm1, dword [ebp - 0x44]
subss xmm1, dword [0x1029bc68]
jmp 0x101cdfef
cmp eax, 3
jne 0x101cdf91
movq xmm0, qword [esi]
mov eax, dword [esi + 8]
movq qword [ebp - 0x4c], xmm0
movss xmm0, dword [ebp - 0x4c]
subss xmm0, dword [0x10263f6c]
mov dword [ebp - 0x44], eax
movss xmm1, dword [ebp - 0x44]
subss xmm1, dword [0x1026441c]
jmp 0x101cdfef
cmp eax, 4
jne 0x101cdfc1
movq xmm0, qword [esi]
mov eax, dword [esi + 8]
movq qword [ebp - 0x4c], xmm0
movss xmm0, dword [ebp - 0x4c]
subss xmm0, dword [0x1029bc4c]
mov dword [ebp - 0x44], eax
movss xmm1, dword [ebp - 0x44]
subss xmm1, dword [0x1032413c]
jmp 0x101cdfef
cmp eax, 5
jne 0x101cdffe
mov eax, dword [esi + 8]
mov dword [ebp - 0x44], eax
movss xmm1, dword [ebp - 0x44]
subss xmm1, dword [0x1022f888]
movq xmm0, qword [esi]
movq qword [ebp - 0x4c], xmm0
movss xmm0, dword [ebp - 0x4c]
addss xmm0, dword [0x1029bc54]
movss dword [ebp - 0x4c], xmm0
movss dword [ebp - 0x44], xmm1
movss dword [ebp - 0x58], xmm1
mov eax, dword [esi - 0x10]
movaps xmm0, xmm3
movss dword [ebp - 0x50], xmm0
movq xmm0, qword [esi - 0x18]
movq qword [ebp - 0x74], xmm0
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x60]
xorps xmm1, xmm1
mov eax, dword [ebp - 0x5c]
add eax, 0x17c
add esi, 0x17c
mov dword [ebp - 0x5c], eax
cmp eax, ecx
jne 0x101cdcf6
movss xmm0, dword [ebp - 0x48]
movss dword [ebp - 0x54], xmm0
movq xmm0, qword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov ecx, dword [0x1036d0e4]
movq qword [ebp - 0x28], xmm0
movq xmm0, qword [0x106c36d0]
mov dword [ebp - 0x20], eax
mov eax, dword [0x106c36d8]
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x101ce522
mov eax, dword [ecx]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [ebp - 0x50]
cmp byte [0x106c0b74], 0
fstp dword [ebp - 0x50]
movss xmm2, dword [ebp - 0x50]
je 0x101ce201
movss xmm0, dword [0x10324158]
movaps xmm4, xmm2
comiss xmm0, xmm2
divss xmm4, dword [0x106c371c]
jbe 0x101ce0bf
movss xmm3, dword [0x1032411c]
jmp 0x101ce19a
movss xmm0, dword [0x1032415c]
comiss xmm0, xmm2
jbe 0x101ce0d9
movss xmm3, dword [0x10324118]
jmp 0x101ce19a
movss xmm0, dword [0x10324160]
comiss xmm0, xmm2
jbe 0x101ce0f3
movss xmm3, dword [0x10324100]
jmp 0x101ce19a
movss xmm0, dword [0x10324164]
comiss xmm0, xmm2
jbe 0x101ce10d
movss xmm3, dword [0x10324104]
jmp 0x101ce19a
movss xmm0, dword [0x10324168]
comiss xmm0, xmm2
jbe 0x101ce124
movss xmm3, dword [0x1029bbbc]
jmp 0x101ce19a
movss xmm0, dword [0x1032416c]
comiss xmm0, xmm2
jbe 0x101ce13b
movss xmm3, dword [0x10324108]
jmp 0x101ce19a
movss xmm0, dword [0x10324170]
comiss xmm0, xmm2
jbe 0x101ce152
movss xmm3, dword [0x1032410c]
jmp 0x101ce19a
movss xmm0, dword [0x10324174]
comiss xmm0, xmm2
jbe 0x101ce169
movss xmm3, dword [0x10324110]
jmp 0x101ce19a
movss xmm0, dword [0x10324178]
comiss xmm0, xmm2
jbe 0x101ce180
movss xmm3, dword [0x10324114]
jmp 0x101ce19a
movss xmm0, dword [0x1032417c]
comiss xmm0, xmm2
jbe 0x101ce197
movss xmm3, dword [0x102ed43c]
jmp 0x101ce19a
xorps xmm3, xmm3
movaps xmm0, xmm4
movaps xmm1, xmm4
mulss xmm0, dword [ebp - 0x74]
mulss xmm1, dword [ebp - 0x6c]
mulss xmm0, dword [0x106bfab0]
mulss xmm1, xmm3
addss xmm0, dword [ebp - 0x4c]
movss dword [ebp - 0x4c], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [ebp - 0x70]
mulss xmm0, dword [0x106bfab0]
addss xmm0, dword [ebp - 0x54]
movss dword [ebp - 0x54], xmm0
movss dword [ebp - 0x48], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x10324150]
mulss xmm0, xmm4
addss xmm0, xmm1
addss xmm0, dword [ebp - 0x58]
movss dword [ebp - 0x58], xmm0
movss dword [ebp - 0x44], xmm0
cmp byte [0x106c5cc0], 0
je 0x101ce338
divss xmm2, dword [0x1022f888]
movss xmm0, dword [0x106bff74]
comiss xmm0, xmm2
jb 0x101ce461
fld dword [ebp - 0x4c]
fst dword [ebp - 0x50]
movss xmm0, dword [ebp - 0x50]
ucomiss xmm0, xmm0
setp al
cmp al, 1
je 0x101ce45f
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__fdclass
add esp, 4
cmp ax, 1
je 0x101ce461
movq xmm0, qword [ebp - 0x4c]
movss xmm3, dword [ebp - 0x54]
movss xmm2, dword [ebp - 0x4c]
subss xmm2, dword [0x106c3670]
subss xmm3, dword [0x106c3674]
movq qword [0x106c4404], xmm0
movss xmm0, dword [ebp - 0x58]
subss xmm0, dword [0x106c3678]
mov eax, dword [ebp - 0x44]
movaps xmm1, xmm3
mov dword [0x106c440c], eax
mulss xmm1, xmm3
cvtps2pd xmm0, xmm0
movss dword [ebp - 0x50], xmm2
movsd qword [ebp - 0x30], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movss dword [ebp - 0x54], xmm3
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x101ce2c8
sqrtsd xmm0, xmm0
jmp 0x101ce2cd
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
fld qword [ebp - 0x30]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x10263f74]
divss xmm0, dword [0x102f1178]
movss dword [ebp - 0x68], xmm0
movss xmm0, dword [ebp - 0x54]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x50]
fld qword [ebp - 0x28]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
jmp 0x101ce444
fld dword [ebp - 0x4c]
fst dword [ebp - 0x50]
movss xmm0, dword [ebp - 0x50]
ucomiss xmm0, xmm0
setp al
cmp al, 1
je 0x101ce45f
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__fdclass
add esp, 4
cmp ax, 1
je 0x101ce461
movq xmm0, qword [ebp - 0x4c]
movss xmm3, dword [ebp - 0x54]
movss xmm2, dword [ebp - 0x4c]
subss xmm2, dword [0x106c3670]
subss xmm3, dword [0x106c3674]
movq qword [0x106c4404], xmm0
movss xmm0, dword [ebp - 0x58]
subss xmm0, dword [0x106c3678]
mov eax, dword [ebp - 0x44]
movaps xmm1, xmm3
mov dword [0x106c440c], eax
mulss xmm1, xmm3
cvtps2pd xmm0, xmm0
movss dword [ebp - 0x50], xmm2
movsd qword [ebp - 0x30], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movss dword [ebp - 0x54], xmm3
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x101ce3d9
sqrtsd xmm0, xmm0
jmp 0x101ce3de
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
fld qword [ebp - 0x30]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x10263f74]
divss xmm0, dword [0x102f1178]
movss dword [ebp - 0x68], xmm0
movss xmm0, dword [ebp - 0x54]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x50]
fld qword [ebp - 0x28]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x10263f74]
divss xmm0, dword [0x102f1178]
movss dword [ebp - 0x64], xmm0
jmp 0x101ce47f
fstp st(0)
mov dword [0x106c4404], 0
mov dword [0x106c4408], 0
mov dword [0x106c440c], 0
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10229364
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x106c57e8
call fcn.102293ee
add esp, 4
cmp dword [0x106c57e8], 0xffffffff
jne 0x101cde82
mov dword [ebp - 4], 0
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [0x106c57e4], 0xffffffff
mov edx, 1
mov dword [0x106c4464], eax
jmp 0x101ce4e0
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x106c4464], eax
inc edx
cmp edx, 0x270
jb 0x101ce4e0
push 0x106c57e8
mov dword [0x106c4460], 0x270
mov dword [ebp - 4], 0xffffffff
call fcn.1022939d
add esp, 4
jmp 0x101cde82
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3