Function at 0x140020260
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
sub rsp, 0x28
mov rbp, qword [0x14024ad10]
mov rbx, rbp
mov eax, dword [rbp + 0x3e28]
cmp dword [rbp + 0x3e2c], eax
je 0x1400205a7
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
xor edi, edi
mov esi, edi
mov qword [rsp + 0x20], r14
cmp dword [rbp + 0x53c0], edi
jle 0x1400202d4
mov ebp, edi
mov rax, qword [rbx + 0x53c8]
cmp dword [rax + rbp + 4], 2
jne 0x1400202bf
movsxd rdx, esi
mov rcx, rbx
shl rdx, 5
add rdx, rax
call qword [rax + rbp + 0x10]
inc esi
add rbp, 0x20
cmp esi, dword [rbx + 0x53c0]
jl 0x1400202a0
mov rbp, qword [0x14024ad10]
cmp dword [rbp + 0x3e78], 2
jl 0x1400202f5
nop dword [rax]
call fcn.140025f10
cmp dword [rbp + 0x3e78], 1
jg 0x1400202e0
mov rbp, qword [0x14024ad10]
mov r8, qword [rbx + 0xc0]
test r8, r8
je 0x14002032e
lea rdx, [rbx + 0x5358]
mov rax, qword [rdx]
cmp rax, qword [rbx + 0x5368]
jne 0x140020321
mov rax, qword [rdx + 8]
cmp rax, qword [rbx + 0x5370]
je 0x14002032e
mov rcx, qword [rbp + 0x40b0]
mov rcx, qword [rcx]
call r8
mov rax, qword [rbx + 0x3ea8]
mov byte [rbx + 0x3e35], dil
test rax, rax
je 0x140020351
cmp byte [rax + 0x98], dil
jne 0x140020351
mov byte [rax + 0x96], dil
call fcn.140025f10
call fcn.14002c480
movzx eax, byte [rbx + 0x424c]
test al, al
je 0x140020417
mov eax, dword [rbx + 0x4274]
inc eax
cmp eax, dword [rbx + 0x3e28]
jge 0x14002039f
test byte [rbx + 0x4250], 0x20
jne 0x14002039b
movsxd rcx, dword [rbx + 0x4258]
mov rax, qword [0x14024ad10]
cmp byte [rcx + rax + 0xd9c], dil
jne 0x14002039f
mov al, 1
jmp 0x1400203a1
xor al, al
cmp byte [rbx + 0x429a], dil
jne 0x1400203ae
test al, al
je 0x1400203be
call fcn.14002d3c0
movzx eax, byte [rbx + 0x424c]
test al, al
je 0x140020417
mov eax, dword [rbx + 0x3e28]
cmp dword [rbx + 0x4254], eax
jge 0x140020417
test byte [rbx + 0x4250], 1
jne 0x140020417
mov byte [rbx + 0x424d], 1
mov edx, edi
mov dword [rsp + 0x40], 0xc5c4c7
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rsp + rcx + 0x40], al
cmp edx, 3
jb 0x1400203f0
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x43], dil
call fcn.140028790
mov byte [rbx + 0x424d], dil
mov eax, dword [rbx + 0x3e28]
mov dword [rbx + 0x3e2c], eax
mov byte [rbx + 0x3e34], dil
call fcn.14001c980
lea r14, [rbx + 0x3e68]
mov ecx, dword [r14 + 4]
test ecx, ecx
jns 0x140020456
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
mov rcx, r14
test eax, eax
cmovg edx, eax
call fcn.14002edb0
mov dword [r14], edi
mov rcx, r14
mov edx, dword [rbx + 0x3e48]
call fcn.14002edb0
mov ecx, dword [rbx + 0x3e48]
mov ebp, edi
test ecx, ecx
je 0x1400204b5
mov rsi, rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x3e50]
mov rdx, qword [rsi + rax]
cmp byte [rdx + 0x96], dil
je 0x14002049d
test dword [rdx + 0xc], 0x1000000
jne 0x1400204a5
mov rcx, r14
call fcn.14001f8e0
mov ecx, dword [rbx + 0x3e48]
inc ebp
add rsi, 8
cmp ebp, ecx
jne 0x140020480
mov eax, dword [r14]
mov dword [rbx + 0x3e48], eax
mov eax, dword [rbx + 0x3e4c]
mov dword [r14], ecx
mov ecx, dword [r14 + 4]
mov dword [r14 + 4], eax
mov rax, qword [rbx + 0x3e50]
mov dword [rbx + 0x3e4c], ecx
mov rcx, qword [r14 + 8]
mov qword [r14 + 8], rax
mov eax, dword [rbx + 0x3e98]
mov r14, qword [rsp + 0x20]
mov dword [rbx + 0xe8], eax
mov rax, qword [rbx + 0x50]
mov qword [rbx + 0x3e50], rcx
mov byte [rax + 0x18], dil
mov qword [rbx + 0xda4], rdi
mov ecx, dword [rbx + 0x37cc]
test ecx, ecx
jns 0x140020531
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x37c8]
test eax, eax
cmovg edx, eax
call fcn.14002f180
mov dword [rbx + 0x37c8], edi
xorps xmm0, xmm0
movups xmmword [rbx + 0xdb0], xmm0
movups xmmword [rbx + 0xdc0], xmm0
movups xmmword [rbx + 0xdd0], xmm0
movups xmmword [rbx + 0xde0], xmm0
movups xmmword [rbx + 0xdf0], xmm0
cmp dword [rbx + 0x53c0], edi
jle 0x14002059d
mov rsi, rdi
nop dword [rax + rax]
mov rax, qword [rbx + 0x53c8]
cmp dword [rax + rsi + 4], 3
jne 0x14002058f
movsxd rdx, edi
mov rcx, rbx
shl rdx, 5
add rdx, rax
call qword [rax + rsi + 0x10]
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x53c0]
jl 0x140020570
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x28
pop rbp
pop rbx
ret