Function at 0x140021420
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140021a7b
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push r15
sub rsp, 0x40
mov qword [rax + 8], rbx
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
lea rsi, [rdx + 2]
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
mov r14, qword [rsp + 0x70]
sub rdx, rcx
mov r15, r9
mov r11, r8
lea rax, [rdx - 8]
mov qword [rsp], rsi
lea r12, [rcx + 8]
mov qword [rsp + 8], rax
lea rbp, [0x140000000]
mov r13, qword [r15]
mov eax, dword [r12 - 8]
mov r10d, eax
rol eax, 8
and eax, 0xff00ff
ror r10d, 8
and r10d, 0xff00ff00
or r10d, eax
mov eax, dword [r12 - 4]
xor r10d, dword [r13]
mov edx, eax
rol eax, 8
and eax, 0xff00ff
ror edx, 8
and edx, 0xff00ff00
or edx, eax
mov eax, dword [r12]
xor edx, dword [r13 + 4]
mov r9d, eax
rol eax, 8
and eax, 0xff00ff
ror r9d, 8
and r9d, 0xff00ff00
or r9d, eax
mov eax, dword [r12 + 4]
xor r9d, dword [r13 + 8]
mov r8d, eax
rol eax, 8
and eax, 0xff00ff
ror r8d, 8
and r8d, 0xff00ff00
or r8d, eax
mov eax, r9d
xor r8d, dword [r13 + 0xc]
shr eax, 8
movzx ecx, al
mov eax, edx
mov ebx, dword [rbp + rcx*4 + 0x312450]
shr eax, 0x10
movzx ecx, al
ror ebx, 0x10
mov eax, dword [rbp + rcx*4 + 0x312450]
ror eax, 8
xor ebx, eax
movzx eax, r8b
mov ecx, dword [rbp + rax*4 + 0x312450]
mov eax, r10d
shr eax, 0x18
rol ecx, 8
xor ebx, ecx
movzx ecx, al
mov eax, r8d
xor ebx, dword [rbp + rcx*4 + 0x312450]
shr eax, 8
xor ebx, dword [r13 + 0x10]
movzx ecx, al
mov eax, r9d
mov edi, dword [rbp + rcx*4 + 0x312450]
shr eax, 0x10
movzx ecx, al
mov eax, dword [rbp + rcx*4 + 0x312450]
ror eax, 8
ror edi, 0x10
xor edi, eax
movzx eax, r10b
mov ecx, dword [rbp + rax*4 + 0x312450]
mov eax, edx
shr eax, 0x18
rol ecx, 8
xor edi, ecx
movzx ecx, al
mov eax, r8d
xor edi, dword [rbp + rcx*4 + 0x312450]
shr eax, 0x10
xor edi, dword [r13 + 0x14]
movzx ecx, al
mov eax, r10d
mov ebp, dword [rbp + rcx*4 + 0x312450]
ror ebp, 8
shr eax, 8
movzx ecx, al
mov r15, qword [r15 + 8]
lea rax, [0x140000000]
shr r10d, 0x10
mov eax, dword [rax + rcx*4 + 0x312450]
lea rcx, [0x140000000]
shr r8d, 0x18
ror eax, 0x10
xor ebp, eax
movzx eax, dl
shr edx, 8
mov ecx, dword [rcx + rax*4 + 0x312450]
mov eax, r9d
shr eax, 0x18
rol ecx, 8
xor ebp, ecx
movzx ecx, al
lea rax, [0x140000000]
xor ebp, dword [rax + rcx*4 + 0x312450]
movzx eax, dl
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x312450]
xor ebp, dword [r13 + 0x18]
movzx ecx, r10b
lea r10, [0x140000000]
ror eax, 0x10
mov edx, dword [r10 + rcx*4 + 0x312450]
movzx ecx, r9b
ror edx, 8
xor eax, edx
mov edx, dword [r10 + rcx*4 + 0x312450]
movzx ecx, r8b
rol edx, 8
xor eax, edx
xor eax, dword [r10 + rcx*4 + 0x312450]
xor eax, dword [r13 + 0x1c]
cmp r15, 8
jbe 0x14002189f
add r15, 0xfffffffffffffff7
mov r14d, 0x28
lea rsi, [0x140000000]
shr r15, 3
inc r15
nop word [rax + rax]
mov ecx, ebp
shr ecx, 8
movzx r8d, cl
mov ecx, edi
mov r11d, dword [rsi + r8*4 + 0x312c50]
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
xor r11d, dword [rsi + rdx*4 + 0x312850]
shr ecx, 0x18
movzx edx, cl
movzx ecx, al
xor r11d, dword [rsi + rdx*4 + 0x312450]
xor r11d, dword [rsi + rcx*4 + 0x313050]
mov ecx, eax
xor r11d, dword [r13 + r14 - 8]
shr ecx, 8
movzx r8d, cl
mov ecx, ebp
mov r10d, dword [rsi + r8*4 + 0x312c50]
shr ecx, 0x10
movzx edx, cl
mov ecx, edi
xor r10d, dword [rsi + rdx*4 + 0x312850]
shr ecx, 0x18
movzx edx, cl
movzx ecx, bl
xor r10d, dword [rsi + rdx*4 + 0x312450]
xor r10d, dword [rsi + rcx*4 + 0x313050]
mov ecx, eax
shr eax, 0x18
xor r10d, dword [r13 + r14 - 4]
shr ecx, 0x10
movzx r8d, cl
mov ecx, ebp
mov r9d, dword [rsi + r8*4 + 0x312850]
shr ecx, 0x18
movzx edx, cl
mov ecx, ebx
shr ebx, 0x10
xor r9d, dword [rsi + rdx*4 + 0x312450]
shr ecx, 8
movzx edx, cl
movzx ecx, dil
shr edi, 8
xor r9d, dword [rsi + rdx*4 + 0x312c50]
xor r9d, dword [rsi + rcx*4 + 0x313050]
movzx ecx, al
movzx eax, dil
mov r8d, dword [rsi + rcx*4 + 0x312450]
xor r9d, dword [r13 + r14]
xor r8d, dword [rsi + rax*4 + 0x312c50]
movzx eax, bl
xor r8d, dword [rsi + rax*4 + 0x312850]
movzx eax, bpl
xor r8d, dword [rsi + rax*4 + 0x313050]
mov eax, r9d
xor r8d, dword [r13 + r14 + 4]
shr eax, 8
movzx edx, al
mov eax, r10d
mov ebx, dword [rsi + rdx*4 + 0x312c50]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor ebx, dword [rsi + rcx*4 + 0x312850]
shr eax, 0x18
movzx ecx, al
movzx eax, r8b
xor ebx, dword [rsi + rcx*4 + 0x312450]
xor ebx, dword [rsi + rax*4 + 0x313050]
mov eax, r8d
xor ebx, dword [r13 + r14 + 8]
shr eax, 8
movzx edx, al
mov eax, r9d
mov edi, dword [rsi + rdx*4 + 0x312c50]
shr eax, 0x10
movzx ecx, al
mov eax, r10d
xor edi, dword [rsi + rcx*4 + 0x312850]
shr eax, 0x18
lea r14, [r14 + 0x20]
movzx ecx, al
movzx eax, r11b
xor edi, dword [rsi + rcx*4 + 0x312450]
xor edi, dword [rsi + rax*4 + 0x313050]
mov eax, r8d
shr r8d, 0x18
xor edi, dword [r13 + r14 - 0x14]
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov ebp, dword [rsi + rdx*4 + 0x312850]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
shr r11d, 0x10
xor ebp, dword [rsi + rcx*4 + 0x312450]
shr eax, 8
movzx ecx, al
movzx eax, r10b
shr r10d, 8
xor ebp, dword [rsi + rcx*4 + 0x312c50]
movzx ecx, r10b
xor ebp, dword [rsi + rax*4 + 0x313050]
movzx eax, r8b
mov eax, dword [rsi + rax*4 + 0x312450]
xor ebp, dword [r13 + r14 - 0x10]
xor eax, dword [rsi + rcx*4 + 0x312c50]
movzx ecx, r11b
xor eax, dword [rsi + rcx*4 + 0x312850]
movzx ecx, r9b
xor eax, dword [rsi + rcx*4 + 0x313050]
xor eax, dword [r13 + r14 - 0xc]
dec r15
jne 0x140021680
mov rsi, qword [rsp]
mov r14, qword [rsp + 0x70]
mov r11, qword [rsp + 0x60]
lea r10, [0x140000000]
mov ecx, ebx
shr ecx, 0x18
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx]
mov rcx, qword [rsp + 8]
mov byte [rcx + r12], dl
mov ecx, edi
shr ecx, 0x10
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 1]
mov ecx, ebp
mov byte [rsi - 1], dl
shr ecx, 8
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 2]
mov byte [rsi], dl
mov rcx, qword [r14]
movzx edx, al
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 3]
mov ecx, edi
mov byte [rsi + 1], dl
shr ecx, 0x18
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 4]
mov ecx, ebp
mov byte [rsi + 2], dl
shr ecx, 0x10
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 5]
mov ecx, eax
mov byte [rsi + 3], dl
shr ecx, 8
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 6]
mov byte [rsi + 4], dl
mov rcx, qword [r14]
movzx edx, bl
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 7]
mov ecx, ebp
mov byte [rsi + 5], dl
shr ecx, 0x18
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 8]
mov ecx, eax
mov byte [rsi + 6], dl
shr ecx, 0x10
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 9]
mov ecx, ebx
mov byte [rsi + 7], dl
shr ecx, 8
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 0xa]
mov byte [rsi + 8], dl
mov rcx, qword [r14]
movzx edx, dil
movzx edx, byte [rdx + r10 + 0x313c70]
xor dl, byte [rcx + 0xb]
shr eax, 0x18
mov byte [rsi + 9], dl
movzx ecx, al
movzx ecx, byte [rcx + r10 + 0x313c70]
mov rax, qword [r14]
mov r15, qword [rsp + 0x68]
xor cl, byte [rax + 0xc]
shr ebx, 0x10
shr edi, 8
mov byte [rsi + 0xa], cl
mov rax, qword [r14]
movzx ecx, bl
movzx ecx, byte [rcx + r10 + 0x313c70]
add rsi, 0x10
add r12, 0x10
xor cl, byte [rax + 0xd]
mov qword [rsp], rsi
mov byte [rsi - 5], cl
mov rax, qword [r14]
movzx ecx, dil
movzx ecx, byte [rcx + r10 + 0x313c70]
xor cl, byte [rax + 0xe]
mov byte [rsi - 4], cl
mov rax, qword [r14]
movzx ecx, bpl
movzx ecx, byte [rcx + r10 + 0x313c70]
lea rbp, [0x140000000]
xor cl, byte [rax + 0xf]
dec r11
mov byte [rsi - 3], cl
mov qword [rsp + 0x60], r11
jne 0x140021480
mov r14, qword [rsp + 0x10]
mov r13, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r15
ret