Function at 0x1800ffba0
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 [0x180200ce8]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rax, qword [rcx + 0x70]
mov rdi, rcx
mov qword [rbp - 0x30], rax
mov r15, rdx
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 0x34]
mov rcx, qword [rcx + 8]
mov r14, qword [rdi + 0xf8]
mov r13, qword [rdi + 0x60]
mov dword [rsp + 0x40], eax
mov eax, dword [rdi + 0x18]
mov ebx, dword [r14 + 0x108]
mov dword [rsp + 0x74], eax
add rax, rcx
mov qword [rbp - 0x20], rax
mov eax, edx
sub eax, ecx
mov qword [rsp + 0x78], rcx
mov ecx, dword [rdi + 0x100]
mov dword [rsp + 0x38], eax
mov qword [rbp - 0x48], r8
mov r8d, dword [rdi + 0x1c]
mov qword [rbp - 0x58], rdx
mov edx, 1
shl edx, cl
mov ecx, eax
sub ecx, dword [rdi + 0x1c]
sub eax, edx
cmp ecx, edx
mov qword [rbp - 0x40], r9
mov rdx, r15
mov qword [rbp - 0x18], r13
cmova r8d, eax
mov qword [rbp - 0x68], r14
mov eax, dword [rdi + 0x10c]
xor esi, esi
cmp dword [rdi + 0x28], esi
cmovne r8d, dword [rdi + 0x1c]
lea ecx, [rsi + 6]
mov dword [rsp + 0x70], r8d
cmp eax, ecx
lea r12d, [rsi + 3]
lea r8d, [rsi + 4]
mov qword [rsp + 0x50], r12
cmovb ecx, eax
lea eax, [rsi + 1]
shl eax, cl
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x3c], eax
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rbp - 0x60], 0x9e3779b1
lea ecx, [rsi + 0x22]
sub ecx, ebx
shr rdx, cl
lea rax, [rdx*4]
lea rcx, [rax*4]
mov qword [rbp - 0x28], rax
mov rax, qword [r14 + 0x70]
mov qword [rbp - 0x50], rcx
prefetcht0 byte [rcx + rax]
mov ecx, dword [rdi + 0x10c]
cmp ecx, 6
jbe 0x1800ffcd5
add ecx, 0xfffffffa
lea eax, [rsi + 1]
shl eax, cl
mov dword [rsp + 0x30], eax
jmp 0x1800ffcd9
mov dword [rsp + 0x30], esi
cmp dword [rdi + 0x12c], esi
jne 0x180100062
mov r9, qword [rdi + 8]
mov eax, r15d
mov r14d, dword [rdi + 0x2c]
sub eax, r9d
mov dword [rsp + 0x34], eax
mov r13d, 0x18
sub eax, r14d
mov qword [rsp + 0x48], r9
cmp eax, 0x180
jbe 0x1800ffef6
mov r10, qword [rdi + 0x70]
lea eax, [r14 + 0x60]
mov r8d, dword [rdi + 0x34]
mov qword [rsp + 0x68], r10
mov r10, qword [rdi + 0x38]
mov qword [rbp - 0x78], r10
mov dword [rsp + 0x60], eax
cmp r14d, eax
jae 0x1800ffe2d
mov rsi, qword [rsp + 0x68]
mov eax, r13d
mov r13d, dword [rsp + 0x60]
sub eax, r8d
mov qword [rbp - 0x80], rax
mov r11d, r14d
mov qword [rbp - 0x70], r14
mov r12, r9
mov r15, r10
mov rbx, qword [rdi + 0x60]
lea rdx, [r12 + 8]
add rdx, r11
lea rcx, [rsp + 0x60]
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x60], 0x9e3779b1
mov rcx, qword [rbp - 0x80]
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]
prefetcht0 byte [rax + r15]
prefetcht0 byte [rax + r15 + 0x20]
mov r11, qword [rbp - 0x70]
mov rax, r11
and eax, 7
mov r10d, dword [rdi + rax*4 + 0x40]
mov r9d, r10d
mov dword [rdi + rax*4 + 0x40], edx
shr r9, 2
and r9d, 0x3fffffc0
lea r8, [r9 + r15]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rbp - 0x70], r11
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], r14d
inc r14d
cmp r14d, r13d
jb 0x1800ffd57
mov rax, qword [rdi + 0x70]
xor esi, esi
mov r8d, dword [rdi + 0x34]
mov r15, qword [rbp - 0x58]
mov r12, qword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
lea r13d, [rsi + 0x18]
mov qword [rsp + 0x68], rax
mov rax, qword [rdi + 0x38]
mov qword [rbp - 0x78], rax
mov r14d, dword [rsp + 0x34]
lea rcx, [r15 + 1]
add r14d, 0xffffffe0
mov edx, ecx
sub edx, r9d
mov eax, r14d
sub edx, r14d
add rax, r9
inc edx
cmp rax, rcx
mov eax, 8
cmova edx, esi
cmp edx, eax
cmova edx, eax
lea eax, [rdx + r14]
cmp r14d, eax
jae 0x1800ffef6
mov rsi, qword [rsp + 0x48]
mov eax, r13d
mov r15, qword [rsp + 0x68]
sub eax, r8d
mov r13, qword [rbp - 0x78]
mov qword [rbp - 0x38], rax
mov eax, edx
mov qword [rbp - 0x80], rax
mov r12d, r14d
mov rbx, qword [rdi + 0x60]
lea rdx, [r12 + rsi]
mov r8d, 4
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rbp - 0x70], 0x9e3779b1
mov rcx, qword [rbp - 0x38]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
prefetcht0 byte [rax + r13 + 0x20]
mov rax, r12
inc r12
and eax, 7
sub qword [rbp - 0x80], 1
mov dword [rdi + rax*4 + 0x40], edx
jne 0x1800ffe88
mov r15, qword [rbp - 0x58]
xor esi, esi
mov r12, qword [rsp + 0x50]
lea r13d, [rsi + 0x18]
mov rax, qword [rdi + 0x70]
mov rcx, qword [rdi + 0x38]
mov qword [rbp - 0x38], rax
mov eax, dword [rsp + 0x34]
mov qword [rbp - 0x80], rcx
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x68], rcx
cmp r14d, eax
jae 0x1800ffff1
mov r12d, dword [rsp + 0x34]
mov eax, r13d
sub eax, dword [rdi + 0x34]
mov rsi, qword [rbp - 0x38]
mov r13, qword [rbp - 0x80]
mov qword [rsp + 0x48], rax
mov r15d, r14d
mov rbx, qword [rdi + 0x60]
lea rdx, [rcx + 8]
add rdx, r15
lea rcx, [rbp - 0x78]
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rbp - 0x78], 0x9e3779b1
mov rcx, qword [rsp + 0x48]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov ecx, 0x3fffffc0
mov eax, edx
shr rax, 2
and rax, rcx
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
prefetcht0 byte [rax + r13 + 0x20]
mov rax, r15
and eax, 7
mov r10d, dword [rdi + rax*4 + 0x40]
mov r9d, r10d
mov dword [rdi + rax*4 + 0x40], edx
shr r9, 2
and r9, rcx
lea r8, [r9 + r13]
movzx edx, byte [r8]
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 [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [rsi + rax*4], r14d
inc r14d
cmp r14d, r12d
jb 0x1800fff37
mov r15, qword [rbp - 0x58]
xor esi, esi
mov r12, qword [rsp + 0x50]
mov eax, dword [rsp + 0x34]
lea r13d, [rsi + 0x18]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x34]
mov ebx, dword [rsp + 0x38]
add rdx, 8
add rdx, rbx
mov dword [rdi + 0x2c], eax
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbp - 0x18]
mov ecx, r13d
sub ecx, dword [rsp + 0x40]
imul edx, dword [rsp + 0x34], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov rcx, qword [rbp - 0x30]
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rcx + rax*4]
prefetcht0 byte [rcx + rax*4 + 0x40]
mov r8, qword [rsp + 0x58]
prefetcht0 byte [rax + r8]
prefetcht0 byte [rax + r8 + 0x20]
and ebx, 7
mov r9d, dword [rdi + rbx*4 + 0x40]
mov dword [rdi + rbx*4 + 0x40], edx
jmp 0x1801000a0
mov r8d, 4
lea rcx, [rsp + 0x68]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
imul r9d, dword [rsp + 0x68], 0x9e3779b1
mov ecx, 0x18
sub ecx, dword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
mov eax, r13d
xor r9, rax
mov eax, dword [rsp + 0x38]
shr r9, cl
mov rcx, qword [rbp - 0x30]
mov dword [rdi + 0x2c], eax
add dword [rdi + 0x68], r9d
mov eax, r9d
shr rax, 2
xorps xmm0, xmm0
and eax, 0x3fffffc0
mov r14, rsi
mov r13, rsi
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rcx + rax*4]
lea r11, [rax + r8]
mov qword [rsp + 0x58], rcx
movzx ebx, byte [r11]
mov rcx, rsi
movsx eax, r9b
mov rdx, r11
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 0x1801000e9
movsxd rax, dword [rbp - 0x10]
mov edx, ebx
movsxd r8, dword [rbp - 0xc]
and edx, 0x3f
shl r8, 0x10
mov ecx, edx
or r8, rax
neg ecx
movsxd rax, dword [rbp - 0x14]
and ecx, 0x3f
shl r8, 0x10
or r8, rax
movsxd rax, dword [rbp - 0x18]
shl r8, 0x10
or r8, rax
mov r10, r8
shl r10, cl
mov ecx, edx
shr r8, cl
or r10, r8
mov r8, qword [rsp + 0x58]
jbe 0x180100197
mov edx, dword [rsp + 0x3c]
mov r12d, dword [rsp + 0x70]
test edx, edx
je 0x18010018e
bsf rcx, r10
add ecx, ebx
and ecx, 0x3f
je 0x180100185
mov ecx, dword [r8 + rcx*4]
cmp ecx, r12d
jb 0x18010018e
mov eax, ecx
add rax, qword [rsp + 0x78]
prefetcht0 byte [rax]
mov dword [rbp + r14*4], ecx
inc r14
dec edx
lea rax, [r10 - 1]
and r10, rax
ja 0x180100159
mov r12, qword [rsp + 0x50]
mov dword [rsp + 0x3c], edx
lea edx, [rbx - 1]
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0x3f
add edx, ecx
mov byte [r11], dl
mov byte [rdx + r11], r9b
mov eax, dword [rdi + 0x2c]
mov dword [r8 + rdx*4], eax
inc dword [rdi + 0x2c]
test r14, r14
je 0x180100246
mov rsi, qword [rbp - 0x48]
mov edi, dword [rbp + r13*4]
lea rdx, [r12 - 3]
add rdi, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
add rdx, rdi
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [rsp + 0x70]
lea rdx, [r15 - 3]
add rdx, r12
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
cmp ebx, dword [rsp + 0x40]
jne 0x18010023c
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call fcn.1800f6c28
cmp rax, r12
jbe 0x18010023c
mov ecx, dword [rsp + 0x38]
mov r12, rax
sub ecx, dword [rbp + r13*4]
add rax, r15
mov rdx, qword [rbp - 0x40]
add ecx, 3
mov qword [rdx], rcx
cmp rax, rsi
je 0x180100244
inc r13
cmp r13, r14
jb 0x1801001c8
xor esi, esi
mov r10, qword [rbp - 0x68]
mov edi, dword [rsp + 0x30]
add edi, dword [rsp + 0x3c]
mov rbx, qword [rbp - 0x50]
mov rax, qword [r10]
mov r8, qword [r10 + 8]
mov rdx, qword [r10 + 0x70]
mov r13d, r8d
sub r13d, eax
mov qword [rsp + 0x58], rax
add r13d, dword [rsp + 0x74]
mov eax, 3
cmp edi, eax
mov qword [rsp + 0x78], r8
mov r9d, eax
lea rcx, [rdx + rbx]
cmovb r9d, edi
mov r11d, eax
mov dword [rsp + 0x50], r9d
mov eax, dword [rcx]
prefetcht0 byte [rax + r8]
lea rcx, [rcx + 4]
sub r11, 1
jne 0x180100290
mov rax, qword [rbp - 0x28]
mov ecx, dword [rdx + rax*4 + 0xc]
mov rax, qword [r10 + 0x80]
shr rcx, 8
prefetcht0 byte [rax + rcx*4]
mov ecx, esi
mov dword [rsp + 0x30], ecx
test r9d, r9d
je 0x18010038b
mov rax, qword [r10 + 0x70]
mov eax, dword [rbx + rax]
mov dword [rsp + 0x48], eax
lea r14, [r8 + rax]
test eax, eax
je 0x180100473
mov r8d, 4
lea rcx, [rsp + 0x74]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [rsp + 0x74]
lea rcx, [rsp + 0x3c]
mov r8d, 4
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
cmp ebx, dword [rsp + 0x3c]
jne 0x18010035e
mov rax, qword [rbp - 0x20]
lea rdx, [r14 + 4]
mov rbx, qword [rbp - 0x48]
lea rcx, [r15 + 4]
mov r9, qword [rsp + 0x58]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.18011ff70
lea rcx, [rax + 4]
cmp rcx, r12
jbe 0x18010035e
mov eax, dword [rsp + 0x38]
mov r12, rcx
sub eax, dword [rsp + 0x48]
mov rdx, qword [rbp - 0x40]
sub eax, r13d
add eax, 3
mov qword [rdx], rax
lea rax, [rcx + r15]
cmp rax, rbx
je 0x180100476
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rbp - 0x50]
inc ecx
mov r8, qword [rsp + 0x78]
add rbx, 4
mov r10, qword [rbp - 0x68]
mov dword [rsp + 0x30], ecx
mov qword [rbp - 0x50], rbx
cmp ecx, dword [rsp + 0x50]
jb 0x1801002c7
mov rdx, qword [r10 + 0x70]
mov rax, qword [rbp - 0x28]
sub edi, ecx
mov r14d, dword [rdx + rax*4 + 0xc]
movzx eax, byte [rdx + rax*4 + 0xc]
mov edx, esi
shr r14d, 8
cmp edi, eax
cmova edi, eax
test edi, edi
je 0x180100473
mov r9, qword [r10 + 0x80]
lea eax, [rdx + r14]
mov eax, dword [r9 + rax*4]
prefetcht0 byte [rax + r8]
inc edx
cmp edx, edi
jb 0x1801003b5
mov rax, qword [r10 + 0x80]
lea rcx, [rsp + 0x50]
mov eax, dword [rax + r14*4]
mov dword [rsp + 0x30], eax
add rax, r8
mov rdx, rax
mov qword [rbp - 0x18], rax
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r8d, 4
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
cmp ebx, dword [rsp + 0x48]
jne 0x18010045d
mov rax, qword [rbp - 0x20]
lea rcx, [r15 + 4]
mov rdx, qword [rbp - 0x18]
mov rbx, qword [rbp - 0x48]
add rdx, 4
mov r9, qword [rsp + 0x58]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.18011ff70
add rax, 4
cmp rax, r12
jbe 0x18010045d
mov ecx, dword [rsp + 0x38]
mov r12, rax
sub ecx, dword [rsp + 0x30]
add rax, r15
mov rdx, qword [rbp - 0x40]
sub ecx, r13d
add ecx, 3
mov qword [rdx], rcx
cmp rax, rbx
je 0x180100473
mov r8, qword [rsp + 0x78]
inc r14d
mov r10, qword [rbp - 0x68]
inc esi
cmp esi, edi
jb 0x1801003c8
mov rcx, r12
mov rax, rcx
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.180145570
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret