Function at 0x14024f8d4
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov rax, qword [0x14036f078]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rax, qword [rcx + 0x70]
mov r14, rcx
mov qword [rbp - 0x60], rax
mov r13, rdx
mov rax, qword [rcx + 0x38]
mov qword [rbp - 0x58], rax
mov eax, dword [rcx + 0x34]
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x3c], eax
mov eax, dword [r14 + 0x18]
mov dword [rsp + 0x54], eax
add rax, rcx
mov qword [rbp - 0x30], rax
mov eax, edx
sub eax, ecx
mov qword [rbp - 0x78], rcx
mov ecx, dword [r14 + 0x100]
mov dword [rsp + 0x34], eax
mov qword [rbp - 0x50], r8
mov r8d, dword [r14 + 0x1c]
mov qword [rsp + 0x60], rdx
mov edx, 1
shl edx, cl
mov ecx, eax
sub ecx, dword [r14 + 0x1c]
sub eax, edx
cmp ecx, edx
mov qword [rbp - 0x48], r9
mov rdx, r13
cmova r8d, eax
mov eax, dword [r14 + 0x10c]
xor r15d, r15d
cmp dword [r14 + 0x28], r15d
cmovne r8d, dword [r14 + 0x1c]
lea ecx, [r15 + 6]
mov dword [rsp + 0x50], r8d
cmp eax, ecx
lea r12d, [r15 + 3]
lea r8d, [r15 + 4]
mov qword [rsp + 0x70], r12
cmovb ecx, eax
mov rax, qword [r14 + 0x60]
mov qword [rbp - 0x68], rax
lea eax, [r15 + 1]
shl eax, cl
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov rax, qword [r14 + 0xf8]
mov qword [rbp - 0x70], rax
mov rsi, qword [rax + 0x70]
mov rdi, qword [rax + 0x38]
mov ebx, dword [rax + 0x34]
call sub.VCRUNTIME140.dll_memcpy
imul eax, dword [rsp + 0x78], 0x9e3779b1
lea ecx, [r15 + 0x18]
sub ecx, ebx
shr rax, cl
mov qword [rbp - 0x18], rax
shr rax, 2
and eax, 0x3fffffc0
lea rcx, [rax + rdi]
lea rax, [rsi + rax*4]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
prefetcht0 byte [rcx]
prefetcht0 byte [rcx + 0x20]
cmp dword [r14 + 0x12c], r15d
jne 0x14024fd68
mov r8, qword [r14 + 8]
mov esi, r13d
mov edi, dword [r14 + 0x2c]
sub esi, r8d
mov eax, esi
mov qword [rsp + 0x48], r8
sub eax, edi
mov dword [rsp + 0x38], esi
cmp eax, 0x180
jbe 0x14024fc00
mov rdx, qword [r14 + 0x38]
lea eax, [rdi + 0x60]
mov rcx, qword [r14 + 0x70]
mov dword [rsp + 0x40], eax
mov qword [rbp - 0x28], rdx
cmp edi, eax
jae 0x14024fb2f
lea eax, [r15 + 0x18]
mov r13d, edi
sub eax, dword [r14 + 0x34]
mov r12, r8
mov r15d, dword [rsp + 0x40]
mov rsi, rcx
mov qword [rsp + 0x68], rax
mov rbx, qword [r14 + 0x60]
lea rdx, [r12 + 8]
add rdx, r13
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x40], 0x9e3779b1
mov r8d, 0x3fffffc0
mov rcx, qword [rsp + 0x68]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and rax, r8
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
mov rcx, qword [rbp - 0x28]
prefetcht0 byte [rax + rcx]
prefetcht0 byte [rax + rcx + 0x20]
mov rax, r13
and eax, 7
mov r10d, dword [r14 + rax*4 + 0x40]
mov r9d, r10d
mov dword [r14 + rax*4 + 0x40], edx
shr r9, 2
and r9, r8
lea r8, [rcx + r9]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r13
not ecx
and ecx, 0x3f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [rsi + rax*4], edi
inc edi
cmp edi, r15d
jb 0x14024fa72
mov r13, qword [rsp + 0x60]
xor r15d, r15d
mov esi, dword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov r8, qword [rsp + 0x48]
mov rax, qword [r14 + 0x70]
lea edi, [rsi - 0x20]
mov qword [rbp - 0x28], rax
lea rcx, [r13 + 1]
mov rax, qword [r14 + 0x38]
mov edx, ecx
sub edx, r8d
mov qword [rsp + 0x58], rax
sub edx, edi
mov eax, edi
add rax, r8
inc edx
cmp rax, rcx
mov eax, 8
cmova edx, r15d
cmp edx, eax
cmova edx, eax
lea eax, [rdx + rdi]
cmp edi, eax
jae 0x14024fc00
mov r12, qword [rsp + 0x48]
mov eax, 0x18
sub eax, dword [r14 + 0x34]
mov rsi, qword [rbp - 0x28]
mov qword [rsp + 0x68], rax
mov r13d, edx
mov r15d, edi
mov rbx, qword [r14 + 0x60]
lea rdx, [r15 + r12]
mov r8d, 4
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rbp - 0x80], 0x9e3779b1
mov rcx, qword [rsp + 0x68]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
mov rcx, qword [rsp + 0x58]
prefetcht0 byte [rax + rcx]
prefetcht0 byte [rax + rcx + 0x20]
mov rax, r15
inc r15
and eax, 7
mov dword [r14 + rax*4 + 0x40], edx
sub r13, 1
jne 0x14024fb8e
mov r13, qword [rsp + 0x60]
xor r15d, r15d
mov esi, dword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov rcx, qword [r14 + 0x38]
mov rax, qword [r14 + 0x70]
mov qword [rbp - 0x28], rcx
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x58], rax
cmp edi, esi
jae 0x14024fcf5
mov r13, qword [rsp + 0x58]
mov eax, 0x18
sub eax, dword [r14 + 0x34]
mov r15, qword [rbp - 0x28]
mov qword [rsp + 0x68], rax
mov r12d, edi
mov rbx, qword [r14 + 0x60]
lea rdx, [rcx + 8]
add rdx, r12
lea rcx, [rsp + 0x38]
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x38], 0x9e3779b1
mov rcx, qword [rsp + 0x68]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov ecx, 0x3fffffc0
mov eax, edx
shr rax, 2
and rax, rcx
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [r15 + rax]
prefetcht0 byte [r15 + rax + 0x20]
mov rax, r12
and eax, 7
mov r10d, dword [r14 + rax*4 + 0x40]
mov r9d, r10d
mov dword [r14 + rax*4 + 0x40], edx
shr r9, 2
and r9, rcx
lea r8, [r15 + r9]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r12
not ecx
and ecx, 0x3f
add edx, ecx
mov rcx, qword [rsp + 0x48]
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [r13 + rax*4], edi
inc edi
cmp edi, esi
jb 0x14024fc3c
mov r13, qword [rsp + 0x60]
xor r15d, r15d
mov r12, qword [rsp + 0x70]
mov ebx, dword [rsp + 0x34]
lea rcx, [rsp + 0x60]
mov dword [r14 + 0x2c], esi
mov r8d, 4
mov rsi, qword [rbp - 0x78]
lea rdx, [rsi + 8]
add rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbp - 0x68]
mov ecx, 0x18
sub ecx, dword [rsp + 0x3c]
imul edx, dword [rsp + 0x60], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov rcx, qword [rbp - 0x60]
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rcx + rax*4]
prefetcht0 byte [rcx + rax*4 + 0x40]
mov r9, qword [rbp - 0x58]
prefetcht0 byte [rax + r9]
prefetcht0 byte [rax + r9 + 0x20]
and ebx, 7
mov r8d, dword [r14 + rbx*4 + 0x40]
mov dword [r14 + rbx*4 + 0x40], edx
jmp 0x14024fdaa
mov r8d, 4
lea rcx, [rsp + 0x48]
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
imul r8d, dword [rsp + 0x48], 0x9e3779b1
mov ecx, 0x18
mov eax, dword [rbp - 0x68]
sub ecx, dword [rsp + 0x3c]
mov r9, qword [rbp - 0x58]
mov rsi, qword [rbp - 0x78]
xor r8, rax
mov eax, dword [rsp + 0x34]
shr r8, cl
mov rcx, qword [rbp - 0x60]
mov dword [r14 + 0x2c], eax
add dword [r14 + 0x68], r8d
mov eax, r8d
shr rax, 2
xorps xmm0, xmm0
and eax, 0x3fffffc0
mov rdi, r15
add r9, rax
movups xmmword [rbp - 0x28], xmm0
mov rdx, r9
lea rbx, [rcx + rax*4]
movsx eax, r8b
movzx r11d, byte [r9]
mov rcx, r15
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
mov dword [rbp + rcx*4 - 0x28], eax
inc rcx
cmp rcx, 4
jl 0x14024fdea
movsxd rax, dword [rbp - 0x20]
mov cl, r11b
movsxd rdx, dword [rbp - 0x1c]
and cl, 0x3f
shl rdx, 0x10
or rdx, rax
movsxd rax, dword [rbp - 0x24]
shl rdx, 0x10
or rdx, rax
movsxd rax, dword [rbp - 0x28]
shl rdx, 0x10
or rdx, rax
ror rdx, cl
test rdx, rdx
je 0x14024fe82
mov r10d, dword [rsp + 0x30]
mov r12d, dword [rsp + 0x50]
test r10d, r10d
je 0x14024fe78
bsf rcx, rdx
add ecx, r11d
and ecx, 0x3f
je 0x14024fe6f
mov ecx, dword [rbx + rcx*4]
cmp ecx, r12d
jb 0x14024fe78
prefetcht0 byte [rcx + rsi]
mov dword [rbp + rdi*4], ecx
inc rdi
dec r10d
lea rax, [rdx - 1]
and rdx, rax
ja 0x14024fe48
mov r12, qword [rsp + 0x70]
mov dword [rsp + 0x30], r10d
lea edx, [r11 - 1]
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0x3f
add edx, ecx
mov byte [r9], dl
mov byte [rdx + r9], r8b
mov eax, dword [r14 + 0x2c]
mov dword [rbx + rdx*4], eax
inc dword [r14 + 0x2c]
test rdi, rdi
je 0x14024ff38
mov r14, qword [rbp - 0x50]
mov esi, dword [rbp + r15*4]
lea rdx, [r12 - 3]
add rsi, qword [rbp - 0x78]
lea rcx, [rsp + 0x50]
add rdx, rsi
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [rsp + 0x50]
lea rdx, [r12 - 3]
add rdx, r13
lea rcx, [rsp + 0x3c]
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
cmp ebx, dword [rsp + 0x3c]
jne 0x14024ff2d
mov r8, r14
mov rdx, rsi
mov rcx, r13
call fcn.140232024
mov rcx, rax
cmp rax, r12
jbe 0x14024ff2d
mov rdx, qword [rbp - 0x48]
mov r12, rax
mov eax, dword [rsp + 0x34]
sub eax, dword [rbp + r15*4]
add eax, 3
mov qword [rdx], rax
lea rax, [rcx + r13]
cmp rax, r14
je 0x14024ff35
inc r15
cmp r15, rdi
jb 0x14024feb5
xor r15d, r15d
mov r11, qword [rbp - 0x70]
xorps xmm0, xmm0
mov rdx, qword [rbp - 0x40]
mov rdi, r15
mov rcx, r15
mov rax, qword [r11]
mov r8, qword [r11 + 8]
movzx r10d, byte [rdx]
mov r14d, r8d
sub r14d, eax
mov qword [rbp - 0x70], rax
movsx eax, byte [rbp - 0x18]
add r14d, dword [rsp + 0x54]
mov qword [rsp + 0x58], r8
movups xmmword [rbp - 0x18], xmm0
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
mov dword [rbp + rcx*4 - 0x18], eax
inc rcx
cmp rcx, 4
jl 0x14024ff81
movsxd rax, dword [rbp - 0x10]
mov cl, r10b
movsxd rdx, dword [rbp - 0xc]
and cl, 0x3f
shl rdx, 0x10
or rdx, rax
movsxd rax, dword [rbp - 0x14]
shl rdx, 0x10
or rdx, rax
movsxd rax, dword [rbp - 0x18]
shl rdx, 0x10
or rdx, rax
ror rdx, cl
test rdx, rdx
je 0x1402500b2
mov r9d, dword [rsp + 0x30]
mov rbx, qword [rbp - 0x38]
test r9d, r9d
je 0x140250014
bsf rcx, rdx
add ecx, r10d
and ecx, 0x3f
je 0x14025000b
mov ecx, dword [rbx + rcx*4]
cmp ecx, dword [r11 + 0x18]
jb 0x140250014
prefetcht0 byte [rcx + r8]
mov dword [rbp + rdi*4], ecx
inc rdi
dec r9d
lea rax, [rdx - 1]
and rdx, rax
ja 0x14024ffe2
test rdi, rdi
je 0x1402500b2
mov esi, dword [rbp + r15*4]
lea rcx, [rsp + 0x54]
add rsi, r8
mov r8d, 4
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [rsp + 0x54]
lea rcx, [rsp + 0x30]
mov r8d, 4
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
cmp ebx, dword [rsp + 0x30]
jne 0x1402500a1
mov rax, qword [rbp - 0x30]
lea rdx, [rsi + 4]
mov rbx, qword [rbp - 0x50]
lea rcx, [r13 + 4]
mov r9, qword [rbp - 0x70]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.140245fc4
add rax, 4
cmp rax, r12
jbe 0x1402500a1
mov ecx, dword [rsp + 0x34]
mov r12, rax
sub ecx, dword [rbp + r15*4]
mov rdx, qword [rbp - 0x48]
sub ecx, r14d
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + r13]
cmp rcx, rbx
je 0x1402500b2
mov r8, qword [rsp + 0x58]
inc r15
cmp r15, rdi
jb 0x14025001d
mov rax, r12
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1402803d0
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret