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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
mov dword [ebp - 8], edi
cmp esi, 1
jle 0x4011cb
xor edx, edx
lea ecx, [esi - 1]
mov eax, 0x34
div esi
lea edx, [esi - 1]
add eax, 6
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
xor eax, eax
add ecx, edi
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edi + esi - 1]
mov dword [ebp - 4], ecx
sub eax, 0x61c88647
xor esi, esi
mov edi, eax
mov dword [ebp - 0xc], eax
shr edi, 2
and edi, 3
test edx, edx
jle 0x401173
mov eax, dword [ebp - 8]
movzx edx, byte [eax + esi + 1]
mov al, cl
shl al, 4
mov ebx, edx
shr ebx, 3
xor bl, al
shr ecx, 5
mov al, dl
shl al, 2
xor cl, al
mov eax, esi
add bl, cl
and eax, 3
mov ecx, dword [ebp + 8]
xor eax, edi
mov cl, byte [ecx + eax*4]
xor cl, byte [ebp - 4]
movzx eax, byte [ebp - 0xc]
xor al, dl
add cl, al
mov eax, dword [ebp - 8]
xor bl, cl
add byte [eax + esi], bl
movzx ecx, byte [eax + esi]
inc esi
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 0x14]
jl 0x401126
mov eax, dword [ebp - 8]
and esi, 3
xor esi, edi
movzx edx, byte [eax]
mov al, cl
shl al, 4
mov ebx, edx
shr ebx, 3
xor bl, al
shr ecx, 5
mov al, dl
shl al, 2
xor cl, al
mov eax, dword [ebp + 8]
add bl, cl
mov cl, byte [eax + esi*4]
xor cl, byte [ebp - 4]
movzx eax, byte [ebp - 0xc]
xor al, dl
mov edx, dword [ebp - 0x14]
add cl, al
mov eax, dword [ebp - 0x18]
xor bl, cl
add byte [eax], bl
sub dword [ebp - 0x10], 1
movzx ecx, byte [eax]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jne 0x401110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
jge 0x4012c5
neg esi
movzx ecx, byte [edi]
mov eax, 0x34
mov dword [ebp - 4], ecx
cdq
idiv esi
lea ebx, [eax + 6]
imul edx, ebx, 0x9e3779b9
lea eax, [esi - 1]
mov dword [ebp - 0x14], ebx
lea ebx, [edi - 1]
add ebx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], edx
mov esi, edx
shr esi, 2
and esi, 3
test eax, eax
jle 0x401264
nop dword [eax]
movzx ebx, byte [edi + eax - 1]
mov edx, ecx
shr edx, 3
mov cl, bl
shl cl, 4
xor dl, cl
movzx ecx, byte [ebp - 4]
mov dword [ebp - 0xc], edx
mov edx, ebx
shl cl, 2
shr edx, 5
xor dl, cl
mov ecx, eax
add byte [ebp - 0xc], dl
and ecx, 3
mov edx, dword [ebp + 8]
xor ecx, esi
mov dl, byte [edx + ecx*4]
movzx ecx, byte [ebp - 8]
xor dl, bl
xor cl, byte [ebp - 4]
add dl, cl
mov ecx, dword [ebp - 0xc]
xor cl, dl
sub byte [edi + eax], cl
movzx ecx, byte [edi + eax]
dec eax
mov dword [ebp - 4], ecx
test eax, eax
jg 0x401210
mov ebx, dword [ebp - 0x10]
movzx ebx, byte [ebx]
mov edx, ecx
shr edx, 3
mov cl, bl
shl cl, 4
and eax, 3
xor dl, cl
xor eax, esi
movzx ecx, byte [ebp - 4]
mov dword [ebp - 0xc], edx
mov edx, ebx
shl cl, 2
shr edx, 5
xor dl, cl
mov ecx, dword [ebp + 8]
add byte [ebp - 0xc], dl
mov edx, dword [ebp - 8]
movzx ecx, byte [ecx + eax*4]
mov al, dl
xor al, byte [ebp - 4]
xor cl, bl
mov ebx, dword [ebp - 0x10]
add cl, al
mov eax, dword [ebp - 0xc]
add edx, 0x61c88647
xor al, cl
mov dword [ebp - 8], edx
sub byte [edi], al
sub dword [ebp - 0x14], 1
movzx ecx, byte [edi]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
jne 0x401201
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret