Function at 0x1402875b8
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 rsi, rcx
mov qword [rbp - 0x60], rax
mov r13d, edx
mov rax, qword [rcx + 0x38]
mov r15, rdx
mov qword [rbp - 0x58], rax
mov eax, dword [rcx + 0x34]
mov dword [rsp + 0x38], eax
mov rax, qword [rcx + 8]
mov ecx, dword [rcx + 0x18]
sub r13d, eax
mov dword [rsp + 0x54], ecx
add rcx, rax
mov qword [rbp - 0x28], rcx
mov ecx, dword [rsi + 0x100]
mov qword [rbp - 0x78], rax
mov eax, r13d
mov qword [rbp - 0x80], rdx
mov edx, 1
shl edx, cl
mov ecx, r13d
sub ecx, dword [rsi + 0x1c]
sub eax, edx
cmp ecx, edx
mov qword [rbp - 0x48], r8
mov r8d, dword [rsi + 0x1c]
cmova r8d, eax
mov qword [rbp - 0x40], r9
mov eax, dword [rsi + 0x10c]
xor r14d, r14d
cmp dword [rsi + 0x28], r14d
mov dword [rsp + 0x3c], r13d
cmovne r8d, dword [rsi + 0x1c]
lea edx, [r14 + 4]
mov dword [rsp + 0x50], r8d
cmp eax, edx
lea r12d, [r14 + 3]
mov ecx, edx
mov qword [rsp + 0x70], r12
cmovb ecx, eax
mov r8d, edx
mov rax, qword [rsi + 0x60]
mov qword [rbp - 0x68], rax
lea eax, [rdx - 3]
shl eax, cl
mov rdx, r15
mov dword [rsp + 0x30], eax
mov rax, qword [rsi + 0xf8]
mov qword [rbp - 0x70], rax
mov rcx, qword [rax + 0x38]
mov rdi, qword [rax + 0x70]
mov ebx, dword [rax + 0x34]
mov qword [rbp - 0x50], rcx
lea rcx, [rsp + 0x78]
call fcn.14038a820
imul eax, dword [rsp + 0x78], 0x9e3779b1
lea ecx, [r14 + 0x18]
sub ecx, ebx
shr rax, cl
mov qword [rbp - 0x10], rax
shr rax, 4
and eax, 0xffffff0
mov qword [rbp - 0x38], rax
lea rcx, [rdi + rax*4]
mov qword [rbp - 0x30], rcx
prefetcht0 byte [rcx]
mov rcx, qword [rbp - 0x50]
prefetcht0 byte [rax + rcx]
cmp dword [rsi + 0x12c], r14d
jne 0x140287a31
mov r9, qword [rsi + 8]
mov r13d, r15d
mov edi, dword [rsi + 0x2c]
sub r13d, r9d
mov eax, r13d
mov qword [rsp + 0x48], r9
sub eax, edi
mov dword [rsp + 0x34], r13d
cmp eax, 0x180
jbe 0x1402878e4
mov r10, qword [rsi + 0x70]
lea eax, [rdi + 0x60]
mov r8d, dword [rsi + 0x34]
mov qword [rsp + 0x60], r10
mov r10, qword [rsi + 0x38]
mov qword [rsp + 0x68], r10
mov dword [rsp + 0x40], eax
cmp edi, eax
jae 0x140287826
lea eax, [r14 + 0x18]
mov r13d, edi
mov r14, qword [rsp + 0x60]
sub eax, r8d
mov qword [rsp + 0x58], rax
mov r12, r9
mov r15, r10
mov rbx, qword [rsi + 0x60]
lea rdx, [r12 + 8]
add rdx, r13
lea rcx, [rsp + 0x7c]
mov r8d, 4
call fcn.14038a820
imul edx, dword [rsp + 0x7c], 0x9e3779b1
mov rcx, qword [rsp + 0x58]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov ecx, 0xffffff0
mov eax, edx
shr rax, 4
and rax, rcx
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [rax + r15]
mov rax, r13
and eax, 7
mov r10d, dword [rsi + rax*4 + 0x40]
mov r9d, r10d
mov dword [rsi + rax*4 + 0x40], edx
shr r9, 4
and r9, rcx
lea r8, [r9 + r15]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r13
not ecx
and ecx, 0xf
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [r14 + rax*4], edi
inc edi
cmp edi, dword [rsp + 0x40]
jb 0x14028775f
mov rax, qword [rsi + 0x70]
xor r14d, r14d
mov r8d, dword [rsi + 0x34]
mov r15, qword [rbp - 0x80]
mov r12, qword [rsp + 0x70]
mov r13d, dword [rsp + 0x34]
mov r9, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov rax, qword [rsi + 0x38]
mov qword [rsp + 0x68], rax
lea edi, [r13 - 0x20]
lea rcx, [r15 + 1]
mov eax, edi
add rax, r9
mov edx, ecx
sub edx, r9d
sub edx, edi
inc edx
cmp rax, rcx
mov eax, 8
cmova edx, r14d
cmp edx, eax
cmova edx, eax
lea eax, [rdx + rdi]
cmp edi, eax
jae 0x1402878e4
mov r14, qword [rsp + 0x48]
mov eax, 0x18
mov r15, qword [rsp + 0x60]
sub eax, r8d
mov r13, qword [rsp + 0x68]
mov qword [rbp - 0x20], rax
mov eax, edx
mov qword [rsp + 0x58], rax
mov r12d, edi
mov rbx, qword [rsi + 0x60]
lea rdx, [r12 + r14]
mov r8d, 4
lea rcx, [rsp + 0x40]
call fcn.14038a820
imul edx, dword [rsp + 0x40], 0x9e3779b1
mov rcx, qword [rbp - 0x20]
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 + r13]
mov rax, r12
inc r12
and eax, 7
sub qword [rsp + 0x58], 1
mov dword [rsi + rax*4 + 0x40], edx
jne 0x14028787d
mov r15, qword [rbp - 0x80]
xor r14d, r14d
mov r12, qword [rsp + 0x70]
mov r13d, dword [rsp + 0x34]
mov rax, qword [rsi + 0x70]
mov rcx, qword [rsi + 8]
mov qword [rbp - 0x20], rax
mov rax, qword [rsi + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rcx
cmp edi, r13d
jae 0x1402879ca
mov r15, qword [rbp - 0x20]
mov eax, 0x18
sub eax, dword [rsi + 0x34]
mov r14, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov r12d, edi
mov rbx, qword [rsi + 0x60]
lea rdx, [rcx + 8]
add rdx, r12
lea rcx, [rsp + 0x34]
mov r8d, 4
call fcn.14038a820
imul edx, dword [rsp + 0x34], 0x9e3779b1
mov rcx, qword [rsp + 0x68]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov ecx, 0xffffff0
mov eax, edx
shr rax, 4
and rax, rcx
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [rax + r14]
mov rax, r12
and eax, 7
mov r10d, dword [rsi + rax*4 + 0x40]
mov r9d, r10d
mov dword [rsi + rax*4 + 0x40], edx
shr r9, 4
and r9, rcx
lea r8, [r14 + r9]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r12
not ecx
and ecx, 0xf
add edx, ecx
mov rcx, qword [rsp + 0x48]
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [r15 + rax*4], edi
inc edi
cmp edi, r13d
jb 0x140287920
mov r15, qword [rbp - 0x80]
xor r14d, r14d
mov r12, qword [rsp + 0x70]
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x60]
mov ebx, dword [rsp + 0x3c]
add rdx, 8
add rdx, rbx
mov dword [rsi + 0x2c], r13d
mov r8d, 4
call fcn.14038a820
mov eax, dword [rbp - 0x68]
mov ecx, 0x18
sub ecx, dword [rsp + 0x38]
imul edx, dword [rsp + 0x60], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov rcx, qword [rbp - 0x60]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r9, qword [rbp - 0x58]
prefetcht0 byte [rax + r9]
and ebx, 7
mov r8d, dword [rsi + rbx*4 + 0x40]
mov dword [rsi + rbx*4 + 0x40], edx
jmp 0x140287a6b
mov r8d, 4
lea rcx, [rsp + 0x48]
mov rdx, r15
call fcn.14038a820
imul r8d, dword [rsp + 0x48], 0x9e3779b1
mov ecx, 0x18
sub ecx, dword [rsp + 0x38]
mov eax, dword [rbp - 0x68]
mov r9, qword [rbp - 0x58]
mov dword [rsi + 0x2c], r13d
xor r8, rax
shr r8, cl
mov rcx, qword [rbp - 0x60]
add dword [rsi + 0x68], r8d
mov eax, r8d
shr rax, 4
mov rdi, r14
and eax, 0xffffff0
mov r13, r14
lea rbx, [rcx + rax*4]
lea r10, [rax + r9]
movsx eax, r8b
movdqu xmm0, xmmword [r10]
movzx r11d, byte [r10]
and r11d, 0xf
movd xmm1, eax
mov ecx, r11d
punpcklbw xmm1, xmm1
neg ecx
and ecx, 0xf
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
mov dword [rbp - 0x20], eax
shl ax, cl
mov cl, r11b
movzx edx, ax
movzx eax, word [rbp - 0x20]
shr rax, cl
or rdx, rax
jbe 0x140287b1c
mov r9d, dword [rsp + 0x30]
mov r12d, dword [rsp + 0x50]
test r9d, r9d
je 0x140287b12
bsf rcx, rdx
add ecx, r11d
and ecx, 0xf
je 0x140287b09
mov ecx, dword [rbx + rcx*4]
cmp ecx, r12d
jb 0x140287b12
mov eax, ecx
add rax, qword [rbp - 0x78]
prefetcht0 byte [rax]
mov dword [rbp + rdi*4], ecx
inc rdi
dec r9d
lea rax, [rdx - 1]
and rdx, rax
ja 0x140287add
mov r12, qword [rsp + 0x70]
mov dword [rsp + 0x30], r9d
movzx edx, byte [r10]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0xf
add edx, ecx
mov byte [r10], dl
mov byte [rdx + r10], r8b
mov eax, dword [rsi + 0x2c]
mov dword [rbx + rdx*4], eax
inc dword [rsi + 0x2c]
test rdi, rdi
je 0x140287bd1
mov r14, qword [rbp - 0x48]
mov esi, dword [rbp + r13*4]
lea rdx, [r12 - 3]
add rsi, qword [rbp - 0x78]
lea rcx, [rsp + 0x50]
add rdx, rsi
mov r8d, 4
call fcn.14038a820
mov ebx, dword [rsp + 0x50]
lea rdx, [r15 - 3]
add rdx, r12
lea rcx, [rsp + 0x38]
mov r8d, 4
call fcn.14038a820
cmp ebx, dword [rsp + 0x38]
jne 0x140287bc6
mov r8, r14
mov rdx, rsi
mov rcx, r15
call fcn.14027a748
mov rcx, rax
cmp rax, r12
jbe 0x140287bc6
mov rdx, qword [rbp - 0x40]
mov r12, rax
mov eax, dword [rsp + 0x3c]
sub eax, dword [rbp + r13*4]
add eax, 3
mov qword [rdx], rax
lea rax, [rcx + r15]
cmp rax, r14
je 0x140287bce
inc r13
cmp r13, rdi
jb 0x140287b4f
xor r14d, r14d
mov r11, qword [rbp - 0x70]
mov rdi, r14
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x50]
mov rax, qword [r11]
mov r9, qword [r11 + 8]
movdqu xmm0, xmmword [rcx + rdx]
movzx r10d, byte [rcx + rdx]
mov r13d, r9d
sub r13d, eax
mov qword [rbp - 0x70], rax
movsx eax, byte [rbp - 0x10]
and r10d, 0xf
add r13d, dword [rsp + 0x54]
mov ecx, r10d
neg ecx
mov qword [rbp - 0x20], r9
and ecx, 0xf
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [rbp - 0x10], eax
shl ax, cl
mov cl, r10b
movzx edx, ax
movzx eax, word [rbp - 0x10]
shr rax, cl
or rdx, rax
jbe 0x140287d21
mov r8d, dword [rsp + 0x30]
mov rbx, qword [rbp - 0x30]
test r8d, r8d
je 0x140287c84
bsf rcx, rdx
add ecx, r10d
and ecx, 0xf
je 0x140287c7b
mov ecx, dword [rbx + rcx*4]
cmp ecx, dword [r11 + 0x18]
jb 0x140287c84
prefetcht0 byte [rcx + r9]
mov dword [rbp + rdi*4], ecx
inc rdi
dec r8d
lea rax, [rdx - 1]
and rdx, rax
ja 0x140287c52
test rdi, rdi
je 0x140287d21
mov esi, dword [rbp + r14*4]
lea rcx, [rsp + 0x54]
add rsi, r9
mov r8d, 4
mov rdx, rsi
call fcn.14038a820
mov ebx, dword [rsp + 0x54]
lea rcx, [rsp + 0x30]
mov r8d, 4
mov rdx, r15
call fcn.14038a820
cmp ebx, dword [rsp + 0x30]
jne 0x140287d11
mov rax, qword [rbp - 0x28]
lea rdx, [rsi + 4]
mov rbx, qword [rbp - 0x48]
lea rcx, [r15 + 4]
mov r9, qword [rbp - 0x70]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.1402a3a7c
add rax, 4
cmp rax, r12
jbe 0x140287d11
mov ecx, dword [rsp + 0x3c]
mov r12, rax
sub ecx, dword [rbp + r14*4]
mov rdx, qword [rbp - 0x40]
sub ecx, r13d
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + r15]
cmp rcx, rbx
je 0x140287d21
mov r9, qword [rbp - 0x20]
inc r14
cmp r14, rdi
jb 0x140287c8d
mov rax, r12
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