Function at 0x140067820
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c8
mov rax, qword [0x1400d6910]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r14, qword [rcx + 8]
mov r11, rcx
mov rax, qword [rcx + 0x38]
mov r15, rdx
mov r10, qword [rcx + 0x70]
mov r13d, r15d
mov qword [rsp + 0x68], rax
sub r13d, r14d
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 + r14]
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 + 0x88], rdx
mov edx, 1
shl edx, cl
mov ecx, r13d
sub ecx, edx
mov qword [rsp + 0x90], r9
cmp eax, edx
mov qword [rsp + 0x70], r10
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 + 5]
mov dword [rsp + 0x60], r8d
cmp eax, ecx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x98], rdx
cmovb ecx, eax
mov qword [rsp + 0x48], r12
lea eax, [rdi + 1]
shl eax, cl
mov dword [rsp + 0x64], eax
cmp dword [r11 + 0x12c], edi
jne 0x140067bba
mov ebx, dword [r11 + 0x2c]
lea esi, [rdi + 0x18]
mov eax, r13d
sub eax, ebx
cmp eax, 0x180
jbe 0x140067a99
lea eax, [rbx + 0x60]
mov dword [rsp + 0x28], eax
cmp ebx, eax
jae 0x1400679f3
mov r12d, dword [rsp + 0x28]
lea rax, [r14 + 8]
mov rdi, qword [rsp + 0x68]
mov r15d, esi
sub r15d, r8d
mov ebp, ebx
add rax, rbx
mov rsi, r10
mov r14, rax
mov eax, dword [r11 + 0x60]
mov rcx, r15
imul edx, dword [r14], 0x9e3779b1
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 + 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, 3
and r9d, 0x1fffffe0
lea r8, [r9 + rdi]
movzx edx, byte [r8]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
inc rbp
not ecx
inc r14
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], ebx
inc ebx
cmp ebx, r12d
jb 0x14006795f
mov r15, qword [rsp + 0x40]
xor edi, edi
mov r12, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
lea esi, [rdi + 0x18]
mov rcx, qword [r11 + 0x70]
lea ebx, [r13 - 0x20]
mov qword [rsp + 0x38], rcx
lea r9, [rbx + r14]
mov rcx, qword [r11 + 0x38]
lea rax, [r15 + 1]
mov qword [rsp + 0x28], rcx
mov r8d, ebx
cmp r9, rax
jbe 0x140067a1d
mov eax, edi
jmp 0x140067a2d
sub eax, r14d
mov ecx, 8
sub eax, ebx
inc eax
cmp eax, ecx
ja 0x140067a2f
mov ecx, eax
lea eax, [rcx + rbx]
cmp ebx, eax
jae 0x140067a99
mov r12, qword [rsp + 0x38]
mov ebp, esi
sub ebp, dword [r11 + 0x34]
mov r15, 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, 3
and eax, 0x1fffffe0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
prefetcht0 byte [rax + r15]
mov rax, r8
inc r9
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r10, 1
jne 0x140067a49
mov r15, 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 0x140067b63
mov rdi, qword [rsp + 0x28]
lea r14, [rcx + 8]
mov r15d, esi
mov ebp, ebx
sub r15d, dword [r11 + 0x34]
mov r12, rax
add r14, rbp
mov eax, dword [r11 + 0x60]
mov rcx, r15
imul edx, dword [r14], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
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, 3
and r9d, 0x1fffffe0
lea r8, [r9 + rdi]
movzx edx, byte [r8]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
inc rbp
not ecx
inc r14
and ecx, 0x1f
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 0x140067acb
mov r15, qword [rsp + 0x40]
xor edi, edi
mov r12, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov eax, dword [rsp + 0x98]
mov ecx, esi
sub ecx, dword [rsp + 0x60]
mov r10, qword [rsp + 0x70]
mov dword [r11 + 0x2c], r13d
imul edx, dword [r13 + r14 + 8], 0x9e3779b1
mov r8d, r13d
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r10 + rax*4]
prefetcht0 byte [r10 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x68]
prefetcht0 byte [rcx + rax]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x140067bda
imul r9d, dword [r15], 0x9e3779b1
mov ecx, 0x18
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, 3
xorps xmm0, xmm0
and eax, 0x1fffffe0
mov rsi, rdi
movups xmmword [rsp + 0x98], xmm0
lea rbx, [rax + rcx]
mov rcx, rdi
movzx ebp, byte [rbx]
lea r14, [r10 + rax*4]
movsx eax, r9b
mov r10d, ebp
and r10d, 0x1f
mov rdx, rbx
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [rsp + rcx*4 + 0x98], eax
inc rcx
cmp rcx, 2
jl 0x140067c25
mov edx, dword [rsp + 0x9c]
mov ecx, r10d
neg ecx
shl edx, 0x10
or edx, dword [rsp + 0x98]
and ecx, 0x1f
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, r10d
shr rax, cl
or r8, rax
je 0x140067cd1
mov rdx, qword [rsp + 0x50]
mov r12d, dword [rsp + 0x64]
mov r15, qword [rsp + 0x78]
mov ebp, dword [rsp + 0x30]
test r12d, r12d
je 0x140067cc4
bsf rcx, r8
add ecx, r10d
and ecx, 0x1f
mov ecx, dword [r14 + rcx*4]
je 0x140067cbb
cmp ecx, ebp
jb 0x140067cc4
cmp ecx, dword [rsp + 0x20]
jb 0x140067ca9
prefetcht0 byte [rcx + rdx]
jmp 0x140067cae
prefetcht0 byte [rcx + r15]
mov dword [rsp + rsi*4 + 0xb0], ecx
inc rsi
dec r12d
lea rax, [r8 - 1]
and r8, rax
ja 0x140067c84
mov r15, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
movzx ebp, byte [rbx]
lea edx, [rbp - 1]
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0x1f
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 [r14 + rdx*4], ecx
test rsi, rsi
je 0x140067dda
mov r8, qword [rsp + 0x58]
mov ebp, dword [rsp + rdi*4 + 0xb0]
mov ecx, ebp
cmp ebp, dword [rsp + 0x20]
jb 0x140067d38
mov rdx, qword [rsp + 0x50]
mov eax, dword [r12 + r15 - 3]
add rdx, rcx
cmp dword [rdx + r12 - 3], eax
jne 0x140067dce
mov rcx, r15
call fcn.14009ec70
jmp 0x140067daa
mov rdx, qword [rsp + 0x78]
mov eax, dword [r15]
cmp dword [rbp + rdx], eax
jne 0x140067dce
mov r8, qword [rsp + 0x58]
lea r11, [rdx + 4]
add r11, rcx
lea r14, [r15 + 4]
mov rcx, qword [rsp + 0x80]
mov rax, r14
sub rax, r11
mov rdx, r11
add rcx, rax
cmp rcx, r8
cmovb r8, rcx
mov rcx, r14
call fcn.14009ec70
mov r8, qword [rsp + 0x58]
mov rbx, rax
add rax, r11
cmp rax, qword [rsp + 0x80]
jne 0x140067da6
mov rdx, qword [rsp + 0x88]
lea rcx, [rbx + r14]
call fcn.14009ec70
add rbx, rax
lea rax, [rbx + 4]
cmp rax, r12
jbe 0x140067dce
mov rdx, qword [rsp + 0x90]
mov ecx, r13d
sub ecx, ebp
mov r12, rax
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + r15]
cmp rcx, r8
je 0x140067dda
inc rdi
cmp rdi, rsi
jb 0x140067d07
mov rax, r12
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14001bf00
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret