Function at 0x14003a260
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1400b5200]
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 0x14003a62f
test rdx, rdx
je 0x14003a62f
test r8, r8
je 0x14003a62f
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.140037fa0
sub dword [rsi + 0x340], ebx
sub ebp, ebx
mov eax, ebx
mov r13d, 0x10
add r12, rax
add r14, rax
cmp ebp, r13d
jb 0x14003a4ed
lea rbx, [rsi + 0x100]
nop dword [rax + rax]
mov r9d, dword [rsi + 0xf0]
shr r9d, 1
lea eax, [r9 - 1]
cmp eax, 6
ja 0x14003a4e7
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
call fcn.140038220
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 0x14003a42b
test r8, r8
je 0x14003a377
test r9d, r9d
je 0x14003a377
movzx edx, byte [rcx]
inc rcx
xor byte [rax], dl
inc rax
dec r9d
jmp 0x14003a362
mov r10d, r9d
mov r11d, edi
shr r10d, 3
test r10d, r10d
je 0x14003a425
cmp r10d, 8
jb 0x14003a40b
lea edx, [r10 - 1]
lea rdi, [rax + rdx*8]
lea rdx, [rcx + rdx*8]
cmp rax, rdx
ja 0x14003a3aa
cmp rdi, rcx
jae 0x14003a40b
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 0x14003a3b0
cmp r11d, r10d
jae 0x14003a425
sub r10d, r11d
mov r8d, r10d
mov rdx, qword [rcx]
add rcx, 8
xor qword [rax], rdx
add rax, 8
sub r8, 1
jne 0x14003a411
and r9d, 7
xor edi, edi
mov r10d, edi
test r9d, r9d
je 0x14003a4b2
cmp r9d, 8
jb 0x14003a483
lea edx, [r9 - 1]
lea r11, [rdx + rax]
add rdx, rcx
cmp rax, rdx
ja 0x14003a452
cmp r11, rcx
jae 0x14003a483
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 0x14003a460
cmp r10d, r9d
jae 0x14003a4b2
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 0x14003a4a0
movups xmm0, xmmword [rsp + 0x30]
lea rax, [rbx + 0xf]
movups xmmword [r12], xmm0
add byte [rax], 1
jne 0x14003a4cd
dec rax
cmp rax, rbx
jns 0x14003a4c0
add r12, r13
mov dword [rsi + 0x340], edi
add r14, r13
add ebp, 0xfffffff0
cmp ebp, r13d
jae 0x14003a310
jmp 0x14003a4ed
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 0x14003a51c
nop
mov byte [rax], 0
inc rax
add r9d, 0xffffffff
jne 0x14003a510
cmp ecx, 8
jb 0x14003a540
mov r9, rcx
shr r9, 3
nop dword [rax + rax]
mov qword [rax], rdi
add ecx, 0xfffffff8
add rax, 8
sub r9, 1
jne 0x14003a530
test ecx, ecx
je 0x14003a550
mov byte [rax], 0
lea rax, [rax + 1]
add ecx, 0xffffffff
jne 0x14003a544
test r15d, r15d
jne 0x14003a5d4
test ebp, ebp
je 0x14003a620
mov r9d, dword [rsi + 0xf0]
shr r9d, 1
lea eax, [r9 - 1]
cmp eax, 6
ja 0x14003a5cc
lea rbx, [rsi + 0x100]
mov rcx, rsi
mov rdx, rbx
lea r8, [rsi + 0x110]
call fcn.140038220
lea r10, [rbx + 0xf]
nop dword [rax]
add byte [r10], 1
jne 0x14003a59e
dec r10
cmp r10, rbx
jns 0x14003a590
sub r13d, ebp
lea r8, [rsi + 0x110]
mov r9d, ebp
mov dword [rsi + 0x340], r13d
mov rdx, r14
mov rcx, r12
call fcn.140037fa0
mov r13, qword [rsp + 0x58]
mov eax, r15d
mov rbx, qword [rsp + 0x60]
jmp 0x14003a634
mov r15d, 0xffffff1e
jmp 0x14003a5d6
jns 0x14003a620
lea rcx, [rsp + 0x30]
test r8d, r8d
je 0x14003a5ec
mov byte [rcx], 0
inc rcx
add r8d, 0xffffffff
jne 0x14003a5e0
cmp edx, 8
jb 0x14003a610
mov eax, edx
shr rax, 3
nop word [rax + rax]
mov qword [rcx], rdi
add edx, 0xfffffff8
add rcx, 8
sub rax, 1
jne 0x14003a600
test edx, edx
je 0x14003a620
mov byte [rcx], 0
lea rcx, [rcx + 1]
add edx, 0xffffffff
jne 0x14003a614
mov r13, qword [rsp + 0x58]
mov eax, r15d
mov rbx, qword [rsp + 0x60]
jmp 0x14003a634
mov eax, 0xffffff53
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14005e480
add rsp, 0x68
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret