Function at 0x14022c7a0
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 - 0xb8]
sub rsp, 0x1b8
mov rax, qword [0x140339080]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r10, qword [rcx + 8]
mov rdi, rcx
mov r11, qword [rcx + 0x38]
mov r13d, edx
mov ebx, dword [rcx + 0x34]
sub r13d, r10d
mov qword [rsp + 0x70], rdx
mov eax, r13d
mov r14d, dword [rdi + 0x1c]
mov qword [rbp - 0x78], r9
mov r9, rdx
mov qword [rsp + 0x78], r8
mov edx, 1
mov r8, qword [rcx + 0x70]
mov ecx, dword [rcx + 0x100]
shl edx, cl
mov ecx, r13d
sub ecx, dword [rdi + 0x1c]
sub eax, edx
cmp ecx, edx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], r11
cmova r14d, eax
mov dword [rsp + 0x34], ebx
mov eax, dword [rdi + 0x10c]
xor esi, esi
cmp dword [rdi + 0x28], esi
mov qword [rsp + 0x48], r10
cmovne r14d, dword [rdi + 0x1c]
lea ecx, [rsi + 6]
mov dword [rsp + 0x3c], r14d
mov r14, qword [rdi + 0x60]
lea r15d, [rsi + 4]
cmp eax, ecx
mov dword [rsp + 0x30], r13d
mov qword [rbp - 0x70], r14
cmovb ecx, eax
mov qword [rsp + 0x68], 3
lea eax, [rsi + 1]
shl eax, cl
mov dword [rsp + 0x38], eax
cmp dword [rdi + 0x12c], esi
jne 0x14022cbd2
mov r14d, dword [rdi + 0x2c]
lea r12d, [rsi + 0x18]
mov eax, r13d
mov qword [rsp + 0x20], r8
sub eax, r14d
mov qword [rsp + 0x40], r11
mov r8d, ebx
cmp eax, 0x180
jbe 0x14022ca7d
lea eax, [r14 + 0x60]
mov dword [rsp + 0x20], eax
cmp r14d, eax
jae 0x14022c991
mov rsi, qword [rsp + 0x58]
mov eax, r12d
mov r12, qword [rsp + 0x60]
sub eax, ebx
mov qword [rsp + 0x50], rax
mov r11d, r14d
mov qword [rsp + 0x28], r14
mov r13, r10
mov rbx, qword [rdi + 0x60]
lea rdx, [r13 + 8]
add rdx, r11
lea rcx, [rsp + 0x40]
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x40], 0x9e3779b1
mov r8d, 0x3fffffc0
mov rcx, qword [rsp + 0x50]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, r8d
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
prefetcht0 byte [r12 + rax + 0x20]
mov r11, qword [rsp + 0x28]
mov rax, r11
and eax, 7
mov r10d, dword [rdi + rax*4 + 0x40]
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r10d
shr eax, 2
and eax, r8d
mov r9d, eax
lea r8, [r12 + rax]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rsp + 0x28], r11
and ecx, 0x3f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [rsi + rax*4], r14d
inc r14d
cmp r14d, dword [rsp + 0x20]
jb 0x14022c8cd
mov r13d, dword [rsp + 0x30]
xor esi, esi
mov r9, qword [rsp + 0x70]
mov r10, qword [rsp + 0x48]
lea r12d, [rsi + 0x18]
mov rax, qword [rdi + 0x38]
lea r14d, [r13 - 0x20]
mov r8d, dword [rdi + 0x34]
lea rcx, [r9 + 1]
mov r9, qword [rdi + 0x70]
mov edx, ecx
sub edx, r10d
mov qword [rsp + 0x40], rax
sub edx, r14d
mov eax, r14d
inc edx
mov qword [rsp + 0x20], r9
add rax, r10
cmp rax, rcx
mov eax, 8
cmova edx, esi
cmp edx, eax
cmova edx, eax
lea eax, [rdx + r14]
cmp r14d, eax
jae 0x14022ca7d
mov rsi, qword [rsp + 0x40]
mov eax, r12d
sub eax, r8d
mov r12d, r14d
mov qword [rsp + 0x50], rax
mov r13, r9
mov eax, edx
mov qword [rsp + 0x28], rax
mov rbx, qword [rdi + 0x60]
lea rdx, [r10 + r12]
mov r8, r15
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x20], 0x9e3779b1
mov rcx, qword [rsp + 0x50]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rsi + rax]
prefetcht0 byte [rsi + rax + 0x20]
mov r10, qword [rsp + 0x48]
mov rax, r12
and eax, 7
inc r12
sub qword [rsp + 0x28], 1
mov dword [rdi + rax*4 + 0x40], edx
jne 0x14022c9f9
mov rax, qword [rdi + 0x70]
xor esi, esi
mov r8d, dword [rdi + 0x34]
mov r13d, dword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 0x38]
lea r12d, [rsi + 0x18]
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi + 8]
mov qword [rbp - 0x80], rcx
cmp r14d, r13d
jae 0x14022cb62
mov rsi, qword [rsp + 0x20]
mov eax, r12d
mov r12, qword [rsp + 0x40]
sub eax, r8d
mov r11d, r14d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], r11
mov rbx, qword [rdi + 0x60]
lea rdx, [r11 + 8]
add rdx, rcx
mov r8, r15
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x20], 0x9e3779b1
mov r8d, 0x3fffffc0
mov rcx, qword [rsp + 0x50]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, r8d
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
prefetcht0 byte [r12 + rax + 0x20]
mov r11, qword [rsp + 0x28]
mov rax, r11
and eax, 7
mov r10d, dword [rdi + rax*4 + 0x40]
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r10d
shr eax, 2
and eax, r8d
mov r9d, eax
lea r8, [r12 + rax]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rsp + 0x28], r11
and ecx, 0x3f
add edx, ecx
mov rcx, qword [rbp - 0x80]
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [rsi + rax*4], r14d
inc r14d
cmp r14d, r13d
jb 0x14022caab
xor esi, esi
lea r12d, [rsi + 0x18]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x20]
add rdx, 8
mov ebx, r13d
add rdx, rbx
mov dword [rdi + 0x2c], r13d
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x20], 0x9e3779b1
mov ecx, r12d
mov eax, dword [rbp - 0x70]
sub ecx, dword [rsp + 0x34]
mov r9, qword [rsp + 0x58]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov r10, qword [rsp + 0x60]
prefetcht0 byte [rax + r10]
prefetcht0 byte [rax + r10 + 0x20]
and ebx, 7
mov r8d, dword [rdi + rbx*4 + 0x40]
mov dword [rdi + rbx*4 + 0x40], edx
jmp 0x14022cc09
mov r8, r15
lea rcx, [rsp + 0x34]
mov rdx, r9
call sub.VCRUNTIME140.dll_memcpy
imul r8d, dword [rsp + 0x34], 0x9e3779b1
mov ecx, 0x18
mov r9, qword [rsp + 0x58]
sub ecx, ebx
mov r10, qword [rsp + 0x60]
mov eax, r14d
mov dword [rdi + 0x2c], r13d
xor r8, rax
shr r8, cl
add dword [rdi + 0x68], r8d
mov eax, r8d
shr eax, 2
xorps xmm0, xmm0
and eax, 0x3fffffc0
mov r14, rsi
movups xmmword [rbp - 0x70], xmm0
mov rcx, rsi
lea r11, [r9 + rax*4]
lea r9, [rax + r10]
movsx eax, r8b
movzx r10d, byte [r9]
mov rdx, r9
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 - 0x70], eax
inc rcx
cmp rcx, r15
jl 0x14022cc49
movsxd rax, dword [rbp - 0x68]
mov cl, r10b
movsxd rdx, dword [rbp - 0x64]
and cl, 0x3f
shl rdx, 0x10
or rdx, rax
movsxd rax, dword [rbp - 0x6c]
shl rdx, 0x10
or rdx, rax
movsxd rax, dword [rbp - 0x70]
shl rdx, 0x10
or rdx, rax
ror rdx, cl
test rdx, rdx
je 0x14022ccde
mov rbx, qword [rsp + 0x48]
mov r12d, dword [rsp + 0x38]
mov r13d, dword [rsp + 0x3c]
test r12d, r12d
je 0x14022ccd9
bsf rcx, rdx
add ecx, r10d
and ecx, 0x3f
mov ecx, dword [r11 + rcx*4]
je 0x14022ccd0
cmp ecx, r13d
jb 0x14022ccd9
prefetcht0 byte [rcx + rbx]
mov dword [rbp + r14*4 - 0x60], ecx
inc r14
dec r12d
lea rax, [rdx - 1]
and rdx, rax
ja 0x14022cca7
mov r13d, dword [rsp + 0x30]
lea edx, [r10 - 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 [rdi + 0x2c]
mov dword [r11 + rdx*4], eax
inc dword [rdi + 0x2c]
test r14, r14
je 0x14022cd93
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov ebx, dword [rbp + rsi*4 - 0x60]
lea rdx, [rdi - 3]
add rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x38]
add rdx, rbx
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [r12 - 3]
mov r8, r15
add rdx, rdi
lea rcx, [rsp + 0x3c]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x38], eax
jne 0x14022cd86
mov r8, qword [rsp + 0x78]
mov rdx, rbx
mov rcx, r12
call fcn.140207344
cmp rax, rdi
jbe 0x14022cd86
mov rdx, qword [rbp - 0x78]
mov ecx, r13d
sub ecx, dword [rbp + rsi*4 - 0x60]
mov rdi, rax
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + r12]
cmp rcx, qword [rsp + 0x78]
je 0x14022cd8e
inc rsi
cmp rsi, r14
jb 0x14022cd16
mov qword [rsp + 0x68], rdi
mov rax, qword [rsp + 0x68]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140255330
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret