Function at 0x140066af0
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 - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x1400d6910]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r14, qword [rcx + 8]
mov r11, rcx
mov eax, dword [rcx + 0x18]
mov r13, rdx
mov rdi, qword [rcx + 0x38]
mov r15d, edx
mov dword [rsp + 0x54], eax
sub r15d, r14d
add rax, r14
mov qword [rsp + 0x38], rdx
mov r10, qword [r13]
mov edx, 1
mov qword [rbp - 0x68], rax
mov eax, r15d
sub eax, dword [r11 + 0x1c]
mov qword [rbp - 0x78], r9
mov r9, qword [rcx + 0x70]
mov qword [rsp + 0x68], r8
mov r8d, dword [rcx + 0x34]
mov ecx, dword [rcx + 0x100]
shl edx, cl
mov ecx, r15d
sub ecx, edx
mov qword [rsp + 0x60], r9
cmp eax, edx
mov qword [rbp - 0x60], rdi
mov eax, dword [r11 + 0x10c]
cmovbe ecx, dword [r11 + 0x1c]
xor ebx, ebx
cmp dword [r11 + 0x28], ebx
mov rdx, qword [r11 + 0xf8]
cmovne ecx, dword [r11 + 0x1c]
mov dword [rsp + 0x50], ecx
lea esi, [rbx + 0x38]
lea ecx, [rbx + 6]
mov qword [rbp - 0x80], rdx
cmp eax, ecx
mov dword [rsp + 0x70], r8d
lea r12d, [rbx + 3]
mov qword [rsp + 0x58], r14
cmovb ecx, eax
mov dword [rsp + 0x34], r15d
mov rax, qword [r11 + 0x60]
mov qword [rsp + 0x28], rax
lea eax, [rbx + 1]
shl eax, cl
mov ecx, esi
sub ecx, dword [rdx + 0x34]
mov rdx, qword [rdx + 0x38]
mov dword [rsp + 0x30], eax
movabs rax, 0xcf1bbcdcbf9b0000
imul r10, rax
mov qword [rsp + 0x20], r12
mov rax, r10
mov qword [rsp + 0x78], r10
shr rax, cl
mov ecx, eax
mov qword [rsp + 0x78], rax
mov rax, qword [rbp - 0x80]
shr rcx, 2
and ecx, 0x3fffffc0
add rdx, rcx
mov rax, qword [rax + 0x70]
mov qword [rbp - 0x50], rdx
lea rax, [rax + rcx*4]
mov qword [rbp - 0x70], rax
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
prefetcht0 byte [rdx]
prefetcht0 byte [rdx + 0x20]
cmp dword [r11 + 0x12c], ebx
jne 0x140066f1c
mov edi, dword [r11 + 0x2c]
mov eax, r15d
sub eax, edi
cmp eax, 0x180
jbe 0x140066de4
lea eax, [rdi + 0x60]
mov dword [rsp + 0x48], eax
cmp edi, eax
jae 0x140066d27
mov rbx, qword [rbp - 0x60]
lea r12, [r14 + 8]
mov r15d, dword [rsp + 0x48]
mov eax, esi
sub eax, r8d
mov r13d, edi
add r12, rdi
mov r14d, eax
mov rsi, r9
mov rdx, qword [r12]
movabs rax, 0xcf1bbcdcbf9b0000
imul rdx, rax
mov ecx, r14d
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov ecx, 0x3fffffc0
mov eax, edx
shr rax, 2
and rax, rcx
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [rax + rbx]
prefetcht0 byte [rax + rbx + 0x20]
mov rax, r13
and eax, 7
mov r10d, dword [r11 + rax*4 + 0x40]
mov r9d, r10d
mov dword [r11 + rax*4 + 0x40], edx
shr r9, 2
and r9, rcx
lea r8, [r9 + rbx]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r13
not ecx
inc r12
and ecx, 0x3f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [rsi + rax*4], edi
inc edi
cmp edi, r15d
jb 0x140066c7e
mov r15d, dword [rsp + 0x34]
xor ebx, ebx
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x38]
mov r14, qword [rsp + 0x58]
lea esi, [rbx + 0x38]
mov rcx, qword [r11 + 0x70]
lea edi, [r15 - 0x20]
mov rdx, qword [r11 + 0x38]
lea r10, [rdi + r14]
lea rax, [r13 + 1]
mov qword [rsp + 0x48], rcx
mov r9d, edi
cmp r10, rax
jbe 0x140066d4c
mov eax, ebx
jmp 0x140066d5c
sub eax, r14d
mov ecx, 8
sub eax, edi
inc eax
cmp eax, ecx
ja 0x140066d5e
mov ecx, eax
lea eax, [rcx + rdi]
cmp edi, eax
jae 0x140066ddf
mov r13, qword [rsp + 0x48]
mov r8d, esi
sub r8d, dword [r11 + 0x34]
mov r15, rdx
mov r12d, ecx
movabs r14, 0xcf1bbcdcbf9b0000
mov rdx, qword [r10]
mov ecx, r8d
imul rdx, r14
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [r15 + rax]
prefetcht0 byte [r15 + rax + 0x20]
mov rax, r9
inc r10
and eax, 7
inc r9
mov dword [r11 + rax*4 + 0x40], edx
sub r12, 1
jne 0x140066d81
mov r15d, dword [rsp + 0x34]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x38]
mov r14, qword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
mov rax, qword [r11 + 0x70]
mov rcx, qword [r11 + 0x38]
mov qword [rsp + 0x48], rax
mov rax, qword [r11 + 8]
cmp edi, r15d
jae 0x140066ec0
mov rbx, qword [rsp + 0x48]
lea r12, [rax + 8]
mov r13d, esi
mov r14d, edi
sub r13d, dword [r11 + 0x34]
mov rsi, rcx
add r12, r14
mov rdx, qword [r12]
movabs rax, 0xcf1bbcdcbf9b0000
imul rdx, rax
mov ecx, r13d
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov ecx, 0x3fffffc0
mov eax, edx
shr rax, 2
and rax, rcx
prefetcht0 byte [rbx + rax*4]
prefetcht0 byte [rbx + rax*4 + 0x40]
prefetcht0 byte [rsi + rax]
prefetcht0 byte [rsi + rax + 0x20]
mov rax, r14
and eax, 7
mov r10d, dword [r11 + rax*4 + 0x40]
mov r9d, r10d
mov dword [r11 + rax*4 + 0x40], edx
shr r9, 2
and r9, rcx
lea r8, [r9 + rsi]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r14
not ecx
inc r12
and ecx, 0x3f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [rbx + rax*4], edi
inc edi
cmp edi, r15d
jb 0x140066e17
mov r12, qword [rsp + 0x20]
xor ebx, ebx
mov r13, qword [rsp + 0x38]
mov r14, qword [rsp + 0x58]
mov r9, qword [rsp + 0x60]
lea esi, [rbx + 0x38]
sub esi, dword [rsp + 0x70]
movabs rax, 0xcf1bbcdcbf9b0000
mov r8d, r15d
mov cl, sil
mov dword [r11 + 0x2c], r15d
mov rdx, qword [r8 + r14 + 8]
imul rdx, rax
xor rdx, qword [rsp + 0x28]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov rdi, qword [rbp - 0x60]
prefetcht0 byte [rax + rdi]
prefetcht0 byte [rax + rdi + 0x20]
and r8d, 7
mov r10d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x140066f2e
xor r10, qword [rsp + 0x28]
sub esi, r8d
mov cl, sil
mov dword [r11 + 0x2c], r15d
shr r10, cl
add dword [r11 + 0x68], r10d
mov eax, r10d
shr rax, 2
xorps xmm0, xmm0
and eax, 0x3fffffc0
mov rsi, rbx
movups xmmword [rbp - 0x60], xmm0
lea rcx, [r9 + rax*4]
lea r14, [rax + rdi]
mov qword [rsp + 0x28], rcx
movzx r9d, byte [r14]
mov rdi, rbx
movsx eax, r10b
mov rcx, rbx
mov rdx, r14
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 - 0x60], eax
inc rcx
cmp rcx, 4
jl 0x140066f77
movsxd rax, dword [rbp - 0x58]
mov edx, r9d
movsxd r8, dword [rbp - 0x54]
and edx, 0x3f
shl r8, 0x10
mov ecx, edx
or r8, rax
neg ecx
movsxd rax, dword [rbp - 0x5c]
and ecx, 0x3f
shl r8, 0x10
or r8, rax
movsxd rax, dword [rbp - 0x60]
shl r8, 0x10
or r8, rax
mov r9, r8
shl r9, cl
mov ecx, edx
shr r8, cl
or r9, r8
movzx r8d, byte [r14]
je 0x140067030
mov edx, dword [rsp + 0x30]
mov r13, qword [rsp + 0x28]
mov r12d, dword [rsp + 0x50]
test edx, edx
je 0x140067022
bsf rcx, r9
add ecx, r8d
and ecx, 0x3f
je 0x140067019
mov ecx, dword [r13 + rcx*4]
cmp ecx, r12d
jb 0x140067022
mov eax, ecx
add rax, qword [rsp + 0x58]
prefetcht0 byte [rax]
mov dword [rbp + rdi*4 - 0x40], ecx
inc rdi
dec edx
lea rax, [r9 - 1]
and r9, rax
ja 0x140066fec
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x38]
mov dword [rsp + 0x30], edx
lea edx, [r8 - 1]
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0x3f
add edx, ecx
mov byte [r14], dl
mov byte [rdx + r14], r10b
mov ecx, dword [r11 + 0x2c]
lea eax, [rcx + 1]
mov dword [r11 + 0x2c], eax
mov rax, qword [rsp + 0x28]
mov dword [rax + rdx*4], ecx
test rdi, rdi
je 0x1400670ba
mov r11, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x58]
mov r14, qword [rbp - 0x78]
mov edx, dword [rbp + rsi*4 - 0x40]
mov eax, dword [r12 + r13 - 3]
add rdx, rbx
cmp dword [rdx + r12 - 3], eax
jne 0x1400670b0
mov r8, r11
mov rcx, r13
call fcn.14009ec70
mov r8, rax
cmp rax, r12
jbe 0x1400670b0
mov r12, rax
mov eax, r15d
sub eax, dword [rbp + rsi*4 - 0x40]
add eax, 3
mov qword [r14], rax
lea rax, [r12 + r13]
cmp rax, r11
je 0x1400670b8
inc rsi
cmp rsi, rdi
jb 0x140067071
xor ebx, ebx
mov rax, qword [rbp - 0x80]
xorps xmm0, xmm0
mov rcx, qword [rsp + 0x78]
mov rsi, rbx
mov rdx, qword [rbp - 0x50]
movups xmmword [rbp - 0x50], xmm0
mov r10, qword [rax + 8]
mov rdi, qword [rax]
mov r14d, r10d
movzx r11d, byte [rdx]
sub r14d, edi
add r14d, dword [rsp + 0x54]
movsx eax, cl
mov rcx, rbx
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], rdi
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 - 0x50], eax
inc rcx
cmp rcx, 4
jl 0x140067108
movsxd rax, dword [rbp - 0x48]
mov edx, r11d
movsxd r8, dword [rbp - 0x44]
and edx, 0x3f
shl r8, 0x10
mov ecx, edx
or r8, rax
neg ecx
movsxd rax, dword [rbp - 0x4c]
and ecx, 0x3f
shl r8, 0x10
or r8, rax
movsxd rax, dword [rbp - 0x50]
shl r8, 0x10
or r8, rax
mov r9, r8
shl r9, cl
mov ecx, edx
shr r8, cl
or r9, r8
je 0x140067260
mov edx, dword [rsp + 0x30]
mov r15, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
test edx, edx
je 0x1400671ac
bsf rcx, r9
add ecx, r11d
and ecx, 0x3f
je 0x1400671a3
mov ecx, dword [r8 + rcx*4]
cmp ecx, dword [r15 + 0x18]
jb 0x1400671ac
prefetcht0 byte [rcx + r10]
mov dword [rbp + rsi*4 - 0x40], ecx
inc rsi
dec edx
lea rax, [r9 - 1]
and r9, rax
ja 0x14006717b
mov r15d, dword [rsp + 0x34]
test rsi, rsi
je 0x140067260
mov r11d, dword [rbp + rbx*4 - 0x40]
mov eax, dword [r13]
add r11, r10
cmp dword [r11], eax
jne 0x140067254
mov r8, qword [rsp + 0x68]
add r13, 4
add r11, 4
mov rcx, r13
sub rcx, r11
mov rdx, r11
add rcx, rdi
cmp rcx, r8
cmovb r8, rcx
mov rcx, r13
call fcn.14009ec70
mov rdi, rax
add rax, r11
mov r11, qword [rsp + 0x68]
cmp rax, qword [rsp + 0x20]
jne 0x14006721c
mov rdx, qword [rbp - 0x68]
lea rcx, [rdi + r13]
mov r8, r11
call fcn.14009ec70
add rdi, rax
mov r13, qword [rsp + 0x38]
add rdi, 4
cmp rdi, r12
jbe 0x14006724a
mov rax, qword [rbp - 0x78]
mov ecx, r15d
sub ecx, dword [rbp + rbx*4 - 0x40]
mov r12, rdi
sub ecx, r14d
add ecx, 3
mov qword [rax], rcx
lea rcx, [rdi + r13]
cmp rcx, r11
je 0x140067260
mov rdi, qword [rsp + 0x20]
mov r10, qword [rsp + 0x28]
inc rbx
cmp rbx, rsi
jb 0x1400671ba
mov rax, r12
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14001bf00
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret