Function at 0x10091a10
Capabilities:
Encode data using xor
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7929
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x100d99c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov edx, dword [0x100c712c]
mov dword [ebp - 0x18], edx
test edx, edx
je 0x100921e8
mov eax, dword [0x100f6c04]
add eax, 0xffffffcc
xor eax, 0x920a48e6
cmp dword [eax + edx], 0
jne 0x100921e8
cmp byte [0x100cf090], 0
je 0x10091b42
mov esi, dword [edx + 0xba90]
mov ecx, dword [0x100f7838]
cmp esi, ecx
jle 0x10091b31
lea edi, [esi + esi*4]
shl edi, 2
mov ecx, dword [0x100f69d8]
mov edx, dword [edx + 0xba84]
push ecx
mov dword [esp], 0x40800000
add edx, 0xffffffec
push 0x7f
push 0
push 0
mov dword [ebp - 0x24], 0
add edx, edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x104], 0x40000000
mov dword [ebp - 0x100], 0x40000000
mov dword [ebp - 0xfc], 0x40000000
mov dword [ebp - 0x30], 0xc0000000
mov dword [ebp - 0x2c], 0xc0000000
mov dword [ebp - 0x28], 0xc0000000
mov eax, dword [ecx]
lea ecx, [ebp - 0x24]
push 0xff
push ecx
lea ecx, [ebp - 0x104]
mov eax, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [0x100f69d8]
push edx
call eax
mov ecx, dword [0x100f7838]
dec esi
mov edx, dword [ebp - 0x18]
add edi, 0xffffffec
cmp esi, ecx
jg 0x10091a93
mov eax, dword [edx + 0xba90]
cmp eax, ecx
cmovne ecx, eax
mov dword [0x100f7838], ecx
mov edx, dword [0x100f77d8]
test edx, edx
je 0x100921e8
mov ecx, dword [0x100f77ec]
test ecx, ecx
je 0x100921e8
mov eax, dword [0x100f69fc]
cmp dword [0x100f783c], ecx
je 0x10091b88
movss xmm0, dword [eax + 0x20]
addss xmm0, dword [eax + 0x10]
mov dword [0x100f783c], ecx
movss dword [0x100d9688], xmm0
jmp 0x100921e8
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [0x100d9688]
jb 0x100921e8
mov eax, dword [0x100f77e8]
add eax, ecx
mov dword [0x100d9688], 0x7f7fffff
mov ecx, dword [0x100f77e4]
mov dword [ebp - 0x1c], eax
dec ecx
dec eax
and ecx, eax
mov eax, dword [0x100f77e0]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x100f77d0]
dec ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x114], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xfc], eax
mov eax, dword [0x100f77d4]
add eax, edx
movq qword [ebp - 0x104], xmm0
mov dword [ebp - 0x1c], eax
dec eax
and ecx, eax
mov eax, dword [0x100f77cc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
add ecx, 8
mov eax, dword [eax + 0x28]
call eax
imul edi, eax, 0x544
cmp byte [ebp - 0x34], 0
jne 0x100921cd
cmp byte [ebp - 0x113], 0
jne 0x10091d19
movaps xmm0, xmmword [0x100bb620]
mov eax, 0x10
pxor xmm0, xmmword [0x100bd670]
mov dword [ebp - 0x104], 0xdf8cc3d8
mov dword [ebp - 0x100], 0xcdc9dedc
mov word [ebp - 0xfc], 0xa6c8
mov byte [ebp - 0xfa], 0xac
movups xmmword [ebp - 0x114], xmm0
nop dword [eax]
xor byte [ebp + eax - 0x114], 0xac
inc eax
cmp eax, 0x1b
jb 0x10091c70
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.1002a2c0
mov eax, dword [0x100d9664]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 0x41000000
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10027dd0
add esp, 0x18
mov edx, eax
mov ecx, dword [0x100f6ba4]
mov byte [ebp - 4], 1
cmp ecx, dword [0x100f6ba8]
je 0x10091d04
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dword [edx], 0
mov dword [edx + 4], 0
add dword [0x100f6ba4], 8
mov byte [ebp - 4], 0
jmp 0x10091e90
push edx
push ecx
mov ecx, 0x100f6ba0
call fcn.100277d0
mov byte [ebp - 4], 0
jmp 0x10091e90
mov esi, dword [0x100f77d4]
xorps xmm2, xmm2
add esi, dword [0x100f77d8]
mov eax, dword [0x100f77d0]
dec eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x40], esi
lea ecx, [esi - 1]
and ecx, eax
mov eax, dword [0x100f77cc]
mov edx, dword [eax + ecx*4]
lea ecx, [esi - 1]
mov eax, dword [0x100f77d0]
dec eax
and ecx, eax
mov eax, dword [0x100f77cc]
mov eax, dword [eax + ecx*4]
movss xmm1, dword [eax + 0x14]
subss xmm1, dword [ebp - 0x110]
movss xmm0, dword [eax + 0x18]
subss xmm0, dword [ebp - 0x10c]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm0, xmm1
movss xmm1, dword [edx + 0x14]
subss xmm1, dword [ebp - 0x104]
sqrtss xmm2, xmm0
movss xmm0, dword [edx + 0x18]
subss xmm0, dword [ebp - 0x100]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm0, xmm1
sqrtss xmm0, xmm0
comiss xmm2, xmm0
jbe 0x10091ee8
movaps xmm0, xmmword [0x100bb620]
mov eax, 0x10
pxor xmm0, xmmword [0x100bd670]
mov dword [ebp - 0x104], 0xc38cc3d8
mov dword [ebp - 0x100], 0xd9c0cfcf
mov dword [ebp - 0xfc], 0xc2c3c5df
mov word [ebp - 0xf8], 0xaca6
movups xmmword [ebp - 0x114], xmm0
xor byte [ebp + eax - 0x114], 0xac
inc eax
cmp eax, 0x1e
jb 0x10091df3
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.1002a2c0
mov eax, dword [0x100d9664]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], 0x41000000
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10027dd0
add esp, 0x18
mov edx, eax
mov ecx, dword [0x100f6ba4]
mov byte [ebp - 4], 3
cmp ecx, dword [0x100f6ba8]
je 0x10091e80
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dword [edx], 0
mov dword [edx + 4], 0
add dword [0x100f6ba4], 8
jmp 0x10091e8c
push edx
push ecx
mov ecx, 0x100f6ba0
call fcn.100277d0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x10091eba
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10091eba
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x10091eba
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.10027ea0
push 0x100c7128
call fcn.10032370
inc dword [edi + 0x100d9778]
lea ecx, [ebp - 0x3c]
add esp, 0x1c
call fcn.1001f960
jmp 0x100921e8
mov eax, dword [0x100f77d0]
dec eax
mov dword [ebp - 0x40], esi
dec esi
and esi, eax
mov eax, dword [0x100f77cc]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x414]
cmp eax, 4
jne 0x10091f12
inc dword [edi + 0x100d975c]
jmp 0x10091f37
cmp eax, 3
jne 0x10091f1f
inc dword [edi + 0x100d9740]
jmp 0x10091f37
cmp eax, 2
jne 0x10091f2c
inc dword [edi + 0x100d9be4]
jmp 0x10091f37
cmp eax, 7
jne 0x10091f37
inc dword [edi + 0x100d9748]
movaps xmm0, xmmword [0x100bd670]
inc dword [edi + 0x100d9778]
movaps xmm1, xmmword [0x100bb620]
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x18], eax
xor eax, eax
movaps xmm0, xmmword [0x100bd660]
movups xmmword [ebp - 0x128], xmm0
mov word [ebp - 0x118], 0xaca6
nop
movups xmm0, xmmword [ebp + eax - 0x138]
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0x138], xmm0
add eax, 0x10
cmp eax, 0x20
jb 0x10091f70
cmp eax, 0x22
jae 0x10091f9f
xor byte [ebp + eax - 0x138], 0xac
inc eax
cmp eax, 0x22
jb 0x10091f91
push 0x98
lea eax, [ebp - 0xf4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xf4], 0x100bb668
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xf0]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x14], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf4], 0x100bb664
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xf8], eax
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xf0], 0x100bb4b0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 4
lea eax, [ebp - 0x104]
mov dword [ebp - 0x2c], 0x1003e3c0
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x104]
movq xmm0, qword [ebp - 0x30]
push 1
push eax
lea eax, [ebp - 0x138]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x108], 1
push eax
movq qword [ebp - 0x104], xmm0
mov dword [ebp - 0xfc], 0x1003e800
call fcn.1002a440
add esp, 0x10
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0xf0]
push eax
call fcn.1002a980
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf4], 0x100bb664
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xf8], eax
lea ecx, [ebp - 0xf0]
call fcn.1001f9b0
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [0x100d9664]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 7
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x14], 0x41000000
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10027dd0
add esp, 0x10
mov edx, eax
mov ecx, dword [0x100f6ba4]
mov byte [ebp - 4], 8
cmp ecx, dword [0x100f6ba8]
je 0x10092170
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dword [edx], 0
mov dword [edx + 4], 0
add dword [0x100f6ba4], 8
jmp 0x1009217c
push edx
push ecx
mov ecx, 0x100f6ba0
call fcn.100277d0
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 7
test edi, edi
je 0x100921a8
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100921a8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x100921a8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.10027ea0
push 0x100c7128
call fcn.10032370
add esp, 0x1c
lea ecx, [ebp - 0x5c]
call fcn.1001f960
jmp 0x100921e8
add dword [0x100f77ec], 0xffffffff
jne 0x100921e2
mov dword [0x100f77e8], 0
jmp 0x100921e8
inc dword [0x100f77e8]
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.100ae337
mov esp, ebp
pop ebp
ret