Function at 0x40fe00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
lea esi, [ecx + 3]
xor edi, edi
and esi, 0xfffffffc
mov eax, esi
sub eax, ecx
sub edx, eax
mov eax, edx
mov dword [esp], edx
mov edx, esi
and eax, 3
cmp esi, ecx
mov esi, 0
je 0x40fe3e
mov ebp, ecx
xor esi, esi
sub ebp, edx
nop
xor ebx, ebx
cmp byte [ecx], 0xc0
setge bl
inc ecx
add esi, ebx
inc ebp
jne 0x40fe30
test eax, eax
je 0x40fe5e
mov ecx, dword [esp]
xor edi, edi
and ecx, 0xfffffffc
add ecx, edx
nop dword [eax]
xor ebx, ebx
cmp byte [ecx], 0xc0
setge bl
inc ecx
add edi, ebx
dec eax
jne 0x40fe50
mov ecx, dword [esp]
movdqa xmm2, xmmword [0x44a280]
add edi, esi
pcmpeqd xmm7, xmm7
mov ebx, edx
shr ecx, 2
jmp 0x40feb4
mov ecx, eax
shr eax, 8
lea ebx, [ebp + esi*4]
and ecx, 0xff00ff
and eax, 0xff00ff
add eax, ecx
mov ecx, edx
mov edi, eax
sub ecx, esi
shl edi, 0x10
add edi, eax
mov eax, esi
shr edi, 0x10
and eax, 3
add edi, dword [esp]
test eax, eax
jne 0x410062
mov eax, edi
test ecx, ecx
je 0x4100bc
cmp ecx, 0xc0
mov esi, 0xc0
mov ebp, ebx
mov dword [esp], eax
mov edx, ecx
cmovb esi, ecx
xor eax, eax
cmp esi, 4
jb 0x40fe80
mov edi, esi
xor eax, eax
mov ebx, ebp
shr edi, 2
lea ecx, [edi - 1]
and ecx, 0xfffffff
cmp ecx, 3
jb 0x410015
inc ecx
pxor xmm3, xmm3
mov eax, ecx
mov dword [esp + 8], ecx
mov ecx, ebp
and eax, 0xfffffffc
mov ebx, eax
mov dword [esp + 4], eax
shl ebx, 4
nop
movdqu xmm2, xmmword [ecx]
movdqu xmm1, xmmword [ecx + 0x20]
movdqu xmm4, xmmword [ecx + 0x10]
movdqu xmm7, xmmword [ecx + 0x30]
add ecx, 0x40
add eax, 0xfffffffc
movdqa xmm5, xmm2
movdqa xmm0, xmm1
punpckhdq xmm1, xmm7
punpckhdq xmm2, xmm4
punpckldq xmm5, xmm4
punpckldq xmm0, xmm7
pcmpeqd xmm7, xmm7
movdqa xmm4, xmm2
punpckhqdq xmm2, xmm1
movdqa xmm6, xmm5
punpckhqdq xmm5, xmm0
punpcklqdq xmm4, xmm1
movdqa xmm1, xmmword [0x44a280]
punpcklqdq xmm6, xmm0
movdqa xmm0, xmm6
psrld xmm6, 6
pxor xmm0, xmm7
psrld xmm0, 7
por xmm6, xmm0
movdqa xmm0, xmm5
psrld xmm5, 6
pxor xmm0, xmm7
pand xmm6, xmm1
psrld xmm0, 7
paddd xmm6, xmm3
movdqa xmm3, xmm2
psrld xmm2, 6
por xmm5, xmm0
movdqa xmm0, xmm4
pxor xmm3, xmm7
psrld xmm4, 6
pxor xmm0, xmm7
psrld xmm3, 7
pand xmm5, xmm1
psrld xmm0, 7
por xmm2, xmm3
por xmm4, xmm0
pand xmm2, xmm1
pand xmm4, xmm1
movdqa xmm3, xmm2
paddd xmm4, xmm5
paddd xmm4, xmm6
paddd xmm3, xmm4
jne 0x40ff10
mov ecx, dword [esp + 4]
pshufd xmm0, xmm3, 0xee
movdqa xmm2, xmmword [0x44a280]
paddd xmm0, xmm3
pshufd xmm1, xmm0, 0x55
paddd xmm1, xmm0
cmp dword [esp + 8], ecx
movd eax, xmm1
je 0x40fe80
add ebx, ebp
shl edi, 4
add edi, ebp
nop word [eax + eax]
movdqu xmm0, xmmword [ebx]
add ebx, 0x10
movdqa xmm1, xmm0
psrld xmm0, 6
pxor xmm1, xmm7
psrld xmm1, 7
por xmm0, xmm1
pand xmm0, xmm2
pshufd xmm1, xmm0, 0xee
paddd xmm1, xmm0
pshufd xmm0, xmm1, 0x55
paddd xmm0, xmm1
movd ecx, xmm0
add eax, ecx
cmp ebx, edi
jne 0x410020
jmp 0x40fe80
and esi, 0xfc
shl eax, 2
xor ecx, ecx
lea edx, [ebp + esi*4]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov esi, dword [edx]
add edx, 4
mov ebx, esi
shr esi, 6
not ebx
shr ebx, 7
or esi, ebx
and esi, 0x1010101
add ecx, esi
add eax, 0xfffffffc
jne 0x410080
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, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret