Function at 0x4011d0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
shl ecx, 0x18
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [eax + 1]
shl edx, 0x10
or ecx, edx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [eax + 2]
shl edx, 8
or ecx, edx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [eax + 3]
or ecx, edx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov al, byte [ecx + 4]
shl eax, 0x18
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx + 5]
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx + 6]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx + 7]
or eax, ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 1
jne 0x4012b4
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x9e3779b9
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
shl edx, 4
mov ecx, dword [ebp - 0xc]
shr ecx, 5
xor edx, ecx
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
and eax, 3
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp - 0x14]
xor edx, eax
add dword [ebp - 8], edx
mov edx, dword [ebp - 0x18]
add dword [ebp - 0x14], edx
mov ecx, dword [ebp - 8]
shl ecx, 4
mov eax, dword [ebp - 8]
shr eax, 5
xor ecx, eax
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
shr edx, 0xb
and edx, 3
mov eax, dword [ebp - 4]
mov edx, dword [eax + edx*4]
add edx, dword [ebp - 0x14]
xor ecx, edx
add dword [ebp - 0xc], ecx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x20
jb 0x401256
jmp 0x401325
mov dword [ebp - 0x1c], 0x9e3779b9
mov ecx, dword [ebp - 0x1c]
shl ecx, 5
mov dword [ebp - 0x20], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
shl edx, 4
mov ecx, dword [ebp - 8]
shr ecx, 5
xor edx, ecx
add edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
shr eax, 0xb
and eax, 3
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp - 0x20]
xor edx, eax
sub dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x1c]
sub dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0xc]
shl ecx, 4
mov eax, dword [ebp - 0xc]
shr eax, 5
xor ecx, eax
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
and edx, 3
mov eax, dword [ebp - 4]
mov edx, dword [eax + edx*4]
add edx, dword [ebp - 0x20]
xor ecx, edx
sub dword [ebp - 8], ecx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x20
jb 0x4012c9
mov ecx, dword [ebp - 8]
shr ecx, 0x18
mov eax, dword [ebp + 0x14]
mov byte [eax], cl
mov edx, dword [ebp - 8]
shr edx, 0x10
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 1], dl
mov eax, dword [ebp - 8]
shr eax, 8
mov edx, dword [ebp + 0x14]
mov byte [edx + 2], al
mov cl, byte [ebp - 8]
mov eax, dword [ebp + 0x14]
mov byte [eax + 3], cl
mov edx, dword [ebp - 0xc]
shr edx, 0x18
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 4], dl
mov eax, dword [ebp - 0xc]
shr eax, 0x10
mov edx, dword [ebp + 0x14]
mov byte [edx + 5], al
mov ecx, dword [ebp - 0xc]
shr ecx, 8
mov eax, dword [ebp + 0x14]
mov byte [eax + 6], cl
mov dl, byte [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 7], dl
xor eax, eax
mov esp, ebp
pop ebp
ret