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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rdx, qword [rdx + 0x10]
mov cl, dl
and cl, 7
cmp cl, 1
je 0x140001bf1
mov al, 1
jmp 0x140002026
mov r13d, 0x10
cmp qword [rdi + 0x18], r13
jb 0x140001c02
mov rax, qword [rdi]
jmp 0x140001c05
mov rax, rdi
movsx r12, byte [rax + rdx - 1]
mov qword [rbp - 0x50], r12
cmp r12, 8
jae 0x140001bea
or r15, 0xffffffffffffffff
cmp rbx, rdi
je 0x140001c2f
mov r9, r15
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140001634
mov rax, qword [rbx + 0x10]
lea rdx, [rax - 1]
xor r14d, r14d
cmp rdx, rax
ja 0x140001c57
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], r13
jb 0x140001c4e
mov rax, qword [rbx]
jmp 0x140001c51
mov rax, rbx
mov byte [rax + rdx], r14b
jmp 0x140001c65
sub rdx, rax
xor r8d, r8d
mov rcx, rbx
call fcn.1400013a8
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x40], r14b
mov r9, r15
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.140001634
nop
cmp qword [rbp - 0x30], r13
jb 0x140001ca5
mov qword [rbp - 0x30], r13
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], r13
cmovae rax, qword [rbp - 0x40]
mov byte [rax + 0x10], r14b
jmp 0x140001cb8
mov rdx, r13
sub rdx, qword [rbp - 0x30]
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.1400013a8
lea r9, [rbp - 0x40]
mov r11, qword [rbp - 0x40]
mov r10, qword [rbp - 0x28]
cmp r10, r13
cmovae r9, r11
lea r8, [rbp - 0x40]
cmovae r8, r11
lea rcx, [rbp - 0x40]
cmovae rcx, r11
lea rax, [rbp - 0x40]
cmovae rax, r11
movzx edx, byte [rax + 3]
shl edx, 8
movzx eax, byte [rcx + 2]
or edx, eax
shl edx, 8
movzx eax, byte [r8 + 1]
or edx, eax
shl edx, 8
movzx eax, byte [r9]
or edx, eax
mov dword [rbp - 0x20], edx
lea r9, [rbp - 0x40]
cmp r10, r13
cmovae r9, r11
lea r8, [rbp - 0x40]
cmovae r8, r11
lea rcx, [rbp - 0x40]
cmovae rcx, r11
lea rax, [rbp - 0x40]
cmovae rax, r11
movzx edx, byte [rax + 7]
shl edx, 8
movzx eax, byte [rcx + 6]
or edx, eax
shl edx, 8
movzx eax, byte [r8 + 5]
or edx, eax
shl edx, 8
movzx eax, byte [r9 + 4]
or edx, eax
mov dword [rbp - 0x1c], edx
lea r9, [rbp - 0x40]
cmp r10, r13
cmovae r9, r11
lea r8, [rbp - 0x40]
cmovae r8, r11
lea rcx, [rbp - 0x40]
cmovae rcx, r11
lea rax, [rbp - 0x40]
cmovae rax, r11
movzx edx, byte [rax + 0xb]
shl edx, 8
movzx eax, byte [rcx + 0xa]
or edx, eax
shl edx, 8
movzx eax, byte [r8 + 9]
or edx, eax
shl edx, 8
movzx eax, byte [r9 + 8]
or edx, eax
mov dword [rbp - 0x18], edx
lea r9, [rbp - 0x40]
cmp r10, r13
cmovae r9, r11
lea r8, [rbp - 0x40]
cmovae r8, r11
lea rcx, [rbp - 0x40]
cmovae rcx, r11
lea rax, [rbp - 0x40]
cmovae rax, r11
movzx edx, byte [rax + 0xf]
shl edx, 8
movzx eax, byte [rcx + 0xe]
or edx, eax
shl edx, 8
movzx eax, byte [r8 + 0xd]
or edx, eax
shl edx, 8
movzx eax, byte [r9 + 0xc]
or edx, eax
mov dword [rbp - 0x14], edx
mov r10, r14
cmp qword [rdi + 0x10], 7
jbe 0x140001fe6
mov r12d, 0x8dde6e40
mov r11, qword [rbx + 0x18]
cmp r11, r13
jb 0x140001dfd
mov r9, qword [rbx]
jmp 0x140001e00
mov r9, rbx
cmp r11, r13
jb 0x140001e0a
mov rdx, qword [rbx]
jmp 0x140001e0d
mov rdx, rbx
cmp r11, r13
jb 0x140001e17
mov rcx, qword [rbx]
jmp 0x140001e1a
mov rcx, rbx
cmp r11, r13
jb 0x140001e24
mov rax, qword [rbx]
jmp 0x140001e27
mov rax, rbx
movzx r8d, byte [rax + r10 + 3]
shl r8d, 8
movzx eax, byte [rcx + r10 + 2]
or r8d, eax
shl r8d, 8
movzx eax, byte [rdx + r10 + 1]
or r8d, eax
shl r8d, 8
movzx eax, byte [r9 + r10]
or r8d, eax
cmp r11, r13
jb 0x140001e5d
mov rsi, qword [rbx]
jmp 0x140001e60
mov rsi, rbx
cmp r11, r13
jb 0x140001e6a
mov rdx, qword [rbx]
jmp 0x140001e6d
mov rdx, rbx
cmp r11, r13
jb 0x140001e77
mov rcx, qword [rbx]
jmp 0x140001e7a
mov rcx, rbx
cmp r11, r13
jb 0x140001e84
mov rax, qword [rbx]
jmp 0x140001e87
mov rax, rbx
movzx r9d, byte [rax + r10 + 7]
shl r9d, 8
movzx eax, byte [rcx + r10 + 6]
or r9d, eax
shl r9d, 8
movzx eax, byte [rdx + r10 + 5]
or r9d, eax
shl r9d, 8
movzx eax, byte [rsi + r10 + 4]
or r9d, eax
mov r14d, r12d
mov rsi, r12
mov r15d, 0x40
mov ecx, r8d
shr ecx, 5
mov eax, r8d
shl eax, 4
xor ecx, eax
add ecx, r8d
shr rsi, 0xb
and esi, 3
mov eax, dword [rbp + rsi*4 - 0x20]
add eax, r14d
xor ecx, eax
sub r9d, ecx
add r14d, 0x61c88647
mov esi, r14d
mov edx, r9d
shr edx, 5
mov eax, r9d
shl eax, 4
xor edx, eax
add edx, r9d
mov eax, r14d
and eax, 3
mov ecx, dword [rbp + rax*4 - 0x20]
add ecx, r14d
xor edx, ecx
sub r8d, edx
sub r15, 1
jne 0x140001ec0
cmp r11, r13
jb 0x140001f21
mov rax, qword [rbx]
jmp 0x140001f24
mov rax, rbx
mov byte [rax + r10], r8b
cmp qword [rbx + 0x18], r13
jb 0x140001f33
mov rcx, qword [rbx]
jmp 0x140001f36
mov rcx, rbx
mov eax, r8d
shr eax, 8
mov byte [rcx + r10 + 1], al
cmp qword [rbx + 0x18], r13
jb 0x140001f4c
mov rcx, qword [rbx]
jmp 0x140001f4f
mov rcx, rbx
mov eax, r8d
shr eax, 0x10
mov byte [rcx + r10 + 2], al
cmp qword [rbx + 0x18], r13
jb 0x140001f65
mov rax, qword [rbx]
jmp 0x140001f68
mov rax, rbx
shr r8d, 0x18
mov byte [rax + r10 + 3], r8b
cmp qword [rbx + 0x18], r13
jb 0x140001f7c
mov rax, qword [rbx]
jmp 0x140001f7f
mov rax, rbx
mov byte [rax + r10 + 4], r9b
cmp qword [rbx + 0x18], r13
jb 0x140001f8f
mov rcx, qword [rbx]
jmp 0x140001f92
mov rcx, rbx
mov eax, r9d
shr eax, 8
mov byte [rcx + r10 + 5], al
cmp qword [rbx + 0x18], r13
jb 0x140001fa8
mov rcx, qword [rbx]
jmp 0x140001fab
mov rcx, rbx
mov eax, r9d
shr eax, 0x10
mov byte [rcx + r10 + 6], al
cmp qword [rbx + 0x18], r13
jb 0x140001fc1
mov rax, qword [rbx]
jmp 0x140001fc4
mov rax, rbx
shr r9d, 0x18
mov byte [rax + r10 + 7], r9b
add r10, 8
lea rax, [r10 + 7]
cmp rax, qword [rdi + 0x10]
jb 0x140001def
mov r12, qword [rbp - 0x50]
xor r14d, r14d
mov rdx, qword [rbx + 0x10]
sub rdx, r12
cmp rdx, qword [rbx + 0x10]
ja 0x140002006
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], r13
jb 0x140002000
mov rbx, qword [rbx]
mov byte [rdx + rbx], r14b
jmp 0x140002016
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.1400013a8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x40]
call fcn.140001588
xor al, al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140003e10
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret