Function at 0x1400825f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r14
sub rsp, 0x58
mov rax, qword [rcx + 0x10]
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
cmp qword [rcx + 8], rax
jne 0x140082623
call fcn.140041540
mov qword [rsp + 0x50], rsi
cmp r14, 4
jb 0x140082b57
mov rcx, r14
mov qword [rsp + 0x48], r12
shr rcx, 2
imul rax, rcx, 0xfffffffffffffffc
mov qword [rsp + 0x40], r13
add r14, rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x28], rcx
nop dword [rax]
mov eax, dword [rdi + 0x1c]
mov r10d, dword [rdi]
mov r15d, dword [rdi + 4]
mov r11d, dword [rdi + 8]
mov r12d, dword [rdi + 0xc]
mov esi, dword [rdi + 0x10]
mov r13d, dword [rdi + 0x14]
mov r14d, dword [rdi + 0x18]
mov edi, 4
mov rbx, qword [rbp + 0x20]
mov r9, qword [rbp + 8]
add rbx, 8
bswap eax
mov dword [rsp + 0x20], eax
mov ebp, eax
bswap r10d
bswap r15d
bswap r11d
bswap r12d
bswap esi
bswap r13d
bswap r14d
nop word [rax + rax]
mov eax, dword [rbx - 8]
xor r10d, eax
xor r11d, eax
mov r8d, dword [rbx - 4]
xor esi, eax
xor r14d, eax
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r11d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r15d, edx
mov eax, r11d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r11d
shr eax, 8
movzx ecx, al
movzx eax, r11b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, esi
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r12d, edx
mov eax, esi
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, esi
shr eax, 8
movzx ecx, al
movzx eax, sil
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r14d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r13d, edx
mov eax, r14d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r14d
shr eax, 8
movzx ecx, al
movzx eax, r14b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r15d
shr eax, 0x10
xor edx, r8d
mov r8d, dword [rbx]
xor ebp, edx
movzx ecx, al
mov eax, r15d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r15d
shr eax, 8
movzx ecx, al
movzx eax, r15b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
xor edx, r8d
xor r10d, edx
mov eax, r12d
shr eax, 0x10
movzx ecx, al
mov eax, r12d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r12d
shr eax, 8
movzx ecx, al
movzx eax, r12b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r13d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r11d, edx
mov eax, r13d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r13d
shr eax, 8
movzx ecx, al
movzx eax, r13b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, ebp
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor esi, edx
mov eax, ebp
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, ebp
shr eax, 8
movzx ecx, al
movzx eax, bpl
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r10d
shr eax, 0x10
xor edx, r8d
mov r8d, dword [rbx + 4]
xor r14d, edx
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r11d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r15d, edx
mov eax, r11d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r11d
shr eax, 8
movzx ecx, al
movzx eax, r11b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, esi
xor edx, r8d
xor r12d, edx
shr eax, 0x10
movzx ecx, al
mov eax, esi
mov edx, dword [r9 + rcx*4 + 0x400]
shr rax, 0x18
add edx, dword [r9 + rax*4]
mov eax, esi
shr eax, 8
movzx ecx, al
movzx eax, sil
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r14d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r13d, edx
mov eax, r14d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r14d
shr eax, 8
movzx ecx, al
movzx eax, r14b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r15d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor ebp, edx
mov eax, r15d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r15d
shr eax, 8
movzx ecx, al
movzx eax, r15b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r12d
shr eax, 0x10
xor r10d, edx
movzx ecx, al
mov eax, r12d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r12d
shr eax, 8
movzx ecx, al
movzx eax, r12b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r13d
shr eax, 0x10
xor r11d, edx
movzx ecx, al
mov eax, r13d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r13d
shr eax, 8
movzx ecx, al
movzx eax, r13b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, ebp
shr eax, 0x10
xor esi, edx
movzx ecx, al
mov eax, ebp
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, ebp
shr eax, 8
movzx ecx, al
movzx eax, bpl
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
xor r14d, edx
lea rbx, [rbx + 0x10]
sub rdi, 1
jne 0x1400826b0
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov dword [rsp + 0x20], ebp
add rdi, 0x20
mov rbp, qword [rsp + 0x80]
mov qword [rsp + 0x88], rdi
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x40]
mov ecx, dword [rax + 0x44]
mov eax, ecx
xor eax, r15d
bswap eax
mov dword [rbx], eax
mov eax, edx
xor eax, r10d
bswap eax
mov dword [rbx + 4], eax
mov eax, ecx
xor eax, r12d
bswap eax
mov dword [rbx + 8], eax
mov eax, edx
xor eax, r11d
bswap eax
mov dword [rbx + 0xc], eax
mov eax, ecx
xor ecx, dword [rsp + 0x20]
xor eax, r13d
bswap eax
mov dword [rbx + 0x10], eax
mov eax, edx
xor eax, esi
xor edx, r14d
bswap eax
bswap ecx
bswap edx
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x18], ecx
mov dword [rbx + 0x1c], edx
add rbx, 0x20
sub qword [rsp + 0x28], 1
mov qword [rsp + 0x90], rbx
jne 0x140082660
mov r14, qword [rsp + 0x98]
mov r15, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
test r14, r14
je 0x140082c3b
sub rdi, rbx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdi + rbx]
xor r11d, r11d
mov r10d, dword [rdi + rbx + 4]
mov rsi, qword [rbp + 0x20]
mov r9, qword [rbp + 8]
bswap eax
bswap r10d
nop dword [rax + rax]
xor eax, dword [rsi + r11*4]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [r9 + rdx*4 + 0x400]
add r8d, dword [r9 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [r9 + rdx*4 + 0x800]
add r8d, dword [r9 + rcx*4 + 0xc00]
xor r8d, dword [rsi + r11*4 + 4]
add r11, 2
xor r10d, r8d
mov ecx, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr rcx, 0x18
mov r8d, dword [r9 + rdx*4 + 0x400]
add r8d, dword [r9 + rcx*4]
mov ecx, r10d
shr ecx, 8
movzx edx, cl
movzx ecx, r10b
xor r8d, dword [r9 + rdx*4 + 0x800]
add r8d, dword [r9 + rcx*4 + 0xc00]
xor eax, r8d
cmp r11, 0x10
jne 0x140082b90
xor eax, dword [rsi + 0x40]
xor r10d, dword [rsi + 0x44]
bswap r10d
bswap eax
mov dword [rbx], r10d
mov dword [rbx + 4], eax
add rbx, 8
sub r14, 1
jne 0x140082b70
mov rsi, qword [rsp + 0x50]
add rsp, 0x58
pop r14
pop rdi
pop rbp
pop rbx
ret