Function at 0x140021840
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140021e9b
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 rdi, [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 r9d, eax
rol eax, 8
and eax, 0xff00ff
ror r9d, 8
and r9d, 0xff00ff00
or r9d, eax
mov eax, dword [r12]
xor r9d, dword [r13 + 4]
mov edx, eax
rol eax, 8
and eax, 0xff00ff
ror edx, 8
and edx, 0xff00ff00
or edx, eax
mov eax, dword [r12 + 4]
xor edx, dword [r13 + 8]
mov r8d, eax
rol eax, 8
and eax, 0xff00ff
ror r8d, 8
and r8d, 0xff00ff00
or r8d, eax
xor r8d, dword [r13 + 0xc]
mov eax, r8d
shr eax, 0x10
movzx ecx, al
mov eax, edx
mov ebp, dword [rdi + rcx*4 + 0x2f7860]
shr eax, 8
movzx ecx, al
ror ebp, 8
mov eax, dword [rdi + rcx*4 + 0x2f7860]
ror eax, 0x10
xor ebp, eax
movzx eax, r9b
mov ecx, dword [rdi + rax*4 + 0x2f7860]
mov eax, r10d
shr eax, 0x18
rol ecx, 8
xor ebp, ecx
movzx ecx, al
mov eax, r8d
xor ebp, dword [rdi + rcx*4 + 0x2f7860]
shr eax, 8
xor ebp, dword [r13 + 0x10]
movzx ecx, al
mov eax, r10d
mov ebx, dword [rdi + rcx*4 + 0x2f7860]
shr eax, 0x10
movzx ecx, al
mov eax, dword [rdi + rcx*4 + 0x2f7860]
ror eax, 8
ror ebx, 0x10
xor ebx, eax
movzx eax, dl
mov ecx, dword [rdi + rax*4 + 0x2f7860]
mov eax, r9d
shr eax, 0x18
rol ecx, 8
xor ebx, ecx
movzx ecx, al
mov eax, r9d
xor ebx, dword [rdi + rcx*4 + 0x2f7860]
shr eax, 0x10
xor ebx, dword [r13 + 0x14]
movzx ecx, al
mov eax, r10d
mov edi, dword [rdi + rcx*4 + 0x2f7860]
ror edi, 8
shr eax, 8
movzx ecx, al
mov r15, qword [r15 + 8]
lea rax, [0x140000000]
shr r9d, 8
mov eax, dword [rax + rcx*4 + 0x2f7860]
lea rcx, [0x140000000]
ror eax, 0x10
xor edi, eax
movzx eax, r8b
shr r8d, 0x18
mov ecx, dword [rcx + rax*4 + 0x2f7860]
mov eax, edx
shr edx, 0x10
shr eax, 0x18
rol ecx, 8
xor edi, ecx
movzx ecx, al
lea rax, [0x140000000]
xor edi, dword [rax + rcx*4 + 0x2f7860]
movzx eax, dl
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x2f7860]
xor edi, dword [r13 + 0x18]
movzx ecx, r9b
lea r9, [0x140000000]
ror eax, 8
mov edx, dword [r9 + rcx*4 + 0x2f7860]
movzx ecx, r10b
ror edx, 0x10
xor eax, edx
mov edx, dword [r9 + rcx*4 + 0x2f7860]
movzx ecx, r8b
rol edx, 8
xor eax, edx
xor eax, dword [r9 + rcx*4 + 0x2f7860]
xor eax, dword [r13 + 0x1c]
cmp r15, 8
jbe 0x140021cbf
add r15, 0xfffffffffffffff7
mov r14d, 0x28
lea rsi, [0x140000000]
shr r15, 3
inc r15
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x10
movzx r8d, cl
mov ecx, edi
mov r11d, dword [rsi + r8*4 + 0x2f7c60]
shr ecx, 8
movzx edx, cl
mov ecx, ebp
xor r11d, dword [rsi + rdx*4 + 0x2f8060]
shr ecx, 0x18
movzx edx, cl
movzx ecx, bl
xor r11d, dword [rsi + rdx*4 + 0x2f7860]
xor r11d, dword [rsi + rcx*4 + 0x2f8460]
mov ecx, eax
xor r11d, dword [r13 + r14 - 8]
shr ecx, 8
movzx r8d, cl
mov ecx, ebx
mov r10d, dword [rsi + r8*4 + 0x2f8060]
shr ecx, 0x18
movzx edx, cl
mov ecx, ebp
xor r10d, dword [rsi + rdx*4 + 0x2f7860]
shr ecx, 0x10
movzx edx, cl
movzx ecx, dil
xor r10d, dword [rsi + rdx*4 + 0x2f7c60]
xor r10d, dword [rsi + rcx*4 + 0x2f8460]
mov ecx, edi
shr edi, 0x10
xor r10d, dword [r13 + r14 - 4]
shr ecx, 0x18
movzx r8d, cl
mov ecx, ebx
shr ebx, 8
mov r9d, dword [rsi + r8*4 + 0x2f7860]
shr ecx, 0x10
movzx edx, cl
mov ecx, ebp
xor r9d, dword [rsi + rdx*4 + 0x2f7c60]
shr ecx, 8
movzx edx, cl
movzx ecx, al
shr eax, 0x18
xor r9d, dword [rsi + rdx*4 + 0x2f8060]
xor r9d, dword [rsi + rcx*4 + 0x2f8460]
movzx ecx, al
movzx eax, dil
mov r8d, dword [rsi + rcx*4 + 0x2f7860]
xor r9d, dword [r13 + r14]
xor r8d, dword [rsi + rax*4 + 0x2f7c60]
movzx eax, bl
xor r8d, dword [rsi + rax*4 + 0x2f8060]
movzx eax, bpl
xor r8d, dword [rsi + rax*4 + 0x2f8460]
xor r8d, dword [r13 + r14 + 4]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov ebp, dword [rsi + rdx*4 + 0x2f7c60]
shr eax, 8
movzx ecx, al
mov eax, r11d
xor ebp, dword [rsi + rcx*4 + 0x2f8060]
shr eax, 0x18
movzx ecx, al
movzx eax, r10b
xor ebp, dword [rsi + rcx*4 + 0x2f7860]
xor ebp, dword [rsi + rax*4 + 0x2f8460]
mov eax, r8d
xor ebp, dword [r13 + r14 + 8]
shr eax, 8
movzx edx, al
mov eax, r10d
mov ebx, dword [rsi + rdx*4 + 0x2f8060]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
xor ebx, dword [rsi + rcx*4 + 0x2f7860]
shr eax, 0x10
lea r14, [r14 + 0x20]
movzx ecx, al
movzx eax, r9b
xor ebx, dword [rsi + rcx*4 + 0x2f7c60]
xor ebx, dword [rsi + rax*4 + 0x2f8460]
mov eax, r9d
shr r9d, 0x10
xor ebx, dword [r13 + r14 - 0x14]
shr eax, 0x18
movzx edx, al
mov eax, r10d
shr r10d, 8
mov edi, dword [rsi + rdx*4 + 0x2f7860]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor edi, dword [rsi + rcx*4 + 0x2f7c60]
shr eax, 8
movzx ecx, al
movzx eax, r8b
shr r8d, 0x18
xor edi, dword [rsi + rcx*4 + 0x2f8060]
movzx ecx, r9b
xor edi, dword [rsi + rax*4 + 0x2f8460]
movzx eax, r8b
mov eax, dword [rsi + rax*4 + 0x2f7860]
xor edi, dword [r13 + r14 - 0x10]
xor eax, dword [rsi + rcx*4 + 0x2f7c60]
movzx ecx, r10b
xor eax, dword [rsi + rcx*4 + 0x2f8060]
movzx ecx, r11b
xor eax, dword [rsi + rcx*4 + 0x2f8460]
xor eax, dword [r13 + r14 - 0xc]
dec r15
jne 0x140021aa0
mov rsi, qword [rsp]
mov r14, qword [rsp + 0x70]
mov r11, qword [rsp + 0x60]
lea r9, [0x140000000]
mov ecx, ebp
shr ecx, 0x18
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r9 + 0x2f7450]
xor dl, byte [rcx]
mov rcx, qword [rsp + 8]
mov byte [rcx + r12], dl
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r9 + 0x2f7450]
xor dl, byte [rcx + 1]
mov ecx, edi
mov byte [rsi - 1], dl
shr ecx, 8
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r9 + 0x2f7450]
xor dl, byte [rcx + 2]
mov byte [rsi], dl
mov rcx, qword [r14]
movzx edx, bl
movzx edx, byte [rdx + r9 + 0x2f7450]
xor dl, byte [rcx + 3]
mov ecx, ebx
mov byte [rsi + 1], dl
shr ecx, 0x18
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r9 + 0x2f7450]
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 + r9 + 0x2f7450]
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 + r9 + 0x2f7450]
xor dl, byte [rcx + 6]
mov byte [rsi + 4], dl
mov rcx, qword [r14]
movzx edx, dil
movzx edx, byte [rdx + r9 + 0x2f7450]
xor dl, byte [rcx + 7]
mov ecx, edi
mov byte [rsi + 5], dl
shr ecx, 0x18
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r9 + 0x2f7450]
xor dl, byte [rcx + 8]
mov ecx, ebx
mov byte [rsi + 6], dl
shr ecx, 0x10
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r9 + 0x2f7450]
xor dl, byte [rcx + 9]
mov ecx, ebp
mov byte [rsi + 7], dl
shr ecx, 8
movzx edx, cl
mov rcx, qword [r14]
movzx edx, byte [rdx + r9 + 0x2f7450]
xor dl, byte [rcx + 0xa]
mov byte [rsi + 8], dl
mov rcx, qword [r14]
movzx edx, al
movzx edx, byte [rdx + r9 + 0x2f7450]
xor dl, byte [rcx + 0xb]
shr eax, 0x18
mov byte [rsi + 9], dl
movzx ecx, al
movzx ecx, byte [rcx + r9 + 0x2f7450]
mov rax, qword [r14]
mov r15, qword [rsp + 0x68]
xor cl, byte [rax + 0xc]
shr edi, 0x10
shr ebx, 8
mov byte [rsi + 0xa], cl
mov rax, qword [r14]
movzx ecx, dil
movzx ecx, byte [rcx + r9 + 0x2f7450]
add rsi, 0x10
add r12, 0x10
xor cl, byte [rax + 0xd]
mov qword [rsp], rsi
lea rdi, [0x140000000]
mov byte [rsi - 5], cl
mov rax, qword [r14]
movzx ecx, bl
movzx ecx, byte [rcx + r9 + 0x2f7450]
xor cl, byte [rax + 0xe]
mov byte [rsi - 4], cl
mov rax, qword [r14]
movzx ecx, bpl
movzx ecx, byte [rcx + r9 + 0x2f7450]
xor cl, byte [rax + 0xf]
dec r11
mov byte [rsi - 3], cl
mov qword [rsp + 0x60], r11
jne 0x1400218a0
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