Function at 0x14002d910
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1400a9100]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edi, edi
xorps xmm0, xmm0
mov ebp, r9d
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov r15d, edi
movups xmmword [rsp + 0x30], xmm0
test rcx, rcx
je 0x14002dcdf
test rdx, rdx
je 0x14002dcdf
test r8, r8
je 0x14002dcdf
mov eax, dword [rcx + 0x340]
mov r8, rcx
cmp eax, r9d
mov qword [rsp + 0x60], rbx
mov ebx, r9d
mov qword [rsp + 0x58], r13
cmovb ebx, eax
mov rdx, r14
sub r8, rax
mov r9d, ebx
add r8, 0x120
mov rcx, r12
call fcn.14002b650
sub dword [rsi + 0x340], ebx
sub ebp, ebx
mov eax, ebx
mov r13d, 0x10
add r12, rax
add r14, rax
cmp ebp, r13d
jb 0x14002db9d
lea rbx, [rsi + 0x100]
nop dword [rax + rax]
mov r9d, dword [rsi + 0xf0]
shr r9d, 1
lea eax, [r9 - 1]
cmp eax, 6
ja 0x14002db97
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
call fcn.14002b8d0
lea r8, [rsp + 0x30]
mov rdx, r14
and r8d, 7
lea rax, [rsp + 0x30]
and edx, 7
mov r9d, r13d
mov rcx, r14
mov r15d, edi
cmp r8, rdx
jne 0x14002dadb
test r8, r8
je 0x14002da27
test r9d, r9d
je 0x14002da27
movzx edx, byte [rcx]
inc rcx
xor byte [rax], dl
inc rax
dec r9d
jmp 0x14002da12
mov r10d, r9d
mov r11d, edi
shr r10d, 3
test r10d, r10d
je 0x14002dad5
cmp r10d, 8
jb 0x14002dabb
lea edx, [r10 - 1]
lea rdi, [rax + rdx*8]
lea rdx, [rcx + rdx*8]
cmp rax, rdx
ja 0x14002da5a
cmp rdi, rcx
jae 0x14002dabb
mov edx, r10d
and edx, 0xfffffff8
movdqu xmm0, xmmword [rax]
add r11d, 8
movdqu xmm1, xmmword [rcx]
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
xorps xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
movdqu xmm0, xmmword [rax + 0x20]
movdqu xmm1, xmmword [rcx + 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
movdqu xmm0, xmmword [rax + 0x30]
movdqu xmm1, xmmword [rcx + 0x30]
add rcx, 0x40
xorps xmm1, xmm0
movdqu xmmword [rax + 0x30], xmm1
add rax, 0x40
cmp r11d, edx
jb 0x14002da60
cmp r11d, r10d
jae 0x14002dad5
sub r10d, r11d
mov r8d, r10d
mov rdx, qword [rcx]
add rcx, 8
xor qword [rax], rdx
add rax, 8
sub r8, 1
jne 0x14002dac1
and r9d, 7
xor edi, edi
mov r10d, edi
test r9d, r9d
je 0x14002db62
cmp r9d, 8
jb 0x14002db33
lea edx, [r9 - 1]
lea r11, [rdx + rax]
add rdx, rcx
cmp rax, rdx
ja 0x14002db02
cmp r11, rcx
jae 0x14002db33
mov r8d, r9d
and r8d, 0xfffffff8
nop dword [rax]
movq xmm0, qword [rax + r10]
movq xmm1, qword [rcx + r10]
xorps xmm1, xmm0
movq qword [rax + r10], xmm1
add r10d, 8
cmp r10d, r8d
jb 0x14002db10
cmp r10d, r9d
jae 0x14002db62
mov r8d, r10d
sub rcx, rax
add r8, rax
sub r9d, r10d
mov edx, r9d
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor byte [r8], al
lea r8, [r8 + 1]
sub rdx, 1
jne 0x14002db50
movups xmm0, xmmword [rsp + 0x30]
lea rax, [rbx + 0xf]
movups xmmword [r12], xmm0
add byte [rax], 1
jne 0x14002db7d
dec rax
cmp rax, rbx
jns 0x14002db70
add r12, r13
mov dword [rsi + 0x340], edi
add r14, r13
add ebp, 0xfffffff0
cmp ebp, r13d
jae 0x14002d9c0
jmp 0x14002db9d
mov r15d, 0xffffff1e
lea r8, [rsp + 0x30]
mov edx, r13d
neg r8d
lea rax, [rsp + 0x30]
and r8d, 7
sub edx, r8d
mov r9d, r8d
mov ecx, edx
test r8d, r8d
je 0x14002dbcc
nop
mov byte [rax], 0
inc rax
add r9d, 0xffffffff
jne 0x14002dbc0
cmp ecx, 8
jb 0x14002dbf0
mov r9, rcx
shr r9, 3
nop dword [rax + rax]
mov qword [rax], rdi
add ecx, 0xfffffff8
add rax, 8
sub r9, 1
jne 0x14002dbe0
test ecx, ecx
je 0x14002dc00
mov byte [rax], 0
lea rax, [rax + 1]
add ecx, 0xffffffff
jne 0x14002dbf4
test r15d, r15d
jne 0x14002dc84
test ebp, ebp
je 0x14002dcd0
mov r9d, dword [rsi + 0xf0]
shr r9d, 1
lea eax, [r9 - 1]
cmp eax, 6
ja 0x14002dc7c
lea rbx, [rsi + 0x100]
mov rcx, rsi
mov rdx, rbx
lea r8, [rsi + 0x110]
call fcn.14002b8d0
lea r10, [rbx + 0xf]
nop dword [rax]
add byte [r10], 1
jne 0x14002dc4e
dec r10
cmp r10, rbx
jns 0x14002dc40
sub r13d, ebp
lea r8, [rsi + 0x110]
mov r9d, ebp
mov dword [rsi + 0x340], r13d
mov rdx, r14
mov rcx, r12
call fcn.14002b650
mov r13, qword [rsp + 0x58]
mov eax, r15d
mov rbx, qword [rsp + 0x60]
jmp 0x14002dce4
mov r15d, 0xffffff1e
jmp 0x14002dc86
jns 0x14002dcd0
lea rcx, [rsp + 0x30]
test r8d, r8d
je 0x14002dc9c
mov byte [rcx], 0
inc rcx
add r8d, 0xffffffff
jne 0x14002dc90
cmp edx, 8
jb 0x14002dcc0
mov eax, edx
shr rax, 3
nop word [rax + rax]
mov qword [rcx], rdi
add edx, 0xfffffff8
add rcx, 8
sub rax, 1
jne 0x14002dcb0
test edx, edx
je 0x14002dcd0
mov byte [rcx], 0
lea rcx, [rcx + 1]
add edx, 0xffffffff
jne 0x14002dcc4
mov r13, qword [rsp + 0x58]
mov eax, r15d
mov rbx, qword [rsp + 0x60]
jmp 0x14002dce4
mov eax, 0xffffff53
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140053250
add rsp, 0x68
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret