Function at 0x140021a50
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x68
mov rdi, qword [0x14011d300]
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
mov eax, dword [rdi + 0x3e28]
mov dword [rbp + 0x28], eax
cmp dword [rdi + 0x3e2c], eax
je 0x140021a94
call fcn.140021700
mov eax, dword [rdi + 0x3e28]
mov dword [rbp + 0x28], eax
mov ecx, dword [rdi + 0x3e30]
xor esi, esi
mov ebx, esi
mov dword [rbp + 0x30], ecx
mov dword [rdi + 0x3e30], eax
mov dword [rdi + 0xe4], esi
cmp dword [rdi + 0x53c0], esi
jle 0x140021aef
mov r14d, esi
nop dword [rax + rax]
mov rax, qword [rdi + 0x53c8]
cmp dword [rax + r14 + 4], 4
jne 0x140021ae1
movsxd rdx, ebx
mov rcx, rdi
shl rdx, 5
add rdx, rax
call qword [rax + r14 + 0x10]
inc ebx
add r14, 0x20
cmp ebx, dword [rdi + 0x53c0]
jl 0x140021ac0
mov r12d, esi
mov qword [rsp + 0x50], r15
mov r13d, 2
cmp dword [rdi + 0x40a8], esi
je 0x140021c32
mov rcx, rsi
mov qword [rbp + 0x38], rcx
mov rax, qword [rdi + 0x40b0]
mov r14d, 2
mov r13, qword [rcx + rax]
lea rbx, [r13 + 0x78]
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x140021b44
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140030250
mov dword [rbx], esi
add rbx, 0x10
sub r14, 1
jne 0x140021b25
cmp qword [r13 + 0x38], rsi
je 0x140021c10
xor eax, eax
mov dword [rbp - 0x38], 0xf9d5b5b6
mov byte [rbp - 0x2c], al
mov r8d, esi
mov dword [rbp - 0x34], 0xeefcf1fa
mov dword [rbp - 0x30], 0xc4f1ebf2
nop word [rax + rax]
movsxd rdx, r8d
lea eax, [r8 - 0x6b]
inc r8d
xor byte [rbp + rdx - 0x38], al
cmp r8d, 0xc
jb 0x140021b80
lea r8, [rbp - 0x38]
mov byte [rbp - 0x2c], sil
xor edx, edx
mov rcx, r13
call fcn.14001db00
mov rbx, rax
mov ecx, dword [rax]
test ecx, ecx
je 0x140021c10
cmp ecx, 1
jne 0x140021bc3
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x20], esi
jne 0x140021bc3
cmp qword [rcx + 0x28], rsi
je 0x140021c10
mov ecx, dword [r13 + 0x7c]
mov eax, dword [r13 + 0x78]
cmp eax, ecx
jne 0x140021bfe
lea r8d, [rax + 1]
test ecx, ecx
je 0x140021be2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140021be7
mov eax, 8
cmp eax, r8d
lea rcx, [r13 + 0x78]
cmovg r8d, eax
mov edx, r8d
call fcn.140030250
mov eax, dword [r13 + 0x78]
movsxd rcx, eax
mov rax, qword [r13 + 0x80]
mov qword [rax + rcx*8], rbx
inc dword [r13 + 0x78]
mov rcx, qword [rbp + 0x38]
inc r12d
add rcx, 8
mov qword [rbp + 0x38], rcx
cmp r12d, dword [rdi + 0x40a8]
jne 0x140021b10
mov r13d, 2
mov eax, dword [rbp + 0x30]
cmp eax, dword [rbp + 0x28]
je 0x140021c3f
call fcn.1400212d0
mov rax, qword [rdi + 0x4220]
test rax, rax
je 0x140021c68
test dword [rax + 0xc], 0x2000
jne 0x140021c68
mov r15, qword [rax + 0x360]
mov r12, qword [rdi + 0x4230]
mov qword [rbp - 0x28], r15
jmp 0x140021c80
mov qword [rbp - 0x28], rsi
mov r15, rsi
test rax, rax
je 0x140021c7d
mov r12, qword [rdi + 0x4230]
jmp 0x140021c80
mov r12, rsi
mov r14d, esi
mov qword [rbp - 0x20], r12
cmp dword [rdi + 0x3e48], esi
je 0x140021cdd
mov rbx, rsi
mov rax, qword [rdi + 0x3e50]
mov rcx, qword [rbx + rax]
cmp byte [rcx + 0x96], sil
je 0x140021ccd
cmp byte [rcx + 0x9d], sil
jne 0x140021ccd
mov edx, dword [rcx + 0xc]
bt edx, 0x18
jb 0x140021ccd
cmp rcx, r15
je 0x140021ccd
cmp rcx, r12
je 0x140021ccd
shr edx, 0x19
and edx, 1
call fcn.140020e50
inc r14d
add rbx, 8
cmp r14d, dword [rdi + 0x3e48]
jne 0x140021c92
lea rbx, [rbp - 0x28]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140021d09
cmp byte [rcx + 0x96], sil
je 0x140021d09
cmp byte [rcx + 0x9d], sil
jne 0x140021d09
mov edx, dword [rcx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.140020e50
add rbx, 8
sub r13, 1
jne 0x140021ce1
cmp byte [rdi + 0x70], sil
je 0x140021d42
mov eax, dword [rbp + 0x30]
cmp eax, dword [rbp + 0x28]
je 0x140021d42
mov r8d, dword [rdi + 0x4248]
cmp r8d, 0xffffffff
je 0x140021d42
movss xmm1, dword [rdi + 0x38b0]
mov rcx, qword [rdi + 0xd94]
call fcn.14001c9b0
mov qword [rdi + 0xdc], rsi
mov dword [rbp + 0x28], esi
cmp dword [rdi + 0x40a8], esi
jle 0x140021f8b
mov rcx, rsi
mov qword [rbp + 0x30], rcx
nop
mov rax, qword [rdi + 0x40b0]
mov r14, qword [rcx + rax]
movsxd r13, dword [r14 + 0x78]
mov r12d, dword [r14 + 0x88]
mov ecx, dword [r14 + 0x7c]
add r12d, r13d
cmp r12d, ecx
jle 0x140021da8
test ecx, ecx
je 0x140021d91
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140021d96
mov eax, 8
cmp eax, r12d
lea rcx, [r14 + 0x78]
mov edx, r12d
cmovg edx, eax
call fcn.140030250
mov dword [r14 + 0x78], r12d
movsxd rax, dword [r14 + 0x88]
test eax, eax
je 0x140021e03
mov rdx, qword [r14 + 0x90]
mov r8, rax
mov rax, qword [r14 + 0x80]
shl r8, 3
lea rcx, [rax + r13*8]
call fcn.140079910
mov ecx, dword [r14 + 0x8c]
test ecx, ecx
jns 0x140021dfc
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
lea rcx, [r14 + 0x88]
test eax, eax
cmovg edx, eax
call fcn.140030250
mov dword [r14 + 0x88], esi
cmp qword [r14 + 0x40], rsi
je 0x140021ec0
xor eax, eax
mov dword [rbp - 0x28], 0xf7d1b5b6
mov byte [rbp - 0x1c], al
mov edx, esi
mov dword [rbp - 0x24], 0xeefcffeb
mov dword [rbp - 0x20], 0xc4f1ebf2
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx - 0x28], al
cmp edx, 0xc
jb 0x140021e30
lea r8, [rbp - 0x28]
mov byte [rbp - 0x1c], sil
mov edx, 1
mov rcx, r14
call fcn.14001db00
mov r15, rax
mov ecx, dword [rax]
test ecx, ecx
je 0x140021ec0
cmp ecx, 1
jne 0x140021e73
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x20], esi
jne 0x140021e73
cmp qword [rcx + 0x28], rsi
je 0x140021ec0
mov ecx, dword [r14 + 0x7c]
mov eax, dword [r14 + 0x78]
cmp eax, ecx
jne 0x140021eae
lea r8d, [rax + 1]
test ecx, ecx
je 0x140021e92
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140021e97
mov eax, 8
cmp eax, r8d
lea rcx, [r14 + 0x78]
cmovg r8d, eax
mov edx, r8d
call fcn.140030250
mov eax, dword [r14 + 0x78]
movsxd rcx, eax
mov rax, qword [r14 + 0x80]
mov qword [rax + rcx*8], r15
inc dword [r14 + 0x78]
mov rcx, qword [0x14011d300]
mov byte [r14 + 0x48], 1
cmp dword [r14 + 0x78], esi
jle 0x140021edb
mov rax, qword [r14 + 0x80]
jmp 0x140021ede
mov rax, rsi
mov qword [r14 + 0x58], rax
mov r10d, esi
mov eax, dword [r14 + 0x78]
mov dword [r14 + 0x4c], eax
mov qword [r14 + 0x50], rsi
movups xmm0, xmmword [r14 + 4]
movups xmmword [r14 + 0x60], xmm0
movsd xmm0, qword [rcx + 0x68]
mov ecx, esi
movsd qword [r14 + 0x70], xmm0
jle 0x140021f5b
mov r8, rsi
nop dword [rax]
mov rax, qword [r14 + 0x80]
mov rdx, qword [r8 + rax]
movsxd rax, dword [rdx]
test eax, eax
je 0x140021f3c
imul rcx, rax, 0x38
lea r9d, [rax - 1]
add rcx, qword [rdx + 8]
cmp dword [rcx - 0x18], esi
jne 0x140021f3c
cmp qword [rcx - 0x10], rsi
jne 0x140021f3c
mov dword [rdx], r9d
mov ecx, dword [rdx + 0x20]
inc r10d
add ecx, dword [r14 + 0x54]
add r8, 8
mov dword [r14 + 0x54], ecx
mov eax, dword [rdx + 0x10]
add dword [r14 + 0x50], eax
cmp r10d, dword [r14 + 0x78]
jl 0x140021f10
add dword [rdi + 0xdc], ecx
mov rcx, qword [rbp + 0x30]
mov edx, dword [rbp + 0x28]
add rcx, 8
mov eax, dword [r14 + 0x50]
inc edx
add dword [rdi + 0xe0], eax
mov dword [rbp + 0x28], edx
mov qword [rbp + 0x30], rcx
cmp edx, dword [rdi + 0x40a8]
jl 0x140021d60
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0xa8]
cmp dword [rdi + 0x53c0], esi
jle 0x140021fdd
mov rbx, rsi
nop dword [rax]
mov rax, qword [rdi + 0x53c8]
cmp dword [rax + rbx + 4], 5
jne 0x140021fcf
movsxd rdx, esi
mov rcx, rdi
shl rdx, 5
add rdx, rax
call qword [rax + rbx + 0x10]
inc esi
add rbx, 0x20
cmp esi, dword [rdi + 0x53c0]
jl 0x140021fb0
add rsp, 0x68
pop rdi
pop rsi
pop rbx
pop rbp
ret