Function at 0x100246a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x90
mov ebx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
lea esi, [ebx + 3]
mov edi, ecx
and esi, 0xfffffffc
mov eax, esi
sub eax, ebx
sub edi, eax
jb 0x100246d1
cmp edi, 4
jae 0x10024783
xor eax, eax
test ecx, ecx
je 0x10024bac
cmp ecx, 8
mov edx, 0
jb 0x1002476b
movdqa xmm2, xmmword [0x1005fdf0]
movdqa xmm3, xmmword [0x1002d3d0]
mov edx, ecx
lea eax, [ebx + 4]
pxor xmm0, xmm0
pxor xmm1, xmm1
and edx, 0xfffffff8
mov edi, edx
nop dword [eax + eax]
movd xmm5, dword [eax - 4]
movd xmm4, dword [eax]
add eax, 8
add edi, 0xfffffff8
pcmpgtb xmm5, xmm2
pcmpgtb xmm4, xmm2
punpcklbw xmm5, xmm5
punpcklwd xmm5, xmm5
pand xmm5, xmm3
paddd xmm0, xmm5
punpcklbw xmm4, xmm4
punpcklwd xmm4, xmm4
pand xmm4, xmm3
paddd xmm1, xmm4
jne 0x10024710
paddd xmm1, xmm0
cmp edx, ecx
pshufd xmm0, xmm1, 0xee
paddd xmm0, xmm1
pshufd xmm1, xmm0, 0x55
paddd xmm1, xmm0
movd eax, xmm1
je 0x10024bac
sub ecx, edx
add ebx, edx
nop
xor edx, edx
cmp byte [ebx], 0xc0
setge dl
inc ebx
add eax, edx
dec ecx
jne 0x10024770
jmp 0x10024bac
mov dword [esp + 0x10], eax
mov eax, edi
xor edx, edx
mov ecx, 0
and eax, 3
cmp esi, ebx
je 0x100247be
mov ecx, dword [esp + 0xa4]
mov ebp, ecx
sub ebp, esi
mov esi, ecx
xor ecx, ecx
nop word cs:[eax + eax]
xor ebx, ebx
cmp byte [esi], 0xc0
setge bl
inc esi
add ecx, ebx
inc ebp
jne 0x100247b0
mov esi, dword [esp + 0xa4]
mov ebp, ecx
add esi, dword [esp + 0x10]
test eax, eax
je 0x100247ee
mov ebx, edi
xor edx, edx
and ebx, 0xfffffffc
add ebx, esi
nop dword [eax + eax]
xor ecx, ecx
cmp byte [ebx], 0xc0
setge cl
inc ebx
add edx, ecx
dec eax
jne 0x100247e0
movdqa xmm3, xmmword [0x1002d7c0]
add edx, ebp
shr edi, 2
pcmpeqd xmm2, xmm2
jmp 0x10024844
xor ebp, ebp
mov edx, ebp
shr ebp, 8
mov edi, ecx
and edx, 0xff00ff
and ebp, 0xff00ff
sub edi, ebx
add ebp, edx
mov edx, ebp
shl edx, 0x10
add edx, ebp
shr edx, 0x10
add edx, eax
mov eax, dword [esp]
test bl, 3
lea esi, [eax + ebx*4]
jne 0x10024b52
mov eax, edx
mov ecx, edi
test edi, edi
je 0x10024bac
cmp ecx, 0xc0
mov ebx, 0xc0
mov edi, esi
mov dword [esp], esi
cmovb ebx, ecx
mov edx, ebx
and edx, 0xfc
mov dword [esp + 0xc], edx
je 0x10024810
mov esi, ebx
xor ebp, ebp
shr esi, 2
lea edx, [esi - 1]
and edx, 0xfffffff
cmp edx, 7
jb 0x10024b06
inc edx
mov ebp, dword [esp]
pxor xmm3, xmm3
pxor xmm2, xmm2
mov dword [esp + 8], edx
and edx, 0xfffffff8
mov edi, edx
mov dword [esp + 4], edx
shl edi, 4
add edi, ebp
add ebp, 0x40
nop dword [eax + eax]
movdqu xmm5, xmmword [ebp - 0x20]
movdqu xmmword [esp + 0x70], xmm2
movdqu xmm1, xmmword [ebp - 0x40]
movdqu xmm2, xmmword [ebp - 0x10]
movdqu xmmword [esp + 0x80], xmm3
movdqu xmm3, xmmword [ebp - 0x30]
movdqu xmm7, xmmword [ebp + 0x10]
movdqu xmm4, xmmword [ebp + 0x30]
movdqa xmm0, xmm5
movdqu xmmword [esp + 0x20], xmm2
movdqu xmmword [esp + 0x50], xmm3
movdqu xmmword [esp + 0x10], xmm1
movdqu xmmword [esp + 0x40], xmm7
punpckldq xmm0, xmm2
movdqa xmm2, xmm1
movdqu xmm1, xmmword [ebp + 0x20]
punpckldq xmm2, xmm3
movdqu xmm3, xmmword [ebp]
sub ebp, 0xffffff80
add edx, 0xfffffff8
movdqa xmm6, xmm2
punpckhqdq xmm2, xmm0
movdqu xmmword [esp + 0x60], xmm2
punpcklqdq xmm6, xmm0
movdqa xmm0, xmm1
punpckhdq xmm1, xmm4
movdqa xmm2, xmm3
punpckldq xmm0, xmm4
movdqu xmm4, xmmword [esp + 0x40]
punpckldq xmm2, xmm7
movdqa xmm7, xmm2
punpckhqdq xmm2, xmm0
punpcklqdq xmm7, xmm0
movdqu xmm0, xmmword [esp + 0x20]
movdqu xmmword [esp + 0x30], xmm7
movdqu xmm7, xmmword [esp + 0x50]
punpckhdq xmm3, xmm4
punpckhdq xmm5, xmm0
movdqu xmm0, xmmword [esp + 0x10]
punpckhdq xmm0, xmm7
movdqu xmm7, xmmword [esp + 0x60]
movdqa xmm4, xmm0
punpckhqdq xmm0, xmm5
punpcklqdq xmm4, xmm5
movdqa xmm5, xmm3
punpckhqdq xmm3, xmm1
movdqu xmmword [esp + 0x10], xmm0
movdqa xmm0, xmm6
psrld xmm6, 6
movdqu xmmword [esp + 0x20], xmm3
movdqu xmm3, xmmword [esp + 0x30]
punpcklqdq xmm5, xmm1
pcmpeqd xmm1, xmm1
pxor xmm0, xmm1
psrld xmm0, 7
por xmm6, xmm0
movdqa xmm0, xmm3
psrld xmm3, 6
pxor xmm0, xmm1
movdqa xmm1, xmmword [0x1002d7c0]
psrld xmm0, 7
por xmm3, xmm0
movdqu xmm0, xmmword [esp + 0x80]
pand xmm6, xmm1
pand xmm3, xmm1
paddd xmm6, xmm0
movdqu xmm0, xmmword [esp + 0x70]
paddd xmm3, xmm0
movdqa xmm0, xmm7
psrld xmm7, 6
movdqu xmmword [esp + 0x30], xmm3
pcmpeqd xmm3, xmm3
pxor xmm0, xmm3
psrld xmm0, 7
por xmm7, xmm0
movdqa xmm0, xmm2
psrld xmm2, 6
pxor xmm0, xmm3
pand xmm7, xmm1
psrld xmm0, 7
por xmm2, xmm0
movdqa xmm0, xmm4
psrld xmm4, 6
pxor xmm0, xmm3
pand xmm2, xmm1
psrld xmm0, 7
por xmm4, xmm0
movdqa xmm0, xmm5
psrld xmm5, 6
pxor xmm0, xmm3
movdqu xmm3, xmmword [esp + 0x30]
pand xmm4, xmm1
psrld xmm0, 7
paddd xmm4, xmm7
por xmm5, xmm0
paddd xmm4, xmm6
pcmpeqd xmm6, xmm6
pand xmm5, xmm1
paddd xmm5, xmm2
paddd xmm5, xmm3
movdqu xmm3, xmmword [esp + 0x10]
movdqa xmm2, xmm3
psrld xmm3, 6
pxor xmm2, xmm6
psrld xmm2, 7
por xmm3, xmm2
movdqu xmm2, xmmword [esp + 0x20]
pand xmm3, xmm1
paddd xmm3, xmm4
movdqa xmm7, xmm2
psrld xmm2, 6
pxor xmm7, xmm6
psrld xmm7, 7
por xmm2, xmm7
pand xmm2, xmm1
paddd xmm2, xmm5
jne 0x100248b0
mov edx, dword [esp + 4]
paddd xmm2, xmm3
movdqa xmm3, xmmword [0x1002d7c0]
pshufd xmm0, xmm2, 0xee
paddd xmm0, xmm2
pcmpeqd xmm2, xmm2
pshufd xmm1, xmm0, 0x55
cmp dword [esp + 8], edx
paddd xmm1, xmm0
movd ebp, xmm1
je 0x10024812
shl esi, 4
add esi, dword [esp]
nop dword [eax]
movdqu xmm0, xmmword [edi]
add edi, 0x10
movdqa xmm1, xmm0
psrld xmm0, 6
pxor xmm1, xmm2
psrld xmm1, 7
por xmm0, xmm1
pand xmm0, xmm3
pshufd xmm1, xmm0, 0xee
paddd xmm1, xmm0
pshufd xmm0, xmm1, 0x55
paddd xmm0, xmm1
movd edx, xmm0
add ebp, edx
cmp edi, esi
jne 0x10024b10
jmp 0x10024812
mov esi, dword [esp + 0xc]
cmp ecx, 0xc0
lea eax, [eax + esi*4]
mov esi, 0xc0
cmovb esi, ecx
xor ecx, ecx
and esi, 3
shl esi, 2
nop
mov edi, dword [eax]
add eax, 4
mov ebx, edi
shr edi, 6
not ebx
shr ebx, 7
or edi, ebx
and edi, 0x1010101
add ecx, edi
add esi, 0xfffffffc
jne 0x10024b70
mov eax, ecx
shr ecx, 8
and eax, 0xff00ff
and ecx, 0xff00ff
add ecx, eax
mov eax, ecx
shl eax, 0x10
add eax, ecx
shr eax, 0x10
add eax, edx
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret