Function at 0x140052290
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x40], rax
test r8, r8
je 0x1400525e0
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r13, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xb0]
cmp rcx, 0x20
setae al
add rcx, 0xffffffffffffffe0
cmp rcx, rdx
setae cl
cmp rsi, rdx
jb 0x140052352
and al, cl
jne 0x140052352
cmp rdi, 0x10
jb 0x1400523ad
lea r15, [rsp + 0x30]
nop dword [rax]
mov rcx, rsi
mov rdx, r15
mov r8, r14
call r13
mov rax, qword [rsi]
mov rcx, qword [r12]
xor rcx, qword [rsp + 0x30]
mov qword [rbx], rcx
mov qword [r12], rax
mov rax, qword [rsi + 8]
mov rcx, qword [r12 + 8]
xor rcx, qword [rsp + 0x38]
mov qword [rbx + 8], rcx
mov qword [r12 + 8], rax
add rdi, 0xfffffffffffffff0
add rsi, 0x10
add rbx, 0x10
cmp rdi, 0xf
ja 0x140052300
test rdi, rdi
jne 0x1400523ad
jmp 0x1400525e0
cmp rdi, 0x10
jb 0x140052399
mov rbp, r12
nop dword [rax + rax]
mov r15, rsi
mov rcx, rsi
mov rdx, rbx
mov r8, r14
call r13
mov rax, qword [rbp]
xor qword [rbx], rax
mov rax, qword [rbp + 8]
xor qword [rbx + 8], rax
add rdi, 0xfffffffffffffff0
add rsi, 0x10
add rbx, 0x10
mov rbp, r15
cmp rdi, 0xf
ja 0x140052360
lea rax, [rsi - 0x10]
jmp 0x14005239c
mov rax, r12
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
test rdi, rdi
je 0x1400525e0
lea r15, [rsp + 0x30]
mov rcx, rsi
mov rdx, r15
mov r8, r14
call r13
lea r9, [rdi - 1]
cmp rdi, 8
jae 0x1400523cf
xor ecx, ecx
jmp 0x14005250a
mov qword [rsp + 0x28], r9
lea rcx, [rbx + rdi]
lea r13, [r12 + rdi]
lea r9, [rsi + rdi]
lea r10, [rsp + rdi]
add r10, 0x30
cmp rbx, r13
setb al
cmp rcx, r12
seta r14b
cmp rbx, r9
setb dl
cmp rsi, rcx
setb r11b
cmp rbx, r10
setb r8b
cmp r15, rcx
setb bpl
cmp r9, r12
seta r9b
cmp rsi, r13
setb byte [rsp + 0x27]
cmp r10, r12
seta r10b
cmp r15, r13
setb r15b
xor ecx, ecx
test al, r14b
jne 0x140052505
and dl, r11b
jne 0x140052505
and r8b, bpl
jne 0x140052505
and r9b, byte [rsp + 0x27]
jne 0x140052505
and r10b, r15b
mov r9, qword [rsp + 0x28]
jne 0x14005250a
cmp rdi, 0x20
jae 0x14005246d
xor ecx, ecx
jmp 0x1400524d0
mov rcx, rdi
and rcx, 0xffffffffffffffe0
xor edx, edx
nop word cs:[rax + rax]
movups xmm0, xmmword [rsi + rdx]
movups xmm1, xmmword [rsi + rdx + 0x10]
movups xmm2, xmmword [rsp + rdx + 0x30]
movups xmm3, xmmword [rsp + rdx + 0x40]
movups xmm4, xmmword [r12 + rdx]
xorps xmm4, xmm2
movups xmm2, xmmword [r12 + rdx + 0x10]
xorps xmm2, xmm3
movups xmmword [rbx + rdx], xmm4
movups xmmword [rbx + rdx + 0x10], xmm2
movups xmmword [r12 + rdx], xmm0
movups xmmword [r12 + rdx + 0x10], xmm1
add rdx, 0x20
cmp rcx, rdx
jne 0x140052480
cmp rdi, rcx
je 0x140052575
test dil, 0x18
je 0x14005250a
mov rdx, rcx
mov rcx, rdi
and rcx, 0xfffffffffffffff8
nop word [rax + rax]
mov rax, qword [rsi + rdx]
mov r8, qword [r12 + rdx]
xor r8, qword [rsp + rdx + 0x30]
mov qword [rbx + rdx], r8
mov qword [r12 + rdx], rax
add rdx, 8
cmp rcx, rdx
jne 0x1400524e0
cmp rdi, rcx
jne 0x14005250a
jmp 0x140052575
mov r9, qword [rsp + 0x28]
mov rdx, rcx
or rdx, 1
test dil, 1
je 0x14005252f
movzx eax, byte [r12 + rcx]
xor al, byte [rsp + rcx + 0x30]
movzx r8d, byte [rsi + rcx]
mov byte [rbx + rcx], al
mov byte [r12 + rcx], r8b
mov rcx, rdx
cmp rdi, rdx
je 0x140052575
nop word cs:[rax + rax]
movzx eax, byte [rsi + rcx]
movzx edx, byte [r12 + rcx]
xor dl, byte [rsp + rcx + 0x30]
mov byte [rbx + rcx], dl
mov byte [r12 + rcx], al
movzx eax, byte [rsi + rcx + 1]
movzx edx, byte [r12 + rcx + 1]
xor dl, byte [rsp + rcx + 0x31]
mov byte [rbx + rcx + 1], dl
mov byte [r12 + rcx + 1], al
add rcx, 2
cmp rdi, rcx
jne 0x140052540
cmp r9, 0xe
ja 0x1400525e0
mov ecx, edi
neg ecx
mov rax, rdi
and rcx, 3
je 0x1400525a0
mov rax, rdi
nop dword [rax + rax]
movzx edx, byte [rsi + rax]
mov byte [r12 + rax], dl
inc rax
dec rcx
jne 0x140052590
add rdi, 0xfffffffffffffff3
cmp rdi, 3
jb 0x1400525e0
nop word [rax + rax]
movzx ecx, byte [rsi + rax]
mov byte [r12 + rax], cl
movzx ecx, byte [rsi + rax + 1]
mov byte [r12 + rax + 1], cl
movzx ecx, byte [rsi + rax + 2]
mov byte [r12 + rax + 2], cl
movzx ecx, byte [rsi + rax + 3]
mov byte [r12 + rax + 3], cl
add rax, 4
cmp rax, 0x10
jne 0x1400525b0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140279500
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret