Function at 0x56c2b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r14, qword [rcx + 0x70]
mov r15, rdx
mov edx, dword [r14 + 0x70]
mov r13, r8
mov rsi, r9
test edx, edx
jne 0x56c3e0
mov r12d, dword [r14 + 0x20]
mov eax, esi
mov dword [rsp + 0x3c], esi
and eax, 0x3f
sub rsi, rax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
cmp rsi, 0x3f
jbe 0x56c3b4
movabs rdi, 0x40000003f
lea rbp, [r14 + 0x20]
jmp 0x56c364
mov r8, rsi
shr r8, 6
mov edx, r8d
add edx, r12d
mov r12, rdx
cmp rdx, r8
jae 0x56c37f
sub r8, rdx
mov qword [rsp + 0x20], rbp
mov rdx, r13
mov rcx, r15
mov rbx, r8
mov r9, r14
shl rbx, 6
mov r8, rbx
sub rsi, rbx
add r13, rbx
add r15, rbx
call fcn.00630cc0
mov dword [r14 + 0x20], 0
add dword [r14 + 0x24], 1
xor r12d, r12d
cmp rsi, 0x3f
jbe 0x56c3b4
cmp rsi, rdi
jbe 0x56c310
mov edx, 0x10000000
mov r8d, 0x10000000
add edx, r12d
mov r12, rdx
cmp rdx, r8
jb 0x56c325
mov rbx, r8
mov qword [rsp + 0x20], rbp
mov rdx, r13
mov rcx, r15
shl rbx, 6
mov r9, r14
mov r8, rbx
sub rsi, rbx
add r13, rbx
add r15, rbx
call fcn.00630cc0
mov dword [r14 + 0x20], r12d
test r12d, r12d
je 0x56c356
cmp rsi, 0x3f
ja 0x56c364
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x56c450
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp edx, 0x3f
ja 0x56c417
test r9, r9
je 0x56c417
nop word [rax + rax]
mov r8d, edx
movzx ecx, byte [r13]
add r15, 1
add r13, 1
xor cl, byte [r14 + r8 + 0x30]
add edx, 1
mov byte [r15 - 1], cl
sub rsi, 1
je 0x56c417
cmp edx, 0x3f
jbe 0x56c3f0
mov dword [r14 + 0x70], edx
test rsi, rsi
je 0x56c3c0
mov r12d, dword [r14 + 0x20]
cmp edx, 0x40
jne 0x56c2dd
add r12d, 1
mov dword [r14 + 0x70], 0
mov dword [r14 + 0x20], r12d
jne 0x56c2dd
add dword [r14 + 0x24], 1
jmp 0x56c2dd
lea rcx, [r14 + 0x30]
lea rdx, [r14 + 0x20]
mov qword [r14 + 0x30], 0
mov r8d, 0x40
mov qword [r14 + 0x38], 0
mov r9, r14
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0
mov qword [rcx + 0x20], 0
mov qword [rcx + 0x28], 0
mov qword [rcx + 0x30], 0
mov qword [rcx + 0x38], 0
mov qword [rsp + 0x20], rdx
mov rdx, rcx
call fcn.00630cc0
lea r8, [r14 + 0x31]
mov eax, dword [rsp + 0x38]
mov rcx, r15
sub rcx, r8
cmp rcx, 0xe
lea edx, [rax - 1]
seta r8b
cmp edx, 6
seta cl
test r8b, cl
je 0x56c64a
lea r8, [r13 + 1]
mov rcx, r15
sub rcx, r8
cmp rcx, 0xe
jbe 0x56c64a
cmp edx, 0xe
jbe 0x56c66c
movdqu xmm0, xmmword [r13]
movdqu xmm2, xmmword [r14 + 0x30]
shr eax, 4
pxor xmm0, xmm2
movups xmmword [r15], xmm0
cmp eax, 1
je 0x56c53e
movdqu xmm0, xmmword [r13 + 0x10]
movdqu xmm3, xmmword [r14 + 0x40]
pxor xmm0, xmm3
movups xmmword [r15 + 0x10], xmm0
cmp eax, 3
jne 0x56c53e
movdqu xmm0, xmmword [r13 + 0x20]
movdqu xmm4, xmmword [r14 + 0x50]
pxor xmm0, xmm4
movups xmmword [r15 + 0x20], xmm0
mov r12d, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x38]
and r12d, 0x30
cmp r12d, eax
je 0x56c63d
mov ecx, eax
sub edx, r12d
sub ecx, r12d
cmp edx, 6
jbe 0x56c590
mov edx, r12d
lea r8d, [r12 + 0x30]
movq xmm0, qword [r13 + rdx]
movq xmm1, qword [r14 + r8]
pxor xmm0, xmm1
movq qword [r15 + rdx], xmm0
mov edx, ecx
and edx, 0xfffffff8
add r12d, edx
cmp edx, ecx
je 0x56c63d
mov edx, r12d
mov eax, dword [rsp + 0x38]
movzx ecx, byte [r13 + rdx]
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
lea edx, [r12 + 1]
cmp edx, eax
jae 0x56c63d
movzx ecx, byte [r13 + rdx]
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
lea edx, [r12 + 2]
cmp edx, eax
jae 0x56c63d
movzx ecx, byte [r13 + rdx]
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
lea edx, [r12 + 3]
cmp eax, edx
jbe 0x56c63d
movzx ecx, byte [r13 + rdx]
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
lea edx, [r12 + 4]
cmp eax, edx
jbe 0x56c63d
movzx ecx, byte [r13 + rdx]
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
lea edx, [r12 + 5]
cmp eax, edx
jbe 0x56c63d
movzx ecx, byte [r13 + rdx]
add r12d, 6
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
cmp eax, r12d
jbe 0x56c63d
mov edx, r12d
movzx eax, byte [r13 + rdx]
xor al, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], al
mov eax, dword [rsp + 0x38]
mov dword [r14 + 0x70], eax
jmp 0x56c3c0
xor edx, edx
nop dword [rax]
movzx ecx, byte [r14 + rdx + 0x30]
xor cl, byte [r13 + rdx]
mov byte [r15 + rdx], cl
add rdx, 1
cmp rdx, qword [rsp + 0x30]
jne 0x56c650
jmp 0x56c63d
mov ecx, eax
xor r12d, r12d
jmp 0x56c561