Function at 0x140056ce0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0xa0
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x30]
test r8, r8
je 0x140056ee1
movdqu xmm2, xmmword [rax]
movdqu xmm3, xmmword [rax + 0x10]
mov rbx, rcx
mov r12, rdx
mov qword [rsp + 0x38], 0
mov rax, qword [r9]
movaps xmmword [rsp + 0x40], xmm2
mov qword [rsp + 0x30], rax
movaps xmmword [rsp + 0x50], xmm3
cmp r8, 0x3f
jbe 0x140056ef4
mov rax, r8
mov qword [rbp + 0x18], rdx
mov rsi, rdx
lea r13, [rsp + 0x40]
sub rax, 0x40
lea r14, [rsp + 0x30]
lea rdi, [rsp + 0x60]
and rax, 0xffffffffffffffc0
add rax, 0x40
mov qword [rsp + 0x20], rax
add rax, rcx
mov qword [rsp + 0x28], rax
mov r12, rax
jmp 0x140056e8b
movdqu xmm0, xmmword [rsi]
pxor xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
movdqu xmm0, xmmword [rsi + 0x10]
pxor xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x10], xmm0
movdqu xmm0, xmmword [rsi + 0x20]
pxor xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x20], xmm0
movdqu xmm0, xmmword [rsi + 0x30]
pxor xmm0, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x30], xmm0
movzx eax, byte [rsp + 0x38]
movzx ecx, byte [rsp + 0x39]
add rbx, 0x40
add rsi, 0x40
movzx r8d, byte [rsp + 0x3a]
movzx r9d, byte [rsp + 0x3b]
mov edx, eax
add eax, 1
movzx r10d, byte [rsp + 0x3c]
movzx r11d, byte [rsp + 0x3d]
shr eax, 8
movzx r15d, byte [rsp + 0x3e]
add edx, 1
add ecx, eax
movzx edx, dl
mov eax, ecx
movzx ecx, cl
shr eax, 8
add r8d, eax
mov eax, r8d
movzx r8d, r8b
shr eax, 8
add r9d, eax
mov eax, r9d
movzx r9d, r9b
shr eax, 8
add r10d, eax
mov eax, r10d
movzx r10d, r10b
shr eax, 8
add r11d, eax
mov eax, r11d
movzx r11d, r11b
shr eax, 8
add r15d, eax
mov eax, r15d
movzx r15d, r15b
shr eax, 8
add al, byte [rsp + 0x3f]
movzx eax, al
shl rax, 8
or rax, r15
shl rax, 8
or rax, r11
shl rax, 8
or rax, r10
shl rax, 8
or rax, r9
shl rax, 8
or rax, r8
shl rax, 8
or rax, rcx
shl rax, 8
or rax, rdx
mov qword [rsp + 0x38], rax
cmp rbx, r12
je 0x140056ed1
mov rdx, r14
xor r9d, r9d
mov r8, r13
mov rcx, rdi
call fcn.140056c00
lea rdx, [rsi + 1]
mov rax, rbx
sub rax, rdx
cmp rax, 0xe
ja 0x140056d80
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rsi + rax]
xor dl, byte [rdi + rax]
mov byte [rbx + rax], dl
add rax, 1
cmp rax, 0x40
jne 0x140056eb8
jmp 0x140056dc0
mov r12, qword [rbp + 0x18]
add r12, qword [rsp + 0x20]
and qword [rbp + 0x20], 0x3f
jne 0x140056f08
lea rsp, [rbp - 0x38]
xor eax, eax
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x28], rcx
lea r13, [rsp + 0x40]
lea r14, [rsp + 0x30]
lea rdi, [rsp + 0x60]
mov rdx, r14
mov rcx, rdi
xor r9d, r9d
mov r8, r13
call fcn.140056c00
mov rsi, qword [rsp + 0x28]
lea rdx, [r12 + 1]
mov ecx, dword [rbp + 0x20]
mov rax, rsi
sub rax, rdx
cmp rax, 0xe
jbe 0x14005708e
cmp ecx, 7
jbe 0x14005708e
test ecx, ecx
mov edx, 1
cmovne edx, ecx
cmp ecx, 0xf
jbe 0x1400570ad
movdqu xmm0, xmmword [r12]
mov eax, edx
pxor xmm0, xmmword [rsp + 0x60]
shr eax, 4
movups xmmword [rsi], xmm0
cmp eax, 1
je 0x140056f95
movdqu xmm0, xmmword [r12 + 0x10]
pxor xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm0
cmp eax, 3
jne 0x140056f95
movdqu xmm0, xmmword [r12 + 0x20]
pxor xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi + 0x20], xmm0
mov eax, edx
and eax, 0xfffffff0
test dl, 0xf
je 0x140056ee1
mov r8d, edx
sub edx, 1
sub edx, eax
sub r8d, eax
cmp edx, 6
jbe 0x140056fe0
mov edx, eax
mov rdi, qword [rsp + 0x28]
movq xmm0, qword [r12 + rdx]
movq xmm1, qword [rsp + rdx + 0x60]
pxor xmm0, xmm1
movq qword [rdi + rdx], xmm0
mov edx, r8d
and edx, 0xfffffff8
add eax, edx
cmp r8d, edx
je 0x140056ee1
mov edx, eax
mov rdi, qword [rsp + 0x28]
movzx r8d, byte [r12 + rdx]
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rdi + rdx], r8b
lea edx, [rax + 1]
cmp ecx, edx
jbe 0x140056ee1
movzx r8d, byte [r12 + rdx]
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rdi + rdx], r8b
lea edx, [rax + 2]
cmp ecx, edx
jbe 0x140056ee1
movzx r8d, byte [r12 + rdx]
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rdi + rdx], r8b
lea edx, [rax + 3]
cmp edx, ecx
jae 0x140056ee1
movzx r8d, byte [r12 + rdx]
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rdi + rdx], r8b
lea edx, [rax + 4]
cmp ecx, edx
jbe 0x140056ee1
movzx r8d, byte [r12 + rdx]
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rdi + rdx], r8b
lea edx, [rax + 5]
cmp ecx, edx
jbe 0x140056ee1
movzx r8d, byte [r12 + rdx]
add eax, 6
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rdi + rdx], r8b
cmp ecx, eax
jbe 0x140056ee1
movzx edx, byte [r12 + rax]
xor dl, byte [rsp + rax + 0x60]
mov byte [rdi + rax], dl
jmp 0x140056ee1
xor eax, eax
mov rsi, qword [rsp + 0x28]
movzx edx, byte [r12 + rax]
xor dl, byte [rdi + rax]
mov byte [rsi + rax], dl
add rax, 1
cmp ecx, eax
ja 0x140057090
jmp 0x140056ee1
xor eax, eax
jmp 0x140056fa3