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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r9d, dword [rdx]
lea rdi, [0x140017068]
mov eax, dword [rdx + 4]
xor r10d, r10d
mov r11, rdx
mov r8d, r10d
lea ebx, [r10 + 2]
nop dword [rax]
nop dword [rax + rax]
and r8d, 3
mov ecx, eax
shl ecx, 4
mov edx, eax
shr edx, 5
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add edx, eax
add ecx, r10d
add r10d, 0x9e3779b9
xor edx, ecx
mov r8d, r10d
add r9d, edx
and r8d, 3
mov ecx, r9d
mov edx, r9d
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov ecx, eax
mov edx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
mov ecx, r9d
and r8d, 3
shl ecx, 4
mov edx, r9d
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov ecx, eax
mov edx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
mov ecx, r9d
mov edx, r9d
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
and r8d, 3
xor edx, ecx
add edx, eax
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add r10d, 0x9e3779b9
xor edx, ecx
mov r8d, r10d
add r9d, edx
and r8d, 3
mov ecx, r9d
mov edx, r9d
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov ecx, eax
mov edx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
mov ecx, r9d
and r8d, 3
shl ecx, 4
mov edx, r9d
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov ecx, eax
mov edx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
mov ecx, r9d
mov edx, r9d
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
and r8d, 3
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add r10d, 0x9e3779b9
xor edx, ecx
mov r8d, r10d
add r9d, edx
and r8d, 3
mov ecx, r9d
mov edx, r9d
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov ecx, eax
mov edx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
and r8d, 3
mov ecx, r9d
shl ecx, 4
mov edx, r9d
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov ecx, eax
mov edx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
mov ecx, r9d
and r8d, 3
shl ecx, 4
mov edx, r9d
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add edx, eax
add ecx, r10d
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
and r8d, 3
mov ecx, r9d
shl ecx, 4
mov edx, r9d
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov ecx, eax
mov edx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
mov ecx, r9d
and r8d, 3
shl ecx, 4
mov edx, r9d
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov ecx, eax
mov edx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
mov ecx, r9d
mov edx, r9d
shl ecx, 4
and r8d, 3
shr edx, 5
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r9d, edx
add r10d, 0x9e3779b9
mov r8d, r10d
mov ecx, r9d
shl ecx, 4
and r8d, 3
mov edx, r9d
shr edx, 5
xor edx, ecx
mov ecx, r10d
add edx, r9d
shr rcx, 0xb
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov ecx, eax
mov edx, eax
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
and r8d, 3
mov ecx, r9d
shl ecx, 4
mov edx, r9d
shr edx, 5
xor edx, ecx
mov ecx, r10d
add edx, r9d
shr rcx, 0xb
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov ecx, eax
mov edx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
mov ecx, r9d
and r8d, 3
shl ecx, 4
mov edx, r9d
shr edx, 5
xor edx, ecx
mov ecx, r10d
add edx, r9d
shr rcx, 0xb
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
mov ecx, dword [rdi + r8*4]
add ecx, r10d
add edx, eax
xor edx, ecx
add r10d, 0x9e3779b9
add r9d, edx
mov r8d, r10d
mov edx, r9d
shr edx, 5
mov ecx, r9d
shl ecx, 4
xor edx, ecx
mov ecx, r10d
shr rcx, 0xb
add edx, r9d
and ecx, 3
mov ecx, dword [rdi + rcx*4]
add ecx, r10d
xor edx, ecx
add eax, edx
sub rbx, 1
jne 0x140004850
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov dword [r11], r9d
mov dword [r11 + 4], eax
ret