Function at 0x140085c34
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 - 0xb8]
sub rsp, 0x1b8
mov rax, qword [0x140485e58]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rax, qword [rcx + 0x70]
mov rdi, rcx
mov r10, qword [rcx + 8]
mov r13d, edx
mov ebx, dword [rcx + 0x34]
sub r13d, r10d
mov qword [rsp + 0x68], rax
mov rax, qword [rcx + 0x38]
mov ecx, dword [rcx + 0x100]
mov rsi, qword [rdi + 0x60]
mov qword [rsp + 0x70], rax
mov eax, r13d
mov qword [rbp - 0x70], r8
mov r8d, dword [rdi + 0x1c]
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x68], r9
mov r9, rdx
mov edx, 1
mov dword [rsp + 0x60], ebx
shl edx, cl
mov ecx, r13d
sub ecx, dword [rdi + 0x1c]
sub eax, edx
cmp ecx, edx
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x40], r13d
cmova r8d, eax
mov qword [rbp - 0x80], rsi
mov eax, dword [rdi + 0x10c]
xor r15d, r15d
cmp dword [rdi + 0x28], r15d
cmovne r8d, dword [rdi + 0x1c]
lea ecx, [r15 + 4]
mov dword [rsp + 0x24], r8d
cmp eax, ecx
lea r12d, [r15 + 3]
mov qword [rsp + 0x48], r12
lea r8d, [r15 + 8]
cmovb ecx, eax
lea eax, [r15 + 1]
shl eax, cl
mov dword [rsp + 0x20], eax
cmp dword [rdi + 0x12c], r15d
jne 0x14008604c
mov esi, dword [rdi + 0x2c]
lea r14d, [r15 + 0x38]
mov eax, r13d
sub eax, esi
cmp eax, 0x180
jbe 0x140085ef2
lea eax, [rsi + 0x60]
mov dword [rsp + 0x58], eax
cmp esi, eax
jae 0x140085e1e
mov eax, r14d
mov qword [rsp + 0x28], rsi
mov r14d, dword [rsp + 0x58]
sub eax, ebx
mov r15d, eax
mov r11d, esi
movabs r12, 0xcf1bbcdcbf9b0000
mov r13, r10
mov rbx, qword [rdi + 0x60]
lea rdx, [r13 + 8]
add rdx, r11
lea rcx, [rsp + 0x58]
mov r8d, 8
call fcn.1400a38c0
mov rdx, qword [rsp + 0x58]
mov ecx, r15d
imul rdx, r12
mov r8d, 0xffffff0
xor rdx, rbx
mov rbx, qword [rsp + 0x68]
shr rdx, cl
mov eax, edx
shr rax, 4
and rax, r8
prefetcht0 byte [rbx + rax*4]
mov rcx, qword [rsp + 0x70]
prefetcht0 byte [rcx + rax]
mov r11, qword [rsp + 0x28]
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 r9, r8
lea r8, [r9 + rcx]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rsp + 0x28], r11
and ecx, 0xf
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [rbx + rax*4], esi
inc esi
cmp esi, r14d
jb 0x140085d56
mov r13d, dword [rsp + 0x40]
mov r14d, 0x38
mov r12, qword [rsp + 0x48]
xor r15d, r15d
mov r9, qword [rbp - 0x78]
mov r10, qword [rsp + 0x30]
lea r8d, [r14 - 0x30]
mov rax, qword [rdi + 0x70]
lea esi, [r13 - 0x20]
mov qword [rsp + 0x38], rax
lea rcx, [r9 + 1]
mov rax, qword [rdi + 0x38]
mov edx, ecx
sub edx, esi
mov qword [rsp + 0x78], rax
sub edx, r10d
mov eax, esi
inc edx
add rax, r10
cmp rax, rcx
cmova edx, r15d
cmp edx, r8d
cmova edx, r8d
lea eax, [rdx + rsi]
cmp esi, eax
jae 0x140085ef2
mov r12d, r14d
mov eax, edx
sub r12d, dword [rdi + 0x34]
movabs r13, 0xcf1bbcdcbf9b0000
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r15d, esi
mov rbx, qword [rdi + 0x60]
lea rdx, [r14 + r15]
mov r8d, 8
lea rcx, [rsp + 0x50]
call fcn.1400a38c0
mov rdx, qword [rsp + 0x50]
mov ecx, r12d
imul rdx, r13
xor rdx, rbx
shr rdx, cl
mov rcx, qword [rsp + 0x38]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov rcx, qword [rsp + 0x78]
prefetcht0 byte [rcx + rax]
mov rax, r15
inc r15
and eax, 7
sub qword [rsp + 0x28], 1
mov dword [rdi + rax*4 + 0x40], edx
jne 0x140085e7f
mov r13d, dword [rsp + 0x40]
mov r14d, 0x38
mov r12, qword [rsp + 0x48]
xor r15d, r15d
lea r8d, [r14 - 0x30]
mov rax, qword [rdi + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x40], rax
cmp esi, r13d
jae 0x140085fe1
mov r12d, r14d
movabs r15, 0xcf1bbcdcbf9b0000
sub r12d, dword [rdi + 0x34]
mov r14d, esi
mov rbx, qword [rdi + 0x60]
lea rdx, [rax + 8]
add rdx, r14
lea rcx, [rsp + 0x78]
mov r8d, 8
call fcn.1400a38c0
mov rdx, qword [rsp + 0x78]
mov ecx, r12d
mov r8, qword [rsp + 0x38]
mov r9d, 0xffffff0
imul rdx, r15
xor rdx, rbx
shr rdx, cl
mov eax, edx
shr rax, 4
and rax, r9
prefetcht0 byte [r8 + rax*4]
mov rcx, qword [rsp + 0x28]
prefetcht0 byte [rcx + rax]
mov rax, r14
and eax, 7
mov r11d, dword [rdi + rax*4 + 0x40]
mov r10d, r11d
mov dword [rdi + rax*4 + 0x40], edx
shr r10, 4
and r10, r9
lea r9, [rcx + r10]
movzx edx, byte [r9]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r14
not ecx
and ecx, 0xf
add edx, ecx
mov byte [r9], dl
mov eax, edx
add rax, r10
mov byte [r9 + rdx], r11b
mov dword [r8 + rax*4], esi
inc esi
mov rax, qword [rsp + 0x40]
cmp esi, r13d
jb 0x140085f2a
mov r12, qword [rsp + 0x48]
mov r14d, 0x38
xor r15d, r15d
lea r8d, [r14 - 0x30]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
add rdx, 8
mov ebx, r13d
add rdx, rbx
mov dword [rdi + 0x2c], r13d
call fcn.1400a38c0
sub r14d, dword [rsp + 0x60]
movabs rax, 0xcf1bbcdcbf9b0000
mov rdx, qword [rsp + 0x38]
mov cl, r14b
imul rdx, rax
xor rdx, qword [rbp - 0x80]
shr rdx, cl
mov rcx, qword [rsp + 0x68]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r8, qword [rsp + 0x70]
prefetcht0 byte [rax + r8]
and ebx, 7
mov r9d, dword [rdi + rbx*4 + 0x40]
mov dword [rdi + rbx*4 + 0x40], edx
jmp 0x140086085
mov rdx, r9
lea rcx, [rbp - 0x80]
call fcn.1400a38c0
mov r9, qword [rbp - 0x80]
mov ecx, 0x38
mov r8, qword [rsp + 0x70]
sub ecx, ebx
movabs rax, 0xcf1bbcdcbf9b0000
mov dword [rdi + 0x2c], r13d
imul r9, rax
xor r9, rsi
shr r9, cl
mov rcx, qword [rsp + 0x68]
add dword [rdi + 0x68], r9d
mov eax, r9d
shr rax, 4
mov rsi, r15
and eax, 0xffffff0
lea r14, [rcx + rax*4]
lea r11, [rax + r8]
movsx eax, r9b
movdqu xmm0, xmmword [r11]
movzx ebx, byte [r11]
and ebx, 0xf
movd xmm1, eax
mov ecx, ebx
neg ecx
punpcklbw xmm1, xmm1
and ecx, 0xf
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm0, xmm1
pmovmskb edx, xmm0
movzx eax, dx
shl ax, cl
mov cl, bl
movzx r10d, ax
movzx eax, dx
shr rax, cl
or r10, rax
jbe 0x14008612b
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x20]
mov r12d, dword [rsp + 0x24]
test r8d, r8d
je 0x140086126
bsf rcx, r10
add ecx, ebx
and ecx, 0xf
je 0x14008611d
mov ecx, dword [r14 + rcx*4]
cmp ecx, r12d
jb 0x140086126
prefetcht0 byte [rcx + rdx]
mov dword [rbp + rsi*4 - 0x60], ecx
inc rsi
dec r8d
lea rax, [r10 - 1]
and r10, rax
ja 0x1400860f6
mov r12, qword [rsp + 0x48]
movzx edx, byte [r11]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0xf
add edx, ecx
mov byte [r11], dl
mov byte [rdx + r11], r9b
mov eax, dword [rdi + 0x2c]
mov dword [r14 + rdx*4], eax
inc dword [rdi + 0x2c]
test rsi, rsi
je 0x1400861df
mov r14, qword [rbp - 0x78]
mov edi, dword [rbp + r15*4 - 0x60]
lea rdx, [r12 - 3]
add rdi, qword [rsp + 0x30]
lea rcx, [rsp + 0x24]
add rdx, rdi
mov r8d, 4
call fcn.1400a38c0
mov ebx, dword [rsp + 0x24]
lea rdx, [r14 - 3]
add rdx, r12
lea rcx, [rsp + 0x20]
mov r8d, 4
call fcn.1400a38c0
cmp ebx, dword [rsp + 0x20]
jne 0x1400861d7
mov rbx, qword [rbp - 0x70]
mov rdx, rdi
mov r8, rbx
mov rcx, r14
call fcn.14006bc6c
cmp rax, r12
jbe 0x1400861d7
mov rdx, qword [rbp - 0x68]
mov ecx, r13d
sub ecx, dword [rbp + r15*4 - 0x60]
mov r12, rax
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + r14]
cmp rcx, rbx
je 0x1400861df
inc r15
cmp r15, rsi
jb 0x14008615f
mov rax, r12
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400a2f00
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret