Function at 0x140220e80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
xor r9b, r9b
xor ebx, ebx
mov r11, rdx
mov r10, rcx
test cl, 3
jne 0x1402210a5
test r11b, 3
jne 0x1402210a5
mov edx, ebx
test r10b, 7
jne 0x140220fa9
test r11b, 7
jne 0x140220fa9
mov rsi, r8
mov r9d, ebx
shr rsi, 3
test rsi, rsi
je 0x140220f84
cmp rsi, 4
jb 0x140220f56
mov r9, rsi
lea rax, [r11 + 0x10]
and r9, 0xfffffffffffffffc
xorps xmm3, xmm3
sub rcx, r11
xorps xmm2, xmm2
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 4
movdqu xmm1, xmmword [rcx + rax - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
movdqu xmm1, xmmword [rcx + rax - 0x20]
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmm1
cmp rdx, r9
jb 0x140220f00
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movq r9, xmm2
cmp rdx, rsi
jae 0x140220f84
mov rbp, r10
lea rcx, [r11 + rdx*8]
sub rbp, r11
mov rdi, rsi
sub rdi, rdx
mov rdx, rsi
nop dword [rax]
mov rax, qword [rcx + rbp]
xor rax, qword [rcx]
lea rcx, [rcx + 8]
or r9, rax
sub rdi, 1
jne 0x140220f70
lea rdx, [rdx*8]
sub r8, rdx
jne 0x140220f99
test r9, r9
jmp 0x140221177
add r10, rdx
add r11, rdx
mov rdx, r9
shr rdx, 0x20
or edx, r9d
mov rsi, r8
mov rdi, rbx
shr rsi, 2
test rsi, rsi
je 0x140221071
cmp rsi, 8
jb 0x140221044
mov r9, rsi
lea rax, [r11 + 0x10]
and r9, 0xfffffffffffffff8
mov rcx, r10
sub rcx, r11
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x10]
add rdi, 8
movdqu xmm1, xmmword [rax + rcx - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
movdqu xmm1, xmmword [rax + rcx - 0x20]
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmm1
cmp rdi, r9
jb 0x140220fe0
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd eax, xmm2
or edx, eax
cmp rdi, rsi
jae 0x140221071
mov rbp, r10
lea rcx, [r11 + rdi*4]
sub rbp, r11
mov r9, rsi
sub r9, rdi
mov rdi, rsi
nop word [rax + rax]
mov eax, dword [rcx + rbp]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
or edx, eax
sub r9, 1
jne 0x140221060
lea rdi, [rdi*4]
sub r8, rdi
jne 0x140221085
test edx, edx
jmp 0x140221177
mov r9d, edx
mov eax, edx
shr eax, 0x10
add r10, rdi
shr r9d, 0x18
add r11, rdi
or r9b, al
mov eax, edx
shr eax, 8
or r9b, al
or r9b, dl
test r8, r8
je 0x140221174
cmp r8, 0x20
jb 0x14022114f
mov rdx, r8
lea rax, [r11 + 0x10]
and rdx, 0xffffffffffffffe0
mov rcx, r10
sub rcx, r11
xorps xmm3, xmm3
xorps xmm2, xmm2
nop
movdqu xmm0, xmmword [rax - 0x10]
add rbx, 0x20
movdqu xmm1, xmmword [rax + rcx - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
movdqu xmm1, xmmword [rax + rcx - 0x20]
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmm1
cmp rbx, rdx
jb 0x1402210d0
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or r9b, al
cmp rbx, r8
jae 0x140221174
sub r10, r11
lea rcx, [rbx + r11]
sub r8, rbx
nop dword [rax]
movzx eax, byte [rcx + r10]
xor al, byte [rcx]
lea rcx, [rcx + 1]
or r9b, al
sub r8, 1
jne 0x140221160
test r9b, r9b
mov rbx, qword [rsp + 8]
sete al
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret