Function at 0x1402272e0
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 [0x14033a080]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rax, qword [rcx + 0x70]
mov r14, rcx
mov qword [rbp - 0x70], rax
mov r13, rdx
mov rax, qword [rcx + 0x38]
mov qword [rbp - 0x68], rax
mov eax, dword [rcx + 0x34]
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x58], eax
mov eax, dword [r14 + 0x18]
mov dword [rsp + 0x50], eax
add rax, rcx
mov qword [rbp - 0x30], rax
mov eax, edx
sub eax, ecx
mov qword [rbp - 0x80], rcx
mov ecx, dword [r14 + 0x100]
mov dword [rsp + 0x48], eax
mov qword [rbp - 0x60], r8
mov r8d, dword [r14 + 0x1c]
mov qword [rsp + 0x70], rdx
mov edx, 1
shl edx, cl
mov ecx, eax
sub ecx, dword [r14 + 0x1c]
sub eax, edx
cmp ecx, edx
mov qword [rbp - 0x58], r9
mov rdx, r13
mov qword [rsp + 0x60], 3
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 + 0x38], r8d
cmp eax, ecx
lea r8d, [r15 + 8]
cmovb ecx, eax
mov rax, qword [r14 + 0x60]
mov qword [rbp - 0x78], rax
lea eax, [r15 + 1]
shl eax, cl
lea rcx, [rbp - 0x50]
mov dword [rsp + 0x4c], eax
mov rax, qword [r14 + 0xf8]
mov qword [rbp - 0x48], rax
mov rsi, qword [rax + 0x70]
mov rdi, qword [rax + 0x38]
mov ebx, dword [rax + 0x34]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x50]
lea r12d, [r15 + 0x38]
mov ecx, r12d
sub ecx, ebx
movabs rbx, 0xcf1bbcdcbf9b0000
imul rax, rbx
shr rax, cl
mov qword [rbp - 0x18], rax
shr eax, 2
and eax, 0x3fffffc0
mov ecx, eax
add rax, rdi
mov qword [rbp - 0x40], rax
lea rdx, [rsi + rcx*4]
mov qword [rbp - 0x38], rdx
prefetcht0 byte [rdx]
prefetcht0 byte [rsi + rcx*4 + 0x40]
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x20]
cmp dword [r14 + 0x12c], r15d
jne 0x140227797
mov r8, qword [r14 + 8]
mov esi, r13d
mov edi, dword [r14 + 0x2c]
sub esi, r8d
mov eax, esi
mov qword [rsp + 0x68], r8
sub eax, edi
mov dword [rsp + 0x54], esi
cmp eax, 0x180
jbe 0x140227627
mov rcx, qword [r14 + 0x70]
lea eax, [rdi + 0x60]
mov qword [rbp - 0x28], rcx
mov rcx, qword [r14 + 0x38]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x30], eax
cmp edi, eax
jae 0x140227552
mov eax, r12d
mov esi, edi
sub eax, dword [r14 + 0x34]
mov r15, r8
mov r12d, dword [rsp + 0x30]
mov r13d, eax
mov rbx, qword [r14 + 0x60]
lea rdx, [r15 + 8]
add rdx, rsi
lea rcx, [rsp + 0x30]
mov r8d, 8
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x30]
movabs rax, 0xcf1bbcdcbf9b0000
mov r11, qword [rbp - 0x28]
mov ecx, r13d
imul rdx, rax
mov r9d, 0x3fffffc0
xor rdx, rbx
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, r9d
prefetcht0 byte [r11 + rax*4]
prefetcht0 byte [r11 + rax*4 + 0x40]
mov r8, qword [rsp + 0x40]
prefetcht0 byte [r8 + rax]
prefetcht0 byte [r8 + rax + 0x20]
mov rax, rsi
and eax, 7
mov r10d, dword [r14 + rax*4 + 0x40]
mov dword [r14 + rax*4 + 0x40], edx
mov eax, r10d
shr eax, 2
and r9d, eax
add r8, r9
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc rsi
not ecx
and ecx, 0x3f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [r11 + rax*4], edi
inc edi
cmp edi, r12d
jb 0x140227489
mov r13, qword [rsp + 0x70]
xor r15d, r15d
mov esi, dword [rsp + 0x54]
mov r8, qword [rsp + 0x68]
lea r12d, [r15 + 0x38]
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, edi
mov qword [rsp + 0x78], rax
sub edx, r8d
mov eax, edi
inc edx
add rax, r8
cmp rax, rcx
mov ecx, 8
cmova edx, r15d
cmp edx, ecx
cmova edx, ecx
lea eax, [rdx + rdi]
cmp edi, eax
jae 0x140227627
mov r13, qword [rsp + 0x68]
mov eax, r12d
sub eax, dword [r14 + 0x34]
mov esi, eax
mov r12d, edx
mov r15d, edi
mov rbx, qword [r14 + 0x60]
lea rdx, [r15 + r13]
mov r8, rcx
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x40]
movabs rax, 0xcf1bbcdcbf9b0000
imul rdx, rax
mov rax, qword [rbp - 0x28]
mov ecx, esi
xor rdx, rbx
shr rdx, cl
mov ecx, edx
shr ecx, 2
and ecx, 0x3fffffc0
prefetcht0 byte [rax + rcx*4]
prefetcht0 byte [rax + rcx*4 + 0x40]
mov rax, qword [rsp + 0x78]
prefetcht0 byte [rax + rcx]
prefetcht0 byte [rax + rcx + 0x20]
mov rax, r15
mov ecx, 8
and eax, 7
inc r15
mov dword [r14 + rax*4 + 0x40], edx
sub r12, 1
jne 0x1402275a8
mov r13, qword [rsp + 0x70]
lea r12d, [rcx + 0x30]
mov esi, dword [rsp + 0x54]
xor r15d, r15d
mov rax, qword [r14 + 0x70]
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x38]
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x68], rcx
cmp edi, esi
jae 0x14022771e
mov eax, r12d
mov r15d, edi
sub eax, dword [r14 + 0x34]
mov r12, qword [rsp + 0x40]
mov r13d, eax
mov rbx, qword [r14 + 0x60]
lea rdx, [rcx + 8]
add rdx, r15
lea rcx, [rsp + 0x40]
mov r8d, 8
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x40]
movabs rax, 0xcf1bbcdcbf9b0000
imul rdx, rax
mov ecx, r13d
mov r9d, 0x3fffffc0
xor rdx, rbx
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, r9d
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
mov r8, qword [rbp - 0x28]
prefetcht0 byte [r8 + rax]
prefetcht0 byte [r8 + rax + 0x20]
mov rax, r15
and eax, 7
mov r11d, dword [r14 + rax*4 + 0x40]
mov dword [r14 + rax*4 + 0x40], edx
mov eax, r11d
shr eax, 2
and eax, r9d
mov r10d, eax
lea r9, [r8 + rax]
movzx edx, byte [r9]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r15
not ecx
and ecx, 0x3f
add edx, ecx
mov rcx, qword [rsp + 0x68]
mov byte [r9], dl
mov eax, edx
add rax, r10
mov byte [r9 + rdx], r11b
mov dword [r12 + rax*4], edi
inc edi
cmp edi, esi
jb 0x14022765b
mov r13, qword [rsp + 0x70]
xor r15d, r15d
lea r12d, [r15 + 0x38]
mov ebx, dword [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov dword [r14 + 0x2c], esi
mov r8d, 8
mov rsi, qword [rbp - 0x80]
lea rdx, [rsi + 8]
add rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
sub r12d, dword [rsp + 0x58]
movabs rax, 0xcf1bbcdcbf9b0000
mov rdx, qword [rsp + 0x40]
mov cl, r12b
imul rdx, rax
mov rax, qword [rbp - 0x70]
xor rdx, qword [rbp - 0x78]
shr rdx, cl
mov ecx, edx
shr ecx, 2
and ecx, 0x3fffffc0
prefetcht0 byte [rax + rcx*4]
prefetcht0 byte [rax + rcx*4 + 0x40]
mov rax, qword [rbp - 0x68]
prefetcht0 byte [rcx + rax]
prefetcht0 byte [rcx + rax + 0x20]
and ebx, 7
mov r8d, dword [r14 + rbx*4 + 0x40]
mov dword [r14 + rbx*4 + 0x40], edx
jmp 0x1402277ce
mov r8d, 8
lea rcx, [rsp + 0x40]
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
sub r12d, dword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
mov cl, r12b
mov eax, dword [rsp + 0x48]
mov rsi, qword [rbp - 0x80]
imul r8, rbx
mov dword [r14 + 0x2c], eax
xor r8, qword [rbp - 0x78]
shr r8, cl
mov rcx, qword [rbp - 0x70]
mov eax, r8d
add dword [r14 + 0x68], r8d
xorps xmm0, xmm0
mov r9, qword [rbp - 0x68]
mov rbx, r15
shr eax, 2
mov r12, r15
and eax, 0x3fffffc0
add r9, rax
movups xmmword [rbp - 0x28], xmm0
mov rdx, r9
lea rdi, [rcx + rax*4]
movsx eax, r8b
movzx r11d, byte [r9]
mov rcx, r15
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [rbp + rcx*4 - 0x28], eax
inc rcx
cmp rcx, 4
jl 0x140227818
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 0x1402278ac
mov r10d, dword [rsp + 0x4c]
mov r13d, dword [rsp + 0x38]
test r10d, r10d
je 0x1402278a2
bsf rcx, rdx
add ecx, r11d
and ecx, 0x3f
mov ecx, dword [rdi + rcx*4]
je 0x140227899
cmp ecx, r13d
jb 0x1402278a2
prefetcht0 byte [rcx + rsi]
mov dword [rbp + rbx*4], ecx
inc rbx
dec r10d
lea rax, [rdx - 1]
and rdx, rax
ja 0x140227872
mov r13, qword [rsp + 0x70]
mov dword [rsp + 0x4c], 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 [rdi + rdx*4], eax
inc dword [r14 + 0x2c]
test rbx, rbx
je 0x14022796e
mov rsi, qword [rsp + 0x60]
mov r14, qword [rbp - 0x60]
mov r15d, dword [rsp + 0x48]
mov edi, dword [rbp + r12*4]
lea rdx, [rsi - 3]
add rdi, qword [rbp - 0x80]
lea rcx, [rsp + 0x30]
add rdx, rdi
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsi - 3]
mov r8d, 4
add rdx, r13
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x30], eax
jne 0x14022795e
mov r8, r14
mov rdx, rdi
mov rcx, r13
call fcn.140206fc0
mov rcx, rax
cmp rax, rsi
jbe 0x14022795e
mov rdx, qword [rbp - 0x58]
mov rsi, rax
mov eax, r15d
sub eax, dword [rbp + r12*4]
add eax, 3
mov qword [rdx], rax
lea rax, [rcx + r13]
cmp rax, r14
je 0x140227966
inc r12
cmp r12, rbx
jb 0x1402278e9
mov qword [rsp + 0x60], rsi
xor r15d, r15d
mov r10, qword [rbp - 0x48]
xorps xmm0, xmm0
mov rdx, qword [rbp - 0x40]
mov rbx, r15
mov rcx, r15
mov r12, qword [r10]
mov r14, qword [r10 + 8]
mov eax, r12d
movzx r9d, byte [rdx]
sub eax, r14d
sub dword [rsp + 0x50], eax
movsx eax, byte [rbp - 0x18]
movups xmmword [rbp - 0x18], xmm0
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [rbp + rcx*4 - 0x18], eax
inc rcx
cmp rcx, 4
jl 0x1402279ad
movsxd rax, dword [rbp - 0x10]
mov ecx, r9d
movsxd rdx, dword [rbp - 0xc]
and ecx, 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 0x140227add
mov r8d, dword [rsp + 0x4c]
mov r11, qword [rbp - 0x38]
test r8d, r8d
je 0x140227a3d
bsf rcx, rdx
add ecx, r9d
and ecx, 0x3f
mov ecx, dword [r11 + rcx*4]
je 0x140227a34
cmp ecx, dword [r10 + 0x18]
jb 0x140227a3d
prefetcht0 byte [rcx + r14]
mov dword [rbp + rbx*4], ecx
inc rbx
dec r8d
lea rax, [rdx - 1]
and rdx, rax
ja 0x140227a0a
mov rsi, qword [rsp + 0x60]
test rbx, rbx
je 0x140227ae2
mov edi, dword [rbp + r15*4]
lea rcx, [rsp + 0x30]
add rdi, r14
mov r8d, 4
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 4
lea rcx, [rsp + 0x38]
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x30], eax
jne 0x140227acf
mov rax, qword [rbp - 0x30]
lea rdx, [rdi + 4]
mov rdi, qword [rbp - 0x60]
lea rcx, [r13 + 4]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov r9, r12
call fcn.14021ab54
add rax, 4
cmp rax, rsi
jbe 0x140227acf
mov ecx, dword [rsp + 0x48]
mov rsi, rax
sub ecx, dword [rbp + r15*4]
sub ecx, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x58]
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + r13]
cmp rcx, rdi
je 0x140227ae2
inc r15
cmp r15, rbx
jb 0x140227a4b
jmp 0x140227ae2
mov rsi, qword [rsp + 0x60]
mov rax, rsi
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140255040
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret