Function at 0x1400040b2
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
movaps xmmword [rsp + 0x140], xmm6
lea rbp, [rcx + 8]
mov qword [rsp + 0xe0], rbp
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0xe8], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0xf8], rax
mov r11, qword [rcx]
mov al, byte [0x140245050]
cmp al, 1
jne 0x140004112
lea rdx, [rsp + 0xe0]
mov rcx, r11
call fcn.140004619
jmp 0x1400044d0
mov rsi, rcx
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x40], rax
mov r13, qword [rsp + 0xf0]
mov rax, qword [rsp + 0xf8]
mov ecx, eax
and ecx, 3
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x38], rax
cmp rax, 4
jb 0x14000433e
mov rax, qword [rsp + 0x38]
shr rax, 2
mov qword [rsp + 0x48], rax
xor r15d, r15d
xorps xmm6, xmm6
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
mov eax, dword [rsi + 0x14]
mov ecx, dword [rsi + 0x18]
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0xa8], 0
mov qword [rsp + 0xa0], 0
xor r9d, r9d
mov r10d, dword [rbp + r9*4]
mov dword [rsp + r9*4 + 0xa0], r10d
lea r10, [r9 + 1]
mov r9, r10
cmp r10, 3
jne 0x1400041c0
inc rdx
lea r9d, [rcx + rax]
bswap r9d
mov dword [rsp + 0xac], r9d
mov r9, qword [rsp + 0xa0]
mov qword [rsp + 0x20], r9
mov r9d, dword [rsp + 0xa8]
mov dword [rsp + 0x28], r9d
mov r9d, dword [rsp + 0xac]
mov dword [rsp + 0x2c], r9d
inc ecx
mov dword [rsi + 0x18], ecx
mov r9, qword [rsp + 0x20]
mov qword [r8], r9
mov r9d, dword [rsp + 0x28]
mov dword [r8 + 8], r9d
mov r9d, dword [rsp + 0x2c]
mov dword [r8 + 0xc], r9d
mov r8, rdx
shl r8, 4
add r8, rsp
add r8, 0x50
cmp rdx, 4
jne 0x1400041a6
mov r14, r15
shl r14, 6
lea rbx, [rsp + 0x100]
mov rcx, rbx
mov rdi, r11
mov rdx, r11
lea r12, [rsp + 0x50]
mov r8, r12
call fcn.14001094b
mov rax, qword [rsp + 0x40]
movups xmm0, xmmword [rax + r14]
movups xmm1, xmmword [rax + r14 + 0x10]
movups xmm2, xmmword [rax + r14 + 0x20]
movups xmm3, xmmword [rax + r14 + 0x30]
movaps xmmword [rsp + 0xd0], xmm3
movaps xmmword [rsp + 0xc0], xmm2
movaps xmmword [rsp + 0xb0], xmm1
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rax, [rsp + 0xa0]
xor r8d, r8d
xor r9d, r9d
mov r10b, byte [rbx + r9]
xor r10b, byte [rax + r9]
mov byte [r12 + r9], r10b
lea r10, [r9 + 1]
mov r9, r10
cmp r10, 0x10
jne 0x1400042d0
inc r8
add r12, 0x10
add rbx, 0x10
add rax, 0x10
cmp r8, 4
jne 0x1400042cd
inc r15
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmm2, xmmword [rsp + 0x70]
movaps xmm3, xmmword [rsp + 0x80]
movups xmmword [r13 + r14 + 0x30], xmm3
movups xmmword [r13 + r14 + 0x20], xmm2
movups xmmword [r13 + r14 + 0x10], xmm1
movups xmmword [r13 + r14], xmm0
cmp qword [rsp + 0x48], r15
mov r11, rdi
jne 0x140004162
xorps xmm6, xmm6
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
mov rdx, qword [rsp + 0x98]
test rdx, rdx
mov r12, qword [rsp + 0x40]
je 0x1400044d0
mov qword [rsp + 0x48], r11
movabs rax, 0xffffffffffffffc
mov rcx, qword [rsp + 0x38]
and rcx, rax
shl rcx, 4
add r12, rcx
add r13, rcx
mov rax, rdx
shl rax, 4
add rax, rsp
add rax, 0x100
mov qword [rsp + 0x40], rax
mov eax, dword [rsi + 0x14]
mov qword [rsp + 0x38], rax
mov edi, dword [rsi + 0x18]
lea r15, [rsp + 0x100]
lea rbx, [rsp + 0xa0]
movaps xmmword [rsp + 0x50], xmm6
xor eax, eax
mov ecx, dword [rbp + rax*4]
mov dword [rsp + rax*4 + 0x50], ecx
lea rcx, [rax + 1]
mov rax, rcx
cmp rcx, 3
jne 0x1400043cf
mov rax, qword [rsp + 0x38]
add eax, edi
bswap eax
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x2c], eax
inc edi
mov dword [rsi + 0x18], edi
lea r14, [r15 + 0x10]
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.1400019c9
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov r8, rbx
call fcn.14001094b
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [r15], xmm0
mov r15, r14
cmp r14, qword [rsp + 0x40]
jne 0x1400043c8
lea rax, [rsp + 0x100]
xor ecx, ecx
xorps xmm0, xmm0
mov r10, qword [rsp + 0x98]
mov rdx, rcx
shl rdx, 4
movups xmm1, xmmword [r12 + rdx]
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x50], xmm0
xor r8d, r8d
mov r9b, byte [rax + r8]
xor r9b, byte [rsp + r8 + 0xa0]
mov byte [rsp + r8 + 0x50], r9b
lea r9, [r8 + 1]
mov r8, r9
cmp r9, 0x10
jne 0x14000449b
inc rcx
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [r13 + rdx], xmm1
add rax, 0x10
cmp rcx, r10
jne 0x14000447f
movaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret