Function at 0x140282dec
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 [0x1404fcf48]
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 - 0x80], 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 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 + 5]
mov dword [rsp + 0x68], 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 fcn.14038a820
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 - 0x30], rax
mov rax, qword [r14 + 0x70]
mov qword [rbp - 0x50], rcx
prefetcht0 byte [rcx + rax]
mov ecx, dword [rdi + 0x10c]
cmp ecx, 5
jbe 0x140282f20
add ecx, 0xfffffffb
lea eax, [rsi + 1]
shl eax, cl
mov dword [rsp + 0x30], eax
jmp 0x140282f24
mov dword [rsp + 0x30], esi
cmp dword [rdi + 0x12c], esi
jne 0x140283294
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 0x140283133
mov r10, qword [rdi + 0x70]
lea eax, [r14 + 0x60]
mov r8d, dword [rdi + 0x34]
mov qword [rsp + 0x60], r10
mov r10, qword [rdi + 0x38]
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x58], eax
cmp r14d, eax
jae 0x140283074
mov rsi, qword [rsp + 0x60]
mov eax, r13d
mov r13d, dword [rsp + 0x58]
sub eax, r8d
mov qword [rbp - 0x78], 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 + 0x58]
mov r8d, 4
call fcn.14038a820
imul edx, dword [rsp + 0x58], 0x9e3779b1
mov rcx, qword [rbp - 0x78]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [rax + r15]
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, 3
and r9d, 0x1fffffe0
lea r8, [r15 + r9]
movzx edx, byte [r8]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rbp - 0x70], r11
and ecx, 0x1f
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 0x140282fa3
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 + 0x60], rax
mov rax, qword [rdi + 0x38]
mov qword [rsp + 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 0x140283133
mov rsi, qword [rsp + 0x48]
mov eax, r13d
mov r15, qword [rsp + 0x60]
sub eax, r8d
mov qword [rbp - 0x78], rax
mov r13d, edx
mov r12d, r14d
mov rbx, qword [rdi + 0x60]
lea rdx, [r12 + rsi]
mov r8d, 4
lea rcx, [rbp - 0x70]
call fcn.14038a820
imul edx, dword [rbp - 0x70], 0x9e3779b1
mov rcx, qword [rbp - 0x78]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x78]
prefetcht0 byte [rcx + rax]
mov rax, r12
inc r12
and eax, 7
mov dword [rdi + rax*4 + 0x40], edx
sub r13, 1
jne 0x1402830c8
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 + 8]
mov qword [rbp - 0x78], rax
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
mov qword [rbp - 0x20], rcx
cmp r14d, eax
jae 0x14028322a
mov r12d, dword [rsp + 0x34]
mov eax, r13d
sub eax, dword [rdi + 0x34]
mov rsi, qword [rbp - 0x78]
mov r13, qword [rsp + 0x48]
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 fcn.14038a820
imul edx, dword [rsp + 0x78], 0x9e3779b1
mov rcx, qword [rsp + 0x60]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov ecx, 0x1fffffe0
mov eax, edx
shr rax, 3
and rax, rcx
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
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, 3
and r9, rcx
lea r8, [r9 + r13]
movzx edx, byte [r8]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
inc r15
not ecx
and ecx, 0x1f
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 0x140283175
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 + 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 fcn.14038a820
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, 3
and eax, 0x1fffffe0
prefetcht0 byte [rcx + rax*4]
prefetcht0 byte [rcx + rax*4 + 0x40]
mov r9, qword [rbp - 0x80]
prefetcht0 byte [rax + r9]
and ebx, 7
mov r8d, dword [rdi + rbx*4 + 0x40]
mov dword [rdi + rbx*4 + 0x40], edx
jmp 0x1402832d1
mov r8d, 4
lea rcx, [rsp + 0x60]
mov rdx, r15
call fcn.14038a820
imul r8d, dword [rsp + 0x60], 0x9e3779b1
mov ecx, 0x18
sub ecx, dword [rsp + 0x40]
mov r9, qword [rbp - 0x80]
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, 3
xorps xmm0, xmm0
and eax, 0x1fffffe0
mov r14, rsi
mov r13, rsi
movups xmmword [rbp - 0x18], xmm0
lea r11, [rax + r9]
movzx r10d, byte [r11]
lea rbx, [rcx + rax*4]
movsx eax, r8b
and r10d, 0x1f
mov rcx, rsi
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, 2
jl 0x140283319
mov edx, dword [rbp - 0x14]
mov ecx, r10d
neg ecx
shl edx, 0x10
or edx, dword [rbp - 0x18]
and ecx, 0x1f
mov r9d, edx
mov eax, edx
shl r9d, cl
mov ecx, r10d
shr rax, cl
or r9, rax
jbe 0x1402833a5
mov edx, dword [rsp + 0x3c]
mov r12d, dword [rsp + 0x68]
test edx, edx
je 0x14028339c
bsf rcx, r9
add ecx, r10d
and ecx, 0x1f
je 0x140283393
mov ecx, dword [rbx + rcx*4]
cmp ecx, r12d
jb 0x14028339c
mov eax, ecx
add rax, qword [rsp + 0x70]
prefetcht0 byte [rax]
mov dword [rbp + r14*4], ecx
inc r14
dec edx
lea rax, [r9 - 1]
and r9, rax
ja 0x140283367
mov r12, qword [rsp + 0x50]
mov dword [rsp + 0x3c], edx
movzx edx, byte [r11]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0x1f
add edx, ecx
mov byte [r11], dl
mov byte [rdx + r11], r8b
mov eax, dword [rdi + 0x2c]
mov dword [rbx + rdx*4], eax
inc dword [rdi + 0x2c]
test r14, r14
je 0x140283456
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 fcn.14038a820
mov ebx, dword [rsp + 0x68]
lea rdx, [r15 - 3]
add rdx, r12
lea rcx, [rsp + 0x40]
mov r8d, 4
call fcn.14038a820
cmp ebx, dword [rsp + 0x40]
jne 0x14028344c
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call fcn.14027a748
cmp rax, r12
jbe 0x14028344c
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 0x140283454
inc r13
cmp r13, r14
jb 0x1402833d8
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 [rbp - 0x80], 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 0x14028349f
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 0x140283599
mov rax, qword [r10 + 0x70]
mov eax, dword [rbx + rax]
mov dword [rsp + 0x48], eax
lea r14, [r8 + rax]
test eax, eax
je 0x140283680
mov r8d, 4
lea rcx, [rsp + 0x6c]
mov rdx, r14
call fcn.14038a820
mov ebx, dword [rsp + 0x6c]
lea rcx, [rsp + 0x3c]
mov r8d, 4
mov rdx, r15
call fcn.14038a820
cmp ebx, dword [rsp + 0x3c]
jne 0x14028356c
mov rax, qword [rbp - 0x28]
lea rdx, [r14 + 4]
mov rbx, qword [rbp - 0x48]
lea rcx, [r15 + 4]
mov r9, qword [rbp - 0x80]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.1402a3a7c
lea rcx, [rax + 4]
cmp rcx, r12
jbe 0x14028356c
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 0x140283683
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rbp - 0x50]
inc ecx
mov r8, qword [rsp + 0x70]
add rbx, 4
mov r10, qword [rbp - 0x68]
mov dword [rsp + 0x30], ecx
mov qword [rbp - 0x50], rbx
cmp ecx, dword [rsp + 0x50]
jb 0x1402834d6
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 0x140283680
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 0x1402835c3
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 fcn.14038a820
mov ebx, dword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r8d, 4
mov rdx, r15
call fcn.14038a820
cmp ebx, dword [rsp + 0x48]
jne 0x14028366a
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 - 0x80]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.1402a3a7c
add rax, 4
cmp rax, r12
jbe 0x14028366a
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 0x140283680
mov r8, qword [rsp + 0x70]
inc r14d
mov r10, qword [rbp - 0x68]
inc esi
cmp esi, edi
jb 0x1402835d6
mov rcx, r12
mov rax, rcx
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140389d80
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret