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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov eax, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
inc dword [ebp + 0x30]
mov eax, dword [ebp + 0x14]
bswap eax
sub esp, 0x20
push eax
lea eax, [esp]
mov ebx, dword [ebp + 0x10]
bswap ebx
mov dword [eax + 4], ebx
mov dword [ebp + 0x10], eax
add esp, 0x24
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x1c], 2
jg 0x10003c38
cmp dword [ebp + 0x30], 8
jge 0x10003b6e
inc dword [ebp + 0x30]
inc dword [ebp - 0x1c]
cmp dword [ebp + 0x30], 8
jne 0x10003c33
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov esi, dword [esi]
add esi, 8
add esi, ecx
mov edi, dword [ebp + 0x10]
xor eax, eax
xor edx, edx
mov ebx, 8
dec ebx
cmp ebx, 0xffffffff
je 0x10003ba0
mov al, byte [edx + esi]
xor byte [edx + edi], al
inc edx
jmp 0x10003b91
mov eax, dword [edi]
bswap eax
push eax
mov eax, dword [edi + 4]
bswap eax
push eax
push 0xe3779b90
push 0
push 0
mov ecx, 0x10
mov eax, dword [ebp - 0x30]
shl eax, 4
add eax, dword [ebp + 0x1c]
mov edx, eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x38]
xor edx, eax
mov eax, dword [ebp - 0x30]
shr eax, 5
add eax, dword [ebp + 0x18]
xor edx, eax
mov eax, dword [ebp - 0x34]
sub eax, edx
mov dword [ebp - 0x34], eax
shl eax, 4
add eax, dword [ebp + 0x24]
mov edx, eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x38]
xor edx, eax
mov eax, dword [ebp - 0x34]
shr eax, 5
add eax, dword [ebp + 0x20]
xor edx, eax
mov eax, dword [ebp - 0x30]
sub eax, edx
mov dword [ebp - 0x30], eax
sub dword [ebp - 0x38], 0x9e3779b9
loop 0x10003bb9
mov edi, dword [ebp + 0x10]
bswap eax
mov dword [edi], eax
mov eax, dword [ebp - 0x34]
bswap eax
mov dword [edi + 4], eax
add esp, 0x14
add dword [ebp - 0x14], 8
add dword [ebp - 0x10], 8
mov dword [ebp + 0x30], 0
mov dword [ebp - 0x20], 1
jmp 0x10003b58
mov dword [ebp - 0x24], 0
cmp dword [ebp + 0x2c], 0
je 0x10003d8b
cmp dword [ebp + 0x30], 8
je 0x10003cc2
cmp dword [ebp - 0x20], 1
je 0x10003c79
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
add esi, 8
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x30]
mov edi, dword [ebp + 0x10]
xor eax, eax
mov al, byte [ecx + edi]
mov byte [edx + esi], al
inc dword [ebp - 0x24]
dec dword [ebp + 0x2c]
inc dword [ebp + 0x30]
jmp 0x10003cb8
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
add esi, 8
add esi, dword [ebp - 0x24]
mov edi, dword [ebp + 0x10]
add edi, dword [ebp + 0x30]
xor eax, eax
mov al, byte [edi]
mov edi, dword [ebp + 8]
mov edi, dword [edi]
add edi, 8
add edi, dword [ebp - 0x18]
add edi, dword [ebp + 0x30]
xor edx, edx
mov dl, byte [edi]
xor dl, al
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
add ebx, 8
add ebx, dword [ebp - 0x24]
mov byte [ebx], dl
inc dword [ebp - 0x24]
dec dword [ebp + 0x2c]
inc dword [ebp + 0x30]
cmp dword [ebp + 0x30], 8
jne 0x10003d86
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov esi, dword [esi]
add esi, 8
add esi, ecx
mov edi, dword [ebp + 0x10]
xor eax, eax
xor edx, edx
mov ebx, 8
dec ebx
cmp ebx, 0xffffffff
je 0x10003cea
mov al, byte [edx + esi]
xor byte [edx + edi], al
inc edx
jmp 0x10003cdb
mov eax, dword [edi]
bswap eax
push eax
mov eax, dword [edi + 4]
bswap eax
push eax
push 0xe3779b90
push 0
push 0
mov ecx, 0x10
mov eax, dword [ebp - 0x30]
shl eax, 4
add eax, dword [ebp + 0x1c]
mov edx, eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x38]
xor edx, eax
mov eax, dword [ebp - 0x30]
shr eax, 5
add eax, dword [ebp + 0x18]
xor edx, eax
mov eax, dword [ebp - 0x34]
sub eax, edx
mov dword [ebp - 0x34], eax
shl eax, 4
add eax, dword [ebp + 0x24]
mov edx, eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x38]
xor edx, eax
mov eax, dword [ebp - 0x34]
shr eax, 5
add eax, dword [ebp + 0x20]
xor edx, eax
mov eax, dword [ebp - 0x30]
sub eax, edx
mov dword [ebp - 0x30], eax
sub dword [ebp - 0x38], 0x9e3779b9
loop 0x10003d03
mov edi, dword [ebp + 0x10]
bswap eax
mov dword [edi], eax
mov eax, dword [ebp - 0x34]
bswap eax
mov dword [edi + 4], eax
add esp, 0x14
mov eax, dword [ebp - 0x10]
sub eax, 8
mov dword [ebp - 0x18], eax
add dword [ebp - 0x14], 8
add dword [ebp - 0x10], 8
mov dword [ebp + 0x30], 0
mov dword [ebp - 0x20], 1
jmp 0x10003c3f
mov edi, dword [ebp + 0x10]
add edi, dword [ebp + 0x30]
xor eax, eax
mov al, byte [edi]
mov edi, dword [ebp + 8]
mov edi, dword [edi]
add edi, 8
add edi, dword [ebp - 0x18]
add edi, dword [ebp + 0x30]
xor edx, edx
mov dl, byte [edi]
xor dl, al
cmp edx, 0
je 0x10003db7
mov eax, 0xffffffff
leave
ret 8
mov eax, 0
leave
ret 8