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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ecx], 4
push ebx
push esi
push edi
je 0x100025eb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
mov dword [ebp - 0x40], eax
call fcn.1008285b
mov esi, eax
mov ebx, edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
call fcn.10082844
push ebx
push ebx
push esi
push edx
push eax
call fcn.100855b0
mov esi, ebx
pop ebx
push 0
push 0x3b9aca00
push esi
push ecx
mov dword [ebp - 0x3c], eax
mov edi, edx
call fcn.10085690
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push edx
push eax
call fcn.100852d0
mov ebx, eax
mov esi, edx
mov ecx, 0x3b9aca00
mov eax, edi
mov edi, dword [ebp - 0x40]
mul ecx
mov edx, 0x3b9aca00
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mul edx
push 0
add ecx, edx
add ebx, eax
push 0x3e8
adc esi, ecx
sub ebx, dword [edi + 0x90]
sbb esi, dword [edi + 0x94]
push esi
push ebx
call fcn.100852d0
mov ecx, eax
call fcn.10085a20
divsd xmm0, qword [0x100e6298]
mov ecx, dword [edi + 0x64]
mov esi, 0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea edx, [ebx + 0xc8]
cvttsd2si eax, xmm0
sub ecx, eax
lea eax, [edi - 0x3c]
cmovns esi, ecx
cmp byte [ebp + 8], 0
mov dword [ebp - 0x44], esi
jne 0x100026c8
mov ecx, dword [0xa7ab8c]
push 0xffffffffffffffff
push 0
push edi
push edx
push eax
push ebx
push dword [0x100f32a0]
mov eax, 0x8e1223
xor edx, edx
call eax
jmp 0x1000297b
cmp byte [0x100f32b5], 0
lea ecx, [eax + 0x14]
mov ebx, dword [0x100f3404]
mov dword [ebp - 0x4c], ebx
mov ebx, dword [0x100f33fc]
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], ecx
je 0x10002760
mov ecx, eax
mov edi, dword [0x100f33f0]
imul ecx, dword [0x100f33f4]
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 0x3c]
imul ecx, dword [0x100f33f4]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea eax, [ebx + 0xc8]
imul eax, edi
imul edi, ebx
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, edi
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
push ecx
sar eax, 0xa
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp + 0xc]
jmp 0x1000276c
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x30]
push 0xffffffffffffffff
push 0x105
push edx
mov eax, dword [ecx]
push 0xffffffffffffffff
push dword [ebp - 0x40]
push dword [ebp - 0x4c]
push ecx
call dword [eax + 0x38]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100f29c4]
mov dword [ebp - 0x28], 0x4a1c1e0b
mov dword [ebp - 0x24], 0x1c1e0b14
mov word [ebp - 0x20], 0x2e4a
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10100a60]
cmp eax, dword [ecx + 4]
jle 0x1000280d
push 0x10100a60
call fcn.10084984
add esp, 4
cmp dword [0x10100a60], 0xffffffff
jne 0x1000280d
movaps xmm0, xmmword [0x100e6370]
mov ax, word [ebp - 0x20]
movups xmmword [0x10100a40], xmm0
push 0x100c2d00
movq xmm0, qword [ebp - 0x28]
movq qword [0x10100a50], xmm0
mov word [0x10100a58], ax
call fcn.10084d5f
add esp, 4
push 0x10100a60
call fcn.1008493a
add esp, 4
cmp byte [0x10100a59], 0
je 0x10002841
movups xmm0, xmmword [0x10100a40]
mov eax, 0x10
movaps xmm1, xmmword [0x100e64a0]
pxor xmm1, xmm0
movups xmmword [0x10100a40], xmm1
xor byte [eax + 0x10100a40], 0x2e
inc eax
cmp eax, 0x1a
jb 0x10002834
mov eax, 0x88888889
mov ecx, 0x3c
imul esi
add edx, esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, esi
cdq
idiv ecx
mov ecx, esi
shl ecx, 4
sub ecx, esi
mov esi, dword [ebp - 0x44]
shl ecx, 2
sub esi, ecx
push esi
push edx
push eax
lea eax, [ebp - 0x1c]
push 0x10100a40
push eax
call fcn.10002b80
mov esi, dword [0x100f3404]
lea ecx, [edi - 0xf]
add esp, 0x14
mov dword [ebp - 0x3c], esi
cmp byte [0x100f32b5], 0
lea edx, [ebx + 0x48]
mov esi, dword [0x100f33fc]
lea eax, [ebx + 0x80]
je 0x10002916
mov edi, dword [0x100f33f4]
mov eax, 0x2aaaaaab
imul ecx, edi
imul edi, dword [ebp + 0xc]
imul ecx
lea eax, [ebx + 0x80]
imul eax, dword [0x100f33f0]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push ecx
push eax
mov eax, 0x2aaaaaab
imul edi
lea eax, [ebx + 0x48]
imul eax, dword [0x100f33f0]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
push ecx
sar eax, 0xa
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp + 0xc]
jmp 0x10002922
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push 0xffffffffffffffff
push 0x105
push ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x3c]
push esi
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x40]
lea eax, [ebx + 0x3c]
push 1
push 5
push edi
push eax
lea esi, [edi - 0x3c]
push esi
lea edx, [ebx + 0xc]
lea ecx, [ecx + 0x68]
call fcn.100175e0
mov ecx, dword [ebp - 0x40]
lea eax, [ebx + 0xc8]
add esp, 0x14
lea edx, [ebx + 0x82]
lea ecx, [ecx + 0x7c]
push 1
push 5
push edi
push eax
push esi
call fcn.100175e0
add esp, 0x14
mov ecx, dword [ebp - 8]
mov eax, 0x3c
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084864
mov esp, ebp
pop ebp
ret