Function at 0x1401674c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r13, qword [rbp + 0x3f0]
xor edi, edi
mov rax, qword [rbp + 0x3f8]
mov r15, r9
mov qword [rsp + 0x40], r8
mov r12, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x48], rax
cmp r13, 1
jne 0x1401676c2
test byte [rbp + 0x400], 0x1f
jne 0x1401676c2
mov al, r15b
and al, 0x3f
cmp al, 0x33
ja 0x1401676c2
lea rax, [rbp - 0x70]
mov r8, rdx
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x220]
lea rax, [rsp + 0x50]
mov rdx, rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rax
call fcn.140168670
mov rdx, qword [rsp + 0x40]
lea r9, [rbp + 0x220]
mov r8, r15
lea rcx, [rbp - 0x50]
call fcn.140168774
mov esi, dword [rbp - 0x30]
lea r9, [rbp + 0x220]
lea r8d, [rdi + 4]
and esi, 0x1f8
lea rdx, [0x1403cd730]
lea rcx, [rbp - 0x50]
call fcn.140168774
mov rax, qword [rbp - 0x30]
and eax, 0x1f8
cmp rax, rsi
jb 0x1401676bd
lea r8, [rbp + 0x220]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.1401679a4
test eax, eax
jne 0x1401676bd
add qword [rbp + 0x38], 0x100
lea r8, [rbp + 0x220]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x18]
call fcn.1401679a4
cmp qword [rbp + 0x400], rdi
jbe 0x140167884
mov r12, qword [rsp + 0x48]
lea ebx, [rdi + 0x20]
shr rsi, 3
lea r13d, [rdi + 4]
mov r15d, edi
lea ecx, [rdi + 1]
mov r8, rbx
mov eax, ecx
mov byte [rbp + rsi - 0x25], cl
shr eax, 8
lea rdx, [rbp - 0x50]
mov byte [rbp + rsi - 0x26], al
mov eax, ecx
shr ecx, 0x18
mov byte [rbp + rsi - 0x28], cl
lea rcx, [rsp + 0x50]
shr eax, 0x10
mov byte [rbp + rsi - 0x27], al
call fcn.140336c00
lea r9, [rbp + 0x320]
lea r8, [rbp + 0x220]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x50]
call fcn.140167a68
mov r8, r13
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x40]
call fcn.1401688fc
mov r8, rbx
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x50]
call fcn.140336c00
lea r9, [rbp + 0x320]
lea r8, [rbp + 0x220]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140167a68
lea rcx, [r15 + r12]
mov r8, r13
lea rdx, [rsp + 0x50]
call fcn.1401688fc
inc rdi
mov r15, rdi
shl r15, 5
cmp r15, qword [rbp + 0x400]
jb 0x140167605
jmp 0x140167884
mov rdx, qword [rsp + 0x38]
lea rax, [rbp - 0x70]
mov r8, rdx
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x220]
lea rax, [rsp + 0x50]
mov rdx, r12
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x20], rax
call fcn.140168670
mov r8d, 0xd0
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x80]
call fcn.140336c00
mov rdx, qword [rsp + 0x40]
lea r9, [rbp + 0x220]
mov r8, r15
lea rcx, [rbp + 0x80]
call fcn.140168774
mov r15, rdi
cmp qword [rbp + 0x400], rdi
jbe 0x140167884
mov rsi, rdi
mov ebx, 0x20
lea ecx, [r15 + 1]
mov r8d, 0xd0
mov eax, ecx
mov byte [rsp + 0x33], cl
shr eax, 8
lea rdx, [rbp + 0x80]
mov byte [rsp + 0x32], al
mov eax, ecx
shr ecx, 0x18
mov byte [rsp + 0x30], cl
lea rcx, [rbp - 0x50]
shr eax, 0x10
mov byte [rsp + 0x31], al
call fcn.140336c00
lea r9, [rbp + 0x220]
mov r8d, 4
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.140168774
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x220]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x340]
call fcn.140168610
cmp r13, 1
jbe 0x140167848
mov r8, rbx
lea rdx, [rbp + 0x340]
lea rcx, [rbp + 0x360]
call fcn.140336c00
lea r12, [r13 - 1]
mov r8d, 0xd0
lea rdx, [rbp + 0x150]
lea rcx, [rbp - 0x50]
call fcn.140336c00
lea r9, [rbp + 0x220]
mov r8, rbx
lea rdx, [rbp + 0x360]
lea rcx, [rbp - 0x50]
call fcn.140168774
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x220]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x360]
call fcn.140168610
mov rax, rdi
movdqu xmm0, xmmword [rbp + rax + 0x340]
movdqu xmm1, xmmword [rbp + rax + 0x360]
xorps xmm1, xmm0
movdqu xmmword [rbp + rax + 0x340], xmm1
add rax, 0x10
cmp rax, rbx
jl 0x14016781b
sub r12, 1
jne 0x1401677cc
mov r8, qword [rbp + 0x400]
lea rdx, [rbp + 0x340]
mov rcx, qword [rsp + 0x48]
sub r8, rsi
cmp r8, rbx
cmova r8, rbx
add rcx, rsi
call fcn.140336c00
inc r15
mov rsi, r15
shl rsi, 5
cmp rsi, qword [rbp + 0x400]
jb 0x14016773a
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1403358f0
add rsp, 0x490
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret