Function at 0x1800fea50
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 - 0x38], rax
mov r15, rdx
mov rax, qword [rcx + 0x38]
mov qword [rbp - 0x78], 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 + 0x6c], eax
add rax, rcx
mov qword [rbp - 0x28], rax
mov eax, edx
sub eax, ecx
mov qword [rsp + 0x70], rcx
mov ecx, dword [rdi + 0x100]
mov qword [rsp + 0x50], rdx
mov edx, 1
shl edx, cl
mov ecx, eax
sub ecx, dword [rdi + 0x1c]
mov dword [rsp + 0x38], eax
sub eax, edx
cmp ecx, edx
mov qword [rbp - 0x48], r8
mov r8d, dword [rdi + 0x1c]
cmova r8d, eax
mov qword [rbp - 0x40], r9
mov eax, dword [rdi + 0x10c]
xor esi, esi
cmp dword [rdi + 0x28], esi
mov qword [rbp - 0x18], r13
cmovne r8d, dword [rdi + 0x1c]
lea edx, [rsi + 4]
mov dword [rsp + 0x68], r8d
cmp eax, edx
mov qword [rbp - 0x60], r14
mov ecx, edx
lea r12d, [rsi + 3]
cmovb ecx, eax
mov qword [rsp + 0x48], r12
lea eax, [rsi + 1]
mov r8d, edx
shl eax, cl
mov rdx, r15
lea rcx, [rbp - 0x58]
mov dword [rsp + 0x3c], eax
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rbp - 0x58], 0x9e3779b1
lea ecx, [rsi + 0x22]
sub ecx, ebx
shr rdx, cl
lea rax, [rdx*4]
lea rcx, [rax*4]
mov qword [rbp - 0x30], rax
mov rax, qword [r14 + 0x70]
mov qword [rbp - 0x50], rcx
prefetcht0 byte [rcx + rax]
mov ecx, dword [rdi + 0x10c]
cmp ecx, 4
jbe 0x1800feb86
add ecx, 0xfffffffc
lea eax, [rsi + 1]
shl eax, cl
mov dword [rsp + 0x30], eax
jmp 0x1800feb8a
mov dword [rsp + 0x30], esi
cmp dword [rdi + 0x12c], esi
jne 0x1800feee4
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 + 0x60], r9
cmp eax, 0x180
jbe 0x1800fed8e
mov r10, qword [rdi + 0x70]
lea eax, [r14 + 0x60]
mov r8d, dword [rdi + 0x34]
mov qword [rsp + 0x78], r10
mov r10, qword [rdi + 0x38]
mov qword [rbp - 0x80], r10
mov dword [rsp + 0x58], eax
cmp r14d, eax
jae 0x1800fecd4
mov r15, qword [rsp + 0x78]
mov eax, r13d
mov r13d, dword [rsp + 0x58]
sub eax, r8d
mov qword [rbp - 0x70], rax
mov r11d, r14d
mov qword [rbp - 0x68], r14
mov r12, r9
mov rsi, r10
mov rbx, qword [rdi + 0x60]
lea rdx, [r12 + 8]
add rdx, r11
lea rcx, [rsp + 0x58]
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x58], 0x9e3779b1
mov rcx, qword [rbp - 0x70]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [rax + rsi]
mov r11, qword [rbp - 0x68]
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, 4
and r9d, 0xffffff0
lea r8, [rsi + r9]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rbp - 0x68], r11
and ecx, 0xf
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [r15 + rax*4], r14d
inc r14d
cmp r14d, r13d
jb 0x1800fec08
mov rax, qword [rdi + 0x70]
xor esi, esi
mov r8d, dword [rdi + 0x34]
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov r9, qword [rsp + 0x60]
lea r13d, [rsi + 0x18]
mov qword [rsp + 0x78], rax
mov rax, qword [rdi + 0x38]
mov qword [rbp - 0x80], 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 0x1800fed8e
mov rsi, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x78]
sub eax, r8d
mov qword [rbp - 0x70], rax
mov r15d, edx
mov r12d, r14d
mov rbx, qword [rdi + 0x60]
lea rdx, [r12 + rsi]
mov r8d, 4
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rbp - 0x68], 0x9e3779b1
mov rcx, qword [rbp - 0x70]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r13 + rax*4]
mov rcx, qword [rbp - 0x80]
prefetcht0 byte [rcx + rax]
mov rax, r12
inc r12
and eax, 7
mov dword [rdi + rax*4 + 0x40], edx
sub r15, 1
jne 0x1800fed28
mov r15, qword [rsp + 0x50]
xor esi, esi
mov r12, qword [rsp + 0x48]
lea r13d, [rsi + 0x18]
mov rax, qword [rdi + 0x70]
mov rcx, qword [rdi + 8]
mov qword [rbp - 0x70], rax
mov rax, qword [rdi + 0x38]
mov qword [rbp - 0x80], rax
mov eax, dword [rsp + 0x34]
mov qword [rbp - 0x20], rcx
cmp r14d, eax
jae 0x1800fee7f
mov r12d, dword [rsp + 0x34]
mov eax, r13d
sub eax, dword [rdi + 0x34]
mov rsi, qword [rbp - 0x70]
mov r13, qword [rbp - 0x80]
mov qword [rsp + 0x60], rax
mov r15d, r14d
mov rbx, qword [rdi + 0x60]
lea rdx, [rcx + 8]
add rdx, r15
lea rcx, [rsp + 0x78]
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x78], 0x9e3779b1
mov rcx, qword [rsp + 0x60]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov ecx, 0xffffff0
mov eax, edx
shr rax, 4
and rax, rcx
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rax + r13]
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, 4
and r9, rcx
lea r8, [r9 + r13]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r15
not ecx
and ecx, 0xf
add edx, ecx
mov rcx, qword [rbp - 0x20]
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 0x1800fedce
mov r15, qword [rsp + 0x50]
xor esi, esi
mov r12, qword [rsp + 0x48]
mov eax, dword [rsp + 0x34]
lea r13d, [rsi + 0x18]
mov rdx, qword [rsp + 0x70]
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 - 0x38]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r9, qword [rbp - 0x78]
prefetcht0 byte [rax + r9]
and ebx, 7
mov r8d, dword [rdi + rbx*4 + 0x40]
mov dword [rdi + rbx*4 + 0x40], edx
jmp 0x1800fef21
mov r8d, 4
lea rcx, [rsp + 0x60]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
imul r8d, dword [rsp + 0x60], 0x9e3779b1
mov ecx, 0x18
sub ecx, dword [rsp + 0x40]
mov r9, qword [rbp - 0x78]
mov eax, r13d
xor r8, rax
mov eax, dword [rsp + 0x38]
shr r8, cl
mov rcx, qword [rbp - 0x38]
mov dword [rdi + 0x2c], eax
add dword [rdi + 0x68], r8d
mov eax, r8d
shr rax, 4
mov r14, rsi
and eax, 0xffffff0
mov r13, rsi
add r9, rax
lea r11, [rcx + rax*4]
movsx eax, r8b
movzx ebx, byte [r9]
movdqu xmm0, xmmword [r9]
mov r10d, ebx
movd xmm1, eax
and r10d, 0xf
punpcklbw xmm1, xmm1
mov ecx, r10d
neg ecx
punpcklwd xmm1, xmm1
and ecx, 0xf
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
mov dword [rbp - 0x18], eax
shl ax, cl
mov cl, r10b
movzx edx, ax
movzx eax, word [rbp - 0x18]
shr rax, cl
or rdx, rax
jbe 0x1800fefdc
mov r12d, dword [rsp + 0x3c]
mov r15d, dword [rsp + 0x68]
test r12d, r12d
je 0x1800fefcd
bsf rcx, rdx
add ecx, r10d
and ecx, 0xf
je 0x1800fefc4
mov ecx, dword [r11 + rcx*4]
cmp ecx, r15d
jb 0x1800fefcd
mov eax, ecx
add rax, qword [rsp + 0x70]
prefetcht0 byte [rax]
mov dword [rbp + r14*4], ecx
inc r14
dec r12d
lea rax, [rdx - 1]
and rdx, rax
ja 0x1800fef95
mov r15, qword [rsp + 0x50]
mov dword [rsp + 0x3c], r12d
mov r12, qword [rsp + 0x48]
lea edx, [rbx - 1]
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0xf
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 0x1800ff08b
mov rsi, qword [rbp - 0x48]
mov edi, dword [rbp + r13*4]
lea rdx, [r12 - 3]
add rdi, qword [rsp + 0x70]
lea rcx, [rsp + 0x68]
add rdx, rdi
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [rsp + 0x68]
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 0x1800ff081
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call fcn.1800f6c28
cmp rax, r12
jbe 0x1800ff081
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 0x1800ff089
inc r13
cmp r13, r14
jb 0x1800ff00d
xor esi, esi
mov r10, qword [rbp - 0x60]
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 [rbp - 0x78], rax
add r13d, dword [rsp + 0x6c]
mov eax, 3
cmp edi, eax
mov qword [rsp + 0x70], 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 0x1800ff0d4
mov rax, qword [rbp - 0x30]
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 0x1800ff1ce
mov rax, qword [r10 + 0x70]
mov eax, dword [rbx + rax]
mov dword [rsp + 0x48], eax
lea r14, [r8 + rax]
test eax, eax
je 0x1800ff2b5
mov r8d, 4
lea rcx, [rsp + 0x6c]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [rsp + 0x6c]
lea rcx, [rsp + 0x3c]
mov r8d, 4
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
cmp ebx, dword [rsp + 0x3c]
jne 0x1800ff1a1
mov rax, qword [rbp - 0x28]
lea rdx, [r14 + 4]
mov rbx, qword [rbp - 0x48]
lea rcx, [r15 + 4]
mov r9, qword [rbp - 0x78]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.18011ff70
lea rcx, [rax + 4]
cmp rcx, r12
jbe 0x1800ff1a1
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 0x1800ff2b8
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rbp - 0x50]
inc ecx
mov r8, qword [rsp + 0x70]
add rbx, 4
mov r10, qword [rbp - 0x60]
mov dword [rsp + 0x30], ecx
mov qword [rbp - 0x50], rbx
cmp ecx, dword [rsp + 0x50]
jb 0x1800ff10b
mov rdx, qword [r10 + 0x70]
mov rax, qword [rbp - 0x30]
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 0x1800ff2b5
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 0x1800ff1f8
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 0x1800ff29f
mov rax, qword [rbp - 0x28]
lea rcx, [r15 + 4]
mov rdx, qword [rbp - 0x18]
mov rbx, qword [rbp - 0x48]
add rdx, 4
mov r9, qword [rbp - 0x78]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.18011ff70
add rax, 4
cmp rax, r12
jbe 0x1800ff29f
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 0x1800ff2b5
mov r8, qword [rsp + 0x70]
inc r14d
mov r10, qword [rbp - 0x60]
inc esi
cmp esi, edi
jb 0x1800ff20b
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