Function at 0x4044c0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
pxor xmm0, xmm0
movdqu xmmword [esp + 0x30], xmm0
movdqu xmmword [esp + 0x20], xmm0
cmp edx, 2
jg 0x404502
cmp byte [ecx], 0x2e
jne 0x404502
movzx eax, byte [ecx + 1]
mov dword [esp + 4], 0
test eax, eax
je 0x4044f6
cmp eax, 0x2e
jne 0x404502
mov eax, dword [esp + 4]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 4], 0x67452301
nop word cs:[eax + eax]
cmp edx, 0x10
mov edi, 0x10
cmovl edi, edx
mov eax, edx
shl eax, 8
or eax, edx
mov esi, eax
shl esi, 0x10
or esi, eax
test edx, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], edx
jle 0x4045b0
cmp edi, 1
mov dword [esp + 0x18], edi
jne 0x4045e0
mov ebx, 4
xor eax, eax
mov edi, esi
lea edx, [esp + 0x20]
mov dword [esp], edx
test byte [esp + 0x18], 1
je 0x40458d
mov edx, eax
and edx, 3
cmove edi, esi
movzx eax, byte [ecx + eax]
shl edi, 8
or edi, eax
cmp edx, 3
jne 0x40458d
mov eax, dword [esp]
mov dword [eax], edi
add eax, 4
mov dword [esp], eax
dec ebx
mov edi, esi
test ebx, ebx
jle 0x4046ab
mov eax, dword [esp]
mov dword [eax], edi
cmp ebx, 1
jne 0x4045c0
jmp 0x4046ab
mov dword [esp + 0x20], esi
mov ebx, 4
lea eax, [esp + 0x20]
mov dword [esp], eax
mov ecx, ebx
sub ecx, 2
mov eax, 0
cmovb ecx, eax
cmp ecx, 7
jae 0x404660
mov eax, dword [esp]
jmp 0x404697
and edi, 0xfffffffe
mov dword [esp + 0x10], edi
mov ebx, 4
xor eax, eax
mov ebp, esi
lea edx, [esp + 0x20]
mov dword [esp], edx
mov dword [esp + 8], esi
jmp 0x404627
mov ecx, dword [esp]
mov dword [ecx], edi
add ecx, 4
mov dword [esp], ecx
dec ebx
mov edx, dword [esp + 8]
mov edi, edx
mov ecx, dword [esp + 0xc]
mov esi, edx
add eax, 2
mov ebp, edi
cmp dword [esp + 0x10], eax
je 0x404562
test al, 2
cmove ebp, esi
movzx edi, byte [ecx + eax]
lea edx, [eax + 1]
movzx esi, byte [ecx + eax + 1]
shl ebp, 0x10
shl edi, 8
or edi, ebp
or edi, esi
not edx
test dl, 3
je 0x404600
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 8]
jmp 0x404618
inc ecx
mov edx, ecx
and edx, 0xfffffff8
sub ebx, edx
mov edi, dword [esp]
lea eax, [edi + edx*4]
movd xmm0, esi
pshufd xmm0, xmm0, 0
xor ebp, ebp
nop dword [eax]
movdqu xmmword [edi + ebp*4 + 4], xmm0
movdqu xmmword [edi + ebp*4 + 0x14], xmm0
add ebp, 8
cmp edx, ebp
jne 0x404680
cmp ecx, edx
je 0x4046ab
inc ebx
add eax, 4
nop dword [eax + eax]
mov dword [eax], esi
dec ebx
add eax, 4
cmp ebx, 2
ja 0x4046a0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov edi, 0x9e3779b9
mov ebx, 0xfffffff0
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x14]
nop dword [eax + eax]
mov ecx, eax
shl eax, 4
add eax, dword [esp]
lea esi, [ecx + edi]
xor esi, eax
mov eax, ecx
shr eax, 5
add eax, dword [esp + 0x10]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [esp + 8]
lea esi, [edi + edx]
xor esi, eax
mov eax, edx
shr eax, 5
add eax, ebp
xor eax, esi
add eax, ecx
add edi, 0x9e3779b9
inc ebx
jne 0x4046e0
add dword [esp + 4], edx
mov edx, dword [esp + 0x1c]
cmp edx, 0x11
jl 0x4044f6
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0xc]
add ecx, 0x10
add edx, 0xfffffff0
jmp 0x404520