Function at 0x140067288
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b8
mov rax, qword [0x1400d6910]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov r15, qword [rcx + 8]
mov r11, rcx
mov rax, qword [rcx + 0x70]
mov r14, rdx
mov qword [rsp + 0x68], rax
mov r13d, r14d
mov rax, qword [rcx + 0x38]
sub r13d, r15d
mov qword [rsp + 0x70], rax
mov eax, dword [r11 + 0x18]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x58], r8
mov r8d, dword [rcx + 0x34]
lea rdx, [rax + r15]
mov rcx, qword [rcx + 0x10]
add rax, rcx
mov qword [rsp + 0x78], rcx
mov ecx, dword [r11 + 0x100]
mov qword [rsp + 0x80], rax
mov eax, r13d
sub eax, dword [r11 + 0x1c]
mov qword [rsp + 0x90], rdx
mov edx, 1
shl edx, cl
mov ecx, r13d
sub ecx, edx
mov qword [rsp + 0x98], r9
cmp eax, edx
mov dword [rsp + 0x60], r8d
mov eax, dword [r11 + 0x10c]
cmovbe ecx, dword [r11 + 0x1c]
xor edi, edi
cmp dword [r11 + 0x28], edi
mov rdx, qword [r11 + 0x60]
cmovne ecx, dword [r11 + 0x1c]
mov dword [rsp + 0x30], ecx
lea r12d, [rdi + 3]
lea ecx, [rdi + 4]
mov qword [rsp + 0x50], r15
cmp eax, ecx
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x48], r12
cmovb ecx, eax
lea eax, [rdi + 1]
shl eax, cl
mov dword [rsp + 0x64], eax
cmp dword [r11 + 0x12c], edi
jne 0x140067609
mov ebx, dword [r11 + 0x2c]
lea esi, [rdi + 0x18]
mov eax, r13d
sub eax, ebx
cmp eax, 0x180
jbe 0x1400674f8
lea eax, [rbx + 0x60]
mov dword [rsp + 0x28], eax
cmp ebx, eax
jae 0x140067458
mov r12d, dword [rsp + 0x28]
lea rax, [r15 + 8]
mov rdi, qword [rsp + 0x70]
mov r14d, esi
mov rsi, qword [rsp + 0x68]
sub r14d, r8d
add rax, rbx
mov ebp, ebx
mov r15, rax
mov eax, dword [r11 + 0x60]
mov rcx, r14
imul edx, dword [r15], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rax + rdi]
mov rax, rbp
and eax, 7
mov r10d, dword [r11 + rax*4 + 0x40]
mov r9d, r10d
mov dword [r11 + rax*4 + 0x40], edx
shr r9, 4
and r9d, 0xffffff0
lea r8, [r9 + rdi]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc rbp
not ecx
inc r15
and ecx, 0xf
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [rsi + rax*4], ebx
inc ebx
cmp ebx, r12d
jb 0x1400673c9
mov r14, qword [rsp + 0x40]
xor edi, edi
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
lea esi, [rdi + 0x18]
mov rcx, qword [r11 + 0x70]
lea ebx, [r13 - 0x20]
mov qword [rsp + 0x38], rcx
lea r9, [rbx + r15]
mov rcx, qword [r11 + 0x38]
lea rax, [r14 + 1]
mov qword [rsp + 0x28], rcx
mov r8d, ebx
cmp r9, rax
jbe 0x140067482
mov eax, edi
jmp 0x140067492
sub eax, r15d
mov ecx, 8
sub eax, ebx
inc eax
cmp eax, ecx
ja 0x140067494
mov ecx, eax
lea eax, [rcx + rbx]
cmp ebx, eax
jae 0x1400674f8
mov r12, qword [rsp + 0x38]
mov ebp, esi
sub ebp, dword [r11 + 0x34]
mov r14, qword [rsp + 0x28]
mov r10d, ecx
mov eax, dword [r11 + 0x60]
mov rcx, rbp
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [rax + r14]
mov rax, r8
inc r9
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r10, 1
jne 0x1400674ae
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rcx, qword [r11 + 0x38]
mov rax, qword [r11 + 0x70]
mov qword [rsp + 0x28], rcx
mov rcx, qword [r11 + 8]
cmp ebx, r13d
jae 0x1400675b8
mov rdi, qword [rsp + 0x28]
lea r15, [rcx + 8]
mov r14d, esi
mov ebp, ebx
sub r14d, dword [r11 + 0x34]
mov r12, rax
add r15, rbp
mov eax, dword [r11 + 0x60]
mov rcx, r14
imul edx, dword [r15], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [rax + rdi]
mov rax, rbp
and eax, 7
mov r10d, dword [r11 + rax*4 + 0x40]
mov r9d, r10d
mov dword [r11 + rax*4 + 0x40], edx
shr r9, 4
and r9d, 0xffffff0
lea r8, [r9 + rdi]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc rbp
not ecx
inc r15
and ecx, 0xf
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [r12 + rax*4], ebx
inc ebx
cmp ebx, r13d
jb 0x14006752a
mov r14, qword [rsp + 0x40]
xor edi, edi
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov eax, dword [rsp + 0x88]
mov ecx, esi
sub ecx, dword [rsp + 0x60]
mov dword [r11 + 0x2c], r13d
imul edx, dword [r13 + r15 + 8], 0x9e3779b1
mov r8d, r13d
xor rdx, rax
shr rdx, cl
mov rcx, qword [rsp + 0x68]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r10, qword [rsp + 0x70]
prefetcht0 byte [rax + r10]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x14006762e
imul r9d, dword [r14], 0x9e3779b1
mov ecx, 0x18
mov r10, qword [rsp + 0x70]
sub ecx, r8d
mov eax, edx
mov dword [r11 + 0x2c], r13d
xor r9, rax
shr r9, cl
mov rcx, qword [rsp + 0x68]
add dword [r11 + 0x68], r9d
mov eax, r9d
shr rax, 4
mov rsi, rdi
and eax, 0xffffff0
lea r15, [rcx + rax*4]
lea rbx, [rax + r10]
movsx eax, r9b
movdqu xmm0, xmmword [rbx]
movzx ebp, byte [rbx]
and ebp, 0xf
movd xmm1, eax
mov ecx, ebp
punpcklbw xmm1, xmm1
neg ecx
and ecx, 0xf
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb edx, xmm1
movzx eax, dx
shl ax, cl
mov cl, bpl
movzx r10d, ax
movzx eax, dx
shr rax, cl
or r10, rax
jbe 0x1400676ed
mov rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x64]
mov r12, qword [rsp + 0x78]
mov r14d, dword [rsp + 0x30]
test r8d, r8d
je 0x1400676e3
bsf rcx, r10
add ecx, ebp
and ecx, 0xf
mov ecx, dword [r15 + rcx*4]
je 0x1400676da
cmp ecx, r14d
jb 0x1400676e3
cmp ecx, dword [rsp + 0x20]
jb 0x1400676c8
prefetcht0 byte [rcx + rdx]
jmp 0x1400676cd
prefetcht0 byte [rcx + r12]
mov dword [rsp + rsi*4 + 0xa0], ecx
inc rsi
dec r8d
lea rax, [r10 - 1]
and r10, rax
ja 0x1400676a3
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
movzx edx, byte [rbx]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0xf
add edx, ecx
mov byte [rbx], dl
mov byte [rdx + rbx], r9b
mov ecx, dword [r11 + 0x2c]
lea eax, [rcx + 1]
mov dword [r11 + 0x2c], eax
mov dword [r15 + rdx*4], ecx
test rsi, rsi
je 0x1400677f8
mov r8, qword [rsp + 0x58]
mov ebp, dword [rsp + rdi*4 + 0xa0]
mov ecx, ebp
cmp ebp, dword [rsp + 0x20]
jb 0x140067756
mov rdx, qword [rsp + 0x50]
mov eax, dword [r12 + r14 - 3]
add rdx, rcx
cmp dword [rdx + r12 - 3], eax
jne 0x1400677ec
mov rcx, r14
call fcn.14009ec70
jmp 0x1400677c8
mov rdx, qword [rsp + 0x78]
mov eax, dword [r14]
cmp dword [rbp + rdx], eax
jne 0x1400677ec
mov r8, qword [rsp + 0x58]
lea r11, [rdx + 4]
add r11, rcx
lea r15, [r14 + 4]
mov rcx, qword [rsp + 0x80]
mov rax, r15
sub rax, r11
mov rdx, r11
add rcx, rax
cmp rcx, r8
cmovb r8, rcx
mov rcx, r15
call fcn.14009ec70
mov r8, qword [rsp + 0x58]
mov rbx, rax
add rax, r11
cmp rax, qword [rsp + 0x80]
jne 0x1400677c4
mov rdx, qword [rsp + 0x90]
lea rcx, [rbx + r15]
call fcn.14009ec70
add rbx, rax
lea rax, [rbx + 4]
cmp rax, r12
jbe 0x1400677ec
mov rdx, qword [rsp + 0x98]
mov ecx, r13d
sub ecx, ebp
mov r12, rax
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + r14]
cmp rcx, r8
je 0x1400677f8
inc rdi
cmp rdi, rsi
jb 0x140067725
mov rax, r12
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14001bf00
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret