Function at 0x1400ac460
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x178
mov rax, qword [0x140114e78]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r13, qword [rcx + 8]
mov rbx, rcx
mov r12, qword [rcx + 0x38]
mov r11d, edx
mov r15d, dword [rcx + 0x34]
sub r11d, r13d
mov eax, r11d
mov dword [rsp + 8], r11d
mov r10, rdx
mov qword [rsp + 0x28], r8
mov rdi, r8
mov qword [rsp + 0x50], r9
mov r9, qword [rcx + 0x70]
mov r8d, edx
mov ecx, dword [rcx + 0x100]
sub r8d, r13d
mov ebp, 1
mov qword [rsp + 0x30], r9
mov edx, ebp
mov qword [rsp + 0x38], r12
shl edx, cl
mov esi, 3
mov ecx, dword [rbx + 0x1c]
sub r11d, edx
sub eax, ecx
mov dword [rsp + 4], r15d
cmp eax, edx
mov qword [rsp + 0x48], r13
mov eax, dword [rbx + 0x10c]
mov rdx, qword [rbx + 0x60]
cmovbe r11d, ecx
cmp dword [rbx + 0x28], 0
mov dword [rsp], r8d
cmovne r11d, ecx
mov qword [rsp + 0x40], rdx
mov ecx, 5
mov dword [rsp + 0x20], r11d
cmp eax, ecx
mov dword [rsp + 0x18], 0x1f
cmovb ecx, eax
xor r11d, r11d
shl ebp, cl
mov dword [rsp + 0x1c], ebp
cmp dword [rbx + 0x12c], r11d
jne 0x1400ac7f2
mov r14d, dword [rbx + 0x2c]
mov eax, r8d
mov ecx, dword [rsp + 4]
sub eax, r14d
mov r15, r9
mov rdx, r13
cmp eax, 0x180
jbe 0x1400ac6df
lea eax, [r14 + 0x60]
cmp r14d, eax
jae 0x1400ac625
mov rsi, qword [rsp + 0x38]
lea r12, [r13 + 8]
mov ebp, 0x18
mov r15d, r14d
sub ebp, ecx
mov edi, eax
add r12, r14
mov r13, r9
mov eax, dword [rbx + 0x60]
mov rcx, rbp
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rsi + rax]
mov rax, r15
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rbx + rax*4 + 0x40]
mov r8d, r9d
mov dword [rbx + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + rsi]
lea rdx, [r8 + rsi]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x18]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], r14d
inc r14d
cmp r14d, edi
jb 0x1400ac582
mov rdx, qword [rbx + 8]
mov esi, 3
mov rdi, qword [rsp + 0x28]
mov ebp, dword [rsp + 0x1c]
mov r13, qword [rsp + 0x48]
mov r8d, dword [rsp]
mov ecx, dword [rbx + 0x34]
lea r14d, [r8 - 0x20]
mov r15, qword [rbx + 0x70]
lea rax, [r10 + 1]
mov r12, qword [rbx + 0x38]
lea r9, [r14 + r13]
mov dword [rsp + 0x10], ecx
mov ecx, eax
sub ecx, r13d
mov r8d, r14d
sub ecx, r14d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, r11d
cmp ecx, eax
cmova ecx, eax
lea eax, [r14 + rcx]
cmp r14d, eax
jae 0x1400ac6d3
mov eax, 0x18
mov edi, ecx
sub eax, dword [rsp + 0x10]
mov qword [rsp + 0x10], rax
mov ecx, eax
nop dword [rax]
mov eax, dword [rbx + 0x60]
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rbx + rax*4 + 0x40], edx
sub rdi, 1
jne 0x1400ac680
mov r15, qword [rbx + 0x70]
mov r12, qword [rbx + 0x38]
mov rdx, qword [rbx + 8]
mov rdi, qword [rsp + 0x28]
mov ecx, dword [rbx + 0x34]
mov r8d, dword [rsp]
mov r9, qword [rsp + 0x30]
cmp r14d, r8d
jae 0x1400ac79c
mov ebp, dword [rsp]
lea rdi, [r14 + 8]
mov esi, 0x18
mov r13d, r14d
sub esi, ecx
add rdi, rdx
nop dword [rax]
mov eax, dword [rbx + 0x60]
mov rcx, rsi
imul edx, dword [rdi], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
mov rax, r13
lea rdi, [rdi + 1]
and eax, 7
mov r9d, dword [rbx + rax*4 + 0x40]
mov r8d, r9d
mov dword [rbx + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + r12]
lea rdx, [r8 + r12]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x18]
inc r13
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r15 + rax*4], r14d
inc r14d
cmp r14d, ebp
jb 0x1400ac700
mov rdi, qword [rsp + 0x28]
mov esi, 3
mov ebp, dword [rsp + 0x1c]
mov r13, qword [rsp + 0x48]
mov r8d, dword [rsp]
mov r9, qword [rsp + 0x30]
mov eax, dword [rsp + 8]
mov ecx, 0x18
sub ecx, dword [rsp + 4]
mov dword [rbx + 0x2c], r8d
mov r8d, eax
imul edx, dword [rax + r13 + 8], 0x9e3779b1
mov eax, dword [rsp + 0x40]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x38]
prefetcht0 byte [rax + rcx]
and r8d, 7
mov r14d, dword [rbx + r8*4 + 0x40]
mov dword [rbx + r8*4 + 0x40], edx
jmp 0x1400ac813
imul r14d, dword [r10], 0x9e3779b1
mov ecx, 0x18
mov eax, edx
sub ecx, r15d
xor r14, rax
mov eax, dword [rsp + 8]
shr r14, cl
mov rcx, r12
mov dword [rbx + 0x2c], eax
add dword [rbx + 0x68], r14d
mov eax, r14d
shr rax, 3
and eax, 0x1fffffe0
add rcx, rax
mov qword [rsp + 0x40], rcx
lea r12, [r9 + rax*4]
mov r9, r11
movzx eax, byte [rcx]
movdqu xmm0, xmmword [rcx]
mov r15d, eax
mov dword [rsp + 0x10], eax
movsx eax, r14b
and r15d, 0x1f
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, r15d
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
shl edx, 0x10
or edx, eax
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, r15d
shr rax, cl
or r8, rax
jbe 0x1400ac8c6
mov edx, dword [rsp + 0x20]
test ebp, ebp
je 0x1400ac8c6
bsf rcx, r8
add ecx, r15d
and ecx, 0x1f
je 0x1400ac8bd
mov ecx, dword [r12 + rcx*4]
cmp ecx, edx
jb 0x1400ac8c6
prefetcht0 byte [rcx + r13]
mov dword [rsp + r9*4 + 0x60], ecx
inc r9
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x1400ac896
mov ecx, dword [rsp + 0x10]
mov eax, r11d
dec ecx
mov edx, 0x1f
and ecx, 0x1f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x40]
mov byte [rax], cl
mov byte [rcx + rax], r14b
mov eax, dword [rbx + 0x2c]
mov dword [r12 + rcx*4], eax
inc dword [rbx + 0x2c]
test r9, r9
je 0x1400ac9ca
mov r14, qword [rsp + 0x50]
nop
mov ebx, dword [rsp + r11*4 + 0x60]
mov eax, dword [rsi + r10 - 3]
lea rdx, [rbx + r13]
cmp dword [rdx + rsi - 3], eax
jne 0x1400ac9be
lea r8, [rdi - 7]
mov rax, r10
cmp r10, r8
jae 0x1400ac95c
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x1400ac936
bsf rcx, rcx
shr rcx, 3
jmp 0x1400ac9a1
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x1400ac95c
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x1400ac9f1
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x1400ac943
lea rcx, [rdi - 3]
cmp rax, rcx
jae 0x1400ac973
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1400ac973
add rax, 4
add rdx, 4
lea rcx, [rdi - 1]
cmp rax, rcx
jae 0x1400ac98c
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1400ac98c
add rax, 2
add rdx, 2
cmp rax, rdi
jae 0x1400ac99b
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1400ac99b
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rsi
jbe 0x1400ac9be
mov eax, dword [rsp + 8]
mov rsi, rcx
sub eax, ebx
add eax, 3
mov qword [r14], rax
lea rax, [rcx + r10]
cmp rax, rdi
je 0x1400ac9ca
inc r11
cmp r11, r9
jb 0x1400ac900
mov rax, rsi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400db3a0
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
bsf rcx, rcx
shr rcx, 3
sub rcx, r10
add rcx, rax
jmp 0x1400ac9a1