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

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push r12
push r15
sub rsp, 0x60
mov r15, r9
mov rbx, r8
test rdx, rdx
je 0x18007ed94
lea r9, [rsp + 0x28]
mov r8d, 1
call fcn.18007e6c0
mov r12, rax
test rax, rax
je 0x18007ed94
mov qword [rsp + 0x80], rbp
mov edx, 4
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r13
lea ecx, [rdx + 1]
mov qword [rsp + 0x40], r14
call fcn.180092bd4
movzx ecx, byte [rbx]
mov r13, rax
mov r9, qword [rsp + 0x28]
xor esi, esi
dec r9d
mov r14d, esi
or dword [rax], ecx
movzx ecx, byte [rbx + 1]
shl ecx, 8
or ecx, dword [rax]
lea r8d, [r9 + 1]
mov dword [rax], ecx
movzx edx, byte [rbx + 2]
shl edx, 0x10
or edx, ecx
mov ebp, r9d
mov dword [rax], edx
movzx eax, byte [rbx + 3]
shl eax, 0x18
or eax, edx
mov dword [rsp + 0x20], r9d
mov dword [r13], eax
xor edx, edx
movzx eax, byte [rbx + 4]
or dword [r13 + 4], eax
movzx eax, byte [rbx + 5]
shl eax, 8
or eax, dword [r13 + 4]
mov dword [r13 + 4], eax
movzx ecx, byte [rbx + 6]
shl ecx, 0x10
or ecx, eax
mov qword [rsp + 0x30], rbp
mov dword [r13 + 4], ecx
movzx eax, byte [rbx + 7]
shl eax, 0x18
or eax, ecx
mov dword [r13 + 4], eax
movzx eax, byte [rbx + 8]
or dword [r13 + 8], eax
movzx eax, byte [rbx + 9]
shl eax, 8
or eax, dword [r13 + 8]
mov dword [r13 + 8], eax
movzx ecx, byte [rbx + 0xa]
shl ecx, 0x10
or ecx, eax
mov dword [r13 + 8], ecx
movzx eax, byte [rbx + 0xb]
shl eax, 0x18
or eax, ecx
mov dword [r13 + 8], eax
movzx eax, byte [rbx + 0xc]
or dword [r13 + 0xc], eax
movzx eax, byte [rbx + 0xd]
shl eax, 8
or eax, dword [r13 + 0xc]
mov dword [r13 + 0xc], eax
movzx ecx, byte [rbx + 0xe]
shl ecx, 0x10
or ecx, eax
mov dword [r13 + 0xc], ecx
movzx eax, byte [rbx + 0xf]
shl eax, 0x18
or eax, ecx
mov dword [r13 + 0xc], eax
mov eax, 0x34
mov ecx, dword [r12 + r9*4]
div r8d
add eax, 6
cmp r9d, 1
jb 0x18007ed17
test eax, eax
je 0x18007ed17
add r14d, 0x9e3779b9
lea rbx, [r12 + 4]
dec eax
mov edi, r14d
shr rdi, 2
mov r11, rsi
and edi, 3
mov dword [rsp + 0x88], eax
mov r10, r12
mov r15d, r9d
nop dword [rax]
mov r8d, dword [rbx]
lea rbx, [rbx + 4]
mov eax, ecx
lea r10, [r10 + 4]
shr eax, 5
mov edx, r8d
shr edx, 3
lea r9d, [r8*4]
xor r8d, r14d
xor r9d, eax
mov eax, ecx
shl eax, 4
xor edx, eax
mov rax, r11
and eax, 3
add r9d, edx
xor rax, rdi
inc r11
xor ecx, dword [r13 + rax*4]
add ecx, r8d
xor r9d, ecx
add dword [r10 - 4], r9d
mov ecx, dword [r10 - 4]
sub rbp, 1
jne 0x18007ec60
mov r8d, dword [r12]
mov r9d, ecx
mov rbp, qword [rsp + 0x30]
mov edx, ecx
shl r9d, 4
mov eax, r8d
shr eax, 3
and r15d, 3
xor r9d, eax
shr edx, 5
lea eax, [r8*4]
xor r15, rdi
xor edx, eax
xor r8d, r14d
mov eax, dword [rsp + 0x88]
add r9d, edx
xor ecx, dword [r13 + r15*4]
add ecx, r8d
xor r9d, ecx
add dword [r12 + rbp*4], r9d
mov ecx, dword [r12 + rbp*4]
mov r9d, dword [rsp + 0x20]
test eax, eax
jne 0x18007ec31
mov r15, qword [rsp + 0x98]
mov rax, qword [rsp + 0x28]
lea rbx, [rax*4]
mov rcx, rbx
call fcn.180093628
mov r14, qword [rsp + 0x40]
mov rdi, rax
mov rbp, qword [rsp + 0x80]
test rbx, rbx
je 0x18007ed65
mov r8, rsi
movzx ecx, sil
shr r8, 2
and cl, 3
shl cl, 3
mov r8d, dword [r12 + r8*4]
shr r8d, cl
mov byte [rsi + rax], r8b
inc rsi
cmp rsi, rbx
jb 0x18007ed41
mov rcx, r12
mov qword [r15], rsi
call fcn.18008f428
mov rcx, r13
call fcn.18008f428
mov r13, qword [rsp + 0x48]
mov rax, rdi
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x60
pop r15
pop r12
pop rbx
ret
xor eax, eax
add rsp, 0x60
pop r15
pop r12
pop rbx
ret