Function at 0x140031ea0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x68
mov rax, qword [rcx]
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov r14, rcx
call qword [rax + 0x20]
test al, al
jne 0x140031ed6
mov rcx, r14
call fcn.14000dd30
mov qword [rsp + 0x60], rbx
cmp rbp, 4
jb 0x14003222c
mov rcx, rbp
mov qword [rsp + 0x58], r12
shr rcx, 2
imul rax, rcx, 0xfffffffffffffffc
mov qword [rsp + 0x50], r13
add rbp, rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0x30], rcx
nop
mov eax, dword [rdi + 0x1c]
mov esi, 0x11
mov ebp, dword [rdi]
mov r13d, dword [rdi + 4]
mov r15d, dword [rdi + 8]
mov r11d, dword [rdi + 0xc]
mov r12d, dword [rdi + 0x10]
mov ebx, dword [rdi + 0x14]
mov r10d, dword [rdi + 0x18]
mov rdi, qword [r14 + 0x20]
mov r9, qword [r14 + 8]
bswap eax
mov dword [rsp + 0x20], eax
mov r14d, eax
bswap ebp
bswap r13d
bswap r15d
bswap r11d
bswap r12d
bswap ebx
bswap r10d
nop word [rax + rax]
mov eax, dword [rdi + rsi*4]
xor ebp, eax
xor r15d, eax
mov r8d, dword [rdi + rsi*4 - 4]
xor r12d, eax
xor r10d, eax
mov eax, ebp
shr eax, 0x10
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]
mov eax, r15d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r13d, 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 edx, r8d
movzx ecx, al
xor r11d, edx
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, r10d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor ebx, edx
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, r13d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r14d, 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, r11d
xor ebp, edx
shr eax, 0x10
sub rsi, 2
movzx ecx, al
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, ebx
shr eax, 0x10
xor r15d, edx
movzx ecx, al
mov eax, ebx
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, ebx
shr eax, 8
movzx ecx, al
movzx eax, bl
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r14d
shr eax, 0x10
xor r12d, edx
movzx ecx, al
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]
xor r10d, edx
cmp rsi, 1
jne 0x140031f60
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
mov dword [rsp + 0x24], ebx
add rdi, 0x20
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], r14d
mov r14, qword [rsp + 0x90]
mov qword [rsp + 0x98], rdi
mov rax, qword [r14 + 0x20]
mov r9d, dword [rax + 4]
mov ebx, r9d
mov edx, dword [rax]
xor ebx, r10d
mov r11d, edx
mov r8d, edx
xor r8d, dword [rsp + 0x24]
mov eax, edx
xor eax, dword [rsp + 0x28]
mov r10d, r9d
xor r11d, dword [rsp + 0x20]
mov ecx, r9d
xor edx, r13d
xor r9d, ebp
xor ecx, r15d
xor r10d, r12d
bswap edx
mov dword [rsi], edx
bswap r9d
mov dword [rsi + 4], r9d
bswap eax
mov dword [rsi + 8], eax
bswap ecx
mov dword [rsi + 0xc], ecx
bswap r8d
mov dword [rsi + 0x10], r8d
bswap r10d
mov dword [rsi + 0x14], r10d
bswap r11d
mov dword [rsi + 0x18], r11d
bswap ebx
mov dword [rsi + 0x1c], ebx
add rsi, 0x20
sub qword [rsp + 0x30], 1
mov qword [rsp + 0xa0], rsi
jne 0x140031f10
mov r15, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbp, qword [rsp + 0xa8]
test rbp, rbp
je 0x14003230c
sub rsi, rdi
nop dword [rax + rax]
mov eax, dword [rdi]
mov r11d, 0x11
mov r9d, dword [rdi + 4]
mov rbx, qword [r14 + 0x20]
mov r10, qword [r14 + 8]
bswap eax
bswap r9d
nop dword [rax]
xor eax, dword [rbx + r11*4]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [r10 + rdx*4 + 0x400]
add r8d, dword [r10 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [r10 + rdx*4 + 0x800]
add r8d, dword [r10 + rcx*4 + 0xc00]
xor r8d, dword [rbx + r11*4 - 4]
sub r11, 2
xor r9d, r8d
mov ecx, r9d
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov r8d, dword [r10 + rdx*4 + 0x400]
add r8d, dword [r10 + rcx*4]
mov ecx, r9d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
xor r8d, dword [r10 + rdx*4 + 0x800]
add r8d, dword [r10 + rcx*4 + 0xc00]
xor eax, r8d
cmp r11, 1
jne 0x140032260
xor r9d, dword [rbx]
xor eax, dword [rbx + 4]
bswap r9d
mov dword [rdi + rsi], r9d
bswap eax
mov dword [rdi + rsi + 4], eax
add rdi, 8
sub rbp, 1
jne 0x140032240
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbp
ret