Function at 0x40241d
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
cmp dword [ebp + 0xc], 1
jle 0x402559
push 0x34
pop eax
cdq
idiv dword [ebp + 0xc]
add eax, 6
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
movzx eax, byte [eax - 1]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
sub eax, 0x61c88647
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shr eax, 2
and eax, 3
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
jmp 0x402470
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
dec eax
cmp dword [ebp - 4], eax
jae 0x4024e2
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx eax, byte [eax + 1]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov ecx, dword [ebp - 8]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 8]
shr ecx, 3
mov edx, dword [ebp - 0x14]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
and edx, 3
xor edx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi + edx*4]
xor edx, dword [ebp - 0x14]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx ecx, byte [ecx]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov cl, byte [ebp - 0x1c]
mov byte [eax], cl
movzx eax, byte [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x402469
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov ecx, dword [ebp - 8]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 8]
shr ecx, 3
mov edx, dword [ebp - 0x14]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
and edx, 3
xor edx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi + edx*4]
xor edx, dword [ebp - 0x14]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
movzx ecx, byte [ecx - 1]
add ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x20]
mov byte [eax - 1], cl
movzx eax, byte [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jne 0x40244c
jmp 0x40268d
cmp dword [ebp + 0xc], 0xffffffff
jge 0x40268d
mov eax, dword [ebp + 0xc]
neg eax
mov dword [ebp + 0xc], eax
push 0x34
pop eax
cdq
idiv dword [ebp + 0xc]
add eax, 6
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x9e3779b9
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
shr eax, 2
and eax, 3
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp - 4], eax
jmp 0x4025a9
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x402618
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx eax, byte [eax - 1]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov ecx, dword [ebp - 8]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 8]
shr ecx, 3
mov edx, dword [ebp - 0x14]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
and edx, 3
xor edx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi + edx*4]
xor edx, dword [ebp - 0x14]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx ecx, byte [ecx]
sub ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov cl, byte [ebp - 0x24]
mov byte [eax], cl
movzx eax, byte [ebp - 0x24]
mov dword [ebp - 8], eax
jmp 0x4025a2
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
movzx eax, byte [eax - 1]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov ecx, dword [ebp - 8]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 8]
shr ecx, 3
mov edx, dword [ebp - 0x14]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
and edx, 3
xor edx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi + edx*4]
xor edx, dword [ebp - 0x14]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx]
sub ecx, eax
mov eax, dword [ebp + 8]
mov byte [eax], cl
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
add eax, 0x61c88647
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jne 0x40258d
pop esi
leave
ret