Function at 0x140021fd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
cmp dword [0x140039ab4], 0
mov rdi, rdx
mov rsi, rcx
je 0x140022008
call fcn.140020ce0
mov dword [0x140039ab4], 0
mov dword [rsi + 0x200], 0xe
mov rax, rsi
movzx ecx, byte [rdi + 1]
movzx ebx, byte [rdi]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [rdi + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [rdi + 3]
shl ebx, 8
or ebx, ecx
mov dword [rsi], ebx
movzx ecx, byte [rdi + 5]
movzx edx, byte [rdi + 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 7]
shl edx, 8
or edx, ecx
mov dword [rsi + 4], edx
movzx ecx, byte [rdi + 9]
movzx edx, byte [rdi + 8]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0xa]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0xb]
shl edx, 8
or edx, ecx
mov dword [rsi + 8], edx
movzx ecx, byte [rdi + 0xd]
movzx edx, byte [rdi + 0xc]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0xe]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0xf]
shl edx, 8
or edx, ecx
mov dword [rsi + 0xc], edx
movzx ecx, byte [rdi + 0x11]
movzx edx, byte [rdi + 0x10]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0x12]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0x13]
shl edx, 8
or edx, ecx
mov dword [rsi + 0x10], edx
movzx ecx, byte [rdi + 0x15]
movzx edx, byte [rdi + 0x14]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0x16]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0x17]
shl edx, 8
or edx, ecx
mov dword [rsi + 0x14], edx
movzx ecx, byte [rdi + 0x19]
movzx edx, byte [rdi + 0x18]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0x1a]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0x1b]
shl edx, 8
or edx, ecx
mov dword [rsi + 0x18], edx
movzx edx, byte [rdi + 0x1c]
shl edx, 8
movzx ecx, byte [rdi + 0x1d]
lea r15, [0x14003e33c]
or edx, ecx
lea r14, [0x140000000]
movzx ecx, byte [rdi + 0x1e]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 0x1f]
shl edx, 8
lea rdi, [0x14003e320]
or edx, ecx
mov dword [rsi + 0x1c], edx
nop dword [rax + rax]
mov r10d, dword [rax + 0x1c]
lea r11, [rax]
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r10d
shr eax, 8
mov edx, dword [r14 + rcx*4 + 0x3ef50]
shl edx, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [r14 + rcx*4 + 0x3ef50]
shl edx, 8
xor edx, dword [r14 + rax*4 + 0x3ef50]
mov eax, r10d
shl edx, 8
shr rax, 0x18
xor edx, dword [r14 + rax*4 + 0x3ef50]
lea rax, [r11 + 0x20]
xor edx, dword [rdi]
add rdi, 4
xor edx, ebx
mov ecx, edx
mov dword [rax], edx
xor ecx, dword [r11 + 4]
mov ebx, edx
mov dword [r11 + 0x24], ecx
xor ecx, dword [r11 + 8]
mov dword [r11 + 0x28], ecx
xor ecx, dword [r11 + 0xc]
mov r8d, ecx
shr rcx, 0x18
mov dword [r11 + 0x2c], r8d
mov r9d, dword [r14 + rcx*4 + 0x3ef50]
mov ecx, r8d
shl r9d, 8
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr ecx, 8
xor r9d, dword [r14 + rdx*4 + 0x3ef50]
shl r9d, 8
movzx edx, cl
movzx ecx, r8b
xor r9d, dword [r14 + rdx*4 + 0x3ef50]
shl r9d, 8
xor r9d, dword [r14 + rcx*4 + 0x3ef50]
xor r9d, dword [r11 + 0x10]
mov dword [r11 + 0x30], r9d
xor r9d, dword [r11 + 0x14]
mov dword [r11 + 0x34], r9d
xor r9d, dword [r11 + 0x18]
xor r10d, r9d
mov dword [r11 + 0x38], r9d
mov dword [r11 + 0x3c], r10d
cmp rdi, r15
jl 0x140022140
cmp dword [0x140039ab0], 0
je 0x1400222a1
xor r8d, r8d
mov r9d, 0x100
nop word [rax + rax]
mov ecx, dword [r8 + r14 + 0x3ef50]
lea r8, [r8 + 4]
lea rdx, [rcx*4]
mov ecx, dword [rdx + r14 + 0x3d320]
mov dword [r8 + r14 + 0x3e34c], ecx
mov ecx, dword [rdx + r14 + 0x3d720]
mov dword [r8 + r14 + 0x3c31c], ecx
mov ecx, dword [rdx + r14 + 0x3bf20]
mov dword [r8 + r14 + 0x3cb1c], ecx
mov ecx, dword [rdx + r14 + 0x3eb50]
mov dword [r8 + r14 + 0x3f34c], ecx
sub r9, 1
jne 0x140022240
mov dword [0x140039ab0], r9d
lea r11, [rsi + 0x100]
mov dword [r11], ebx
mov ebx, 1
mov ecx, dword [rax + 4]
mov dword [r11 + 4], ecx
mov ecx, dword [rax + 8]
mov dword [r11 + 8], ecx
mov ecx, dword [rax + 0xc]
add rax, 0x10
mov dword [r11 + 0xc], ecx
add r11, 0x10
cmp dword [rsi + 0x200], ebx
jle 0x140022409
nop dword [rax]
mov r10d, dword [rax - 0x20]
inc ebx
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r14 + r8*4 + 0x3e350]
xor r9d, dword [r14 + rdx*4 + 0x3c320]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r14 + rdx*4 + 0x3cb20]
xor r9d, dword [r14 + rcx*4 + 0x3f350]
mov dword [r11], r9d
mov r10d, dword [rax - 0x1c]
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r14 + r8*4 + 0x3e350]
xor r9d, dword [r14 + rdx*4 + 0x3c320]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r14 + rdx*4 + 0x3cb20]
xor r9d, dword [r14 + rcx*4 + 0x3f350]
mov dword [r11 + 4], r9d
mov r10d, dword [rax - 0x18]
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r14 + r8*4 + 0x3e350]
xor r9d, dword [r14 + rdx*4 + 0x3c320]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r14 + rdx*4 + 0x3cb20]
xor r9d, dword [r14 + rcx*4 + 0x3f350]
mov dword [r11 + 8], r9d
mov r10d, dword [rax - 0x14]
add rax, 0xfffffffffffffff0
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r14 + r8*4 + 0x3e350]
xor r9d, dword [r14 + rdx*4 + 0x3c320]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r14 + rdx*4 + 0x3cb20]
xor r9d, dword [r14 + rcx*4 + 0x3f350]
mov dword [r11 + 0xc], r9d
add r11, 0x10
cmp ebx, dword [rsi + 0x200]
jl 0x1400222e0
mov ecx, dword [rax - 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov dword [r11], ecx
mov ecx, dword [rax - 0x1c]
mov dword [r11 + 4], ecx
mov ecx, dword [rax - 0x18]
mov dword [r11 + 8], ecx
mov ecx, dword [rax - 0x14]
xor eax, eax
mov dword [r11 + 0xc], ecx
add rsp, 0x20
pop r15
ret