Function at 0x1800604f4
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 - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x18015e880]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r10, qword [rcx + 8]
mov rdi, rcx
mov r14, qword [rcx + 0x38]
mov r13d, edx
mov r11d, dword [rcx + 0x34]
sub r13d, r10d
mov qword [rbp - 0x80], rdx
mov eax, r13d
mov ebx, dword [rdi + 0x1c]
mov r12, qword [rdi + 0x60]
mov qword [rbp - 0x60], r9
mov r9, rdx
mov qword [rbp - 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 + 0x78], r8
mov qword [rsp + 0x70], r14
cmova ebx, eax
mov dword [rsp + 0x58], r11d
mov eax, dword [rdi + 0x10c]
xor esi, esi
cmp dword [rdi + 0x28], esi
mov qword [rsp + 0x40], r10
cmovne ebx, dword [rdi + 0x1c]
lea ecx, [rsi + 6]
mov dword [rsp + 0x34], ebx
cmp eax, ecx
mov dword [rsp + 0x28], r13d
lea ebx, [rsi + 3]
mov qword [rbp - 0x58], r12
cmovb ecx, eax
mov qword [rsp + 0x48], rbx
lea eax, [rsi + 1]
shl eax, cl
lea r15d, [rsi + 4]
mov dword [rsp + 0x30], eax
cmp dword [rdi + 0x12c], esi
jne 0x180060929
mov rax, qword [rsp + 0x70]
lea r12d, [rsi + 0x18]
mov r14d, dword [rdi + 0x2c]
mov qword [rsp + 0x38], rax
mov eax, r13d
sub eax, r14d
mov qword [rsp + 0x20], r8
mov r8d, r11d
cmp eax, 0x180
jbe 0x1800607d1
lea eax, [r14 + 0x60]
mov dword [rsp + 0x2c], eax
cmp r14d, eax
jae 0x1800606e5
mov rsi, qword [rsp + 0x78]
mov eax, r12d
mov r12, qword [rsp + 0x70]
sub eax, r11d
mov qword [rsp + 0x50], rax
mov r11d, r14d
mov qword [rsp + 0x20], r14
mov r13, r10
mov rbx, qword [rdi + 0x60]
lea rdx, [r13 + 8]
add rdx, r11
lea rcx, [rsp + 0x68]
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x68], 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 [rax + r12]
prefetcht0 byte [rax + r12 + 0x20]
mov r11, qword [rsp + 0x20]
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, [rax + r12]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rsp + 0x20], 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 + 0x2c]
jb 0x180060622
mov r13d, dword [rsp + 0x28]
xor esi, esi
mov r9, qword [rbp - 0x80]
mov r10, qword [rsp + 0x40]
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, r14d
mov qword [rsp + 0x38], rax
sub edx, r10d
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 0x1800607d1
mov rsi, qword [rsp + 0x38]
mov eax, r12d
sub eax, r8d
mov r12d, r14d
mov qword [rsp + 0x50], rax
mov r13, r9
mov eax, edx
mov qword [rsp + 0x60], rax
mov rbx, qword [rdi + 0x60]
lea rdx, [r10 + r12]
mov r8, r15
lea rcx, [rsp + 0x2c]
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x2c], 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 [rax + rsi]
prefetcht0 byte [rax + rsi + 0x20]
mov r10, qword [rsp + 0x40]
mov rax, r12
and eax, 7
inc r12
sub qword [rsp + 0x60], 1
mov dword [rdi + rax*4 + 0x40], edx
jne 0x18006074d
mov rax, qword [rdi + 0x70]
xor esi, esi
mov r8d, dword [rdi + 0x34]
mov r13d, dword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 0x38]
lea r12d, [rsi + 0x18]
mov qword [rsp + 0x38], rax
mov rcx, qword [rdi + 8]
mov qword [rbp - 0x68], rcx
cmp r14d, r13d
jae 0x1800608b4
mov rsi, qword [rsp + 0x20]
mov eax, r12d
mov r12, qword [rsp + 0x38]
sub eax, r8d
mov r11d, r14d
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x50], r11
mov rbx, qword [rdi + 0x60]
lea rdx, [r11 + 8]
add rdx, rcx
mov r8, r15
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x60], 0x9e3779b1
mov r8d, 0x3fffffc0
mov rcx, qword [rbp - 0x70]
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 [rax + r12]
prefetcht0 byte [rax + r12 + 0x20]
mov r11, qword [rsp + 0x50]
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 + 0x50], r11
and ecx, 0x3f
add edx, ecx
mov rcx, qword [rbp - 0x68]
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 0x1800607fe
xor esi, esi
lea r12d, [rsi + 0x18]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
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 + 0x38], 0x9e3779b1
mov ecx, r12d
mov eax, dword [rbp - 0x58]
sub ecx, dword [rsp + 0x58]
mov r9, qword [rsp + 0x78]
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 r14, qword [rsp + 0x70]
prefetcht0 byte [rax + r14]
prefetcht0 byte [rax + r14 + 0x20]
and ebx, 7
mov r8d, dword [rdi + rbx*4 + 0x40]
mov dword [rdi + rbx*4 + 0x40], edx
mov rbx, qword [rsp + 0x48]
jmp 0x18006095d
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, r9
call sub.VCRUNTIME140.dll_memcpy
imul r8d, dword [rsp + 0x20], 0x9e3779b1
mov ecx, 0x18
sub ecx, dword [rsp + 0x58]
mov r9, qword [rsp + 0x78]
mov eax, r12d
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 rcx, rsi
movups xmmword [rbp - 0x58], xmm0
lea r11, [r9 + rax*4]
lea r9, [rax + r14]
movsx eax, r8b
movzx r10d, byte [r9]
mov r14, rsi
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 - 0x58], eax
inc rcx
cmp rcx, r15
jl 0x18006099d
movsxd rax, dword [rbp - 0x50]
mov cl, r10b
movsxd rdx, dword [rbp - 0x4c]
and cl, 0x3f
shl rdx, 0x10
or rdx, rax
movsxd rax, dword [rbp - 0x54]
shl rdx, 0x10
or rdx, rax
movsxd rax, dword [rbp - 0x58]
shl rdx, 0x10
or rdx, rax
ror rdx, cl
test rdx, rdx
je 0x180060a36
mov r12, qword [rsp + 0x40]
mov r13d, dword [rsp + 0x30]
mov ebx, dword [rsp + 0x34]
test r13d, r13d
je 0x180060a2c
bsf rcx, rdx
add ecx, r10d
and ecx, 0x3f
mov ecx, dword [r11 + rcx*4]
je 0x180060a23
cmp ecx, ebx
jb 0x180060a2c
prefetcht0 byte [rcx + r12]
mov dword [rbp + r14*4 - 0x40], ecx
inc r14
dec r13d
lea rax, [rdx - 1]
and rdx, rax
ja 0x1800609fa
mov r13d, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x48]
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 0x180060af7
mov r12, qword [rbp - 0x80]
mov edi, dword [rbp + rsi*4 - 0x40]
lea rdx, [rbx - 3]
add rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x34]
add rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
mov ebx, dword [rsp + 0x34]
add rdx, 0xfffffffffffffffd
add rdx, r12
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
cmp ebx, dword [rsp + 0x30]
jne 0x180060ae6
mov r8, qword [rbp - 0x78]
mov rdx, rdi
mov rcx, r12
call fcn.18003ab40
mov rbx, qword [rsp + 0x48]
cmp rax, rbx
jbe 0x180060aeb
mov rdx, qword [rbp - 0x60]
mov ecx, r13d
sub ecx, dword [rbp + rsi*4 - 0x40]
mov rbx, rax
add ecx, 3
mov qword [rsp + 0x48], rax
mov qword [rdx], rcx
lea rcx, [rax + r12]
cmp rcx, qword [rbp - 0x78]
je 0x180060af7
jmp 0x180060aeb
mov rbx, qword [rsp + 0x48]
inc rsi
cmp rsi, r14
jb 0x180060a68
mov rax, rbx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1801241e0
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret