Function at 0x140095ad0
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 [0x1400e8ea8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r13, qword [rcx + 8]
mov rbp, rcx
mov r11, qword [rcx + 0x38]
mov rdi, r8
mov r12d, dword [rcx + 0x34]
mov r14d, edx
mov qword [rsp + 0x40], r8
sub r14d, r13d
mov r8d, edx
mov qword [rsp + 0x58], r9
mov r9, qword [rcx + 0x70]
sub r8d, r13d
mov ecx, dword [rcx + 0x100]
mov eax, r8d
mov r10, rdx
mov dword [rsp + 4], r8d
mov r15d, 1
mov qword [rsp + 0x30], r9
mov edx, r15d
mov qword [rsp + 0x28], r11
shl edx, cl
mov esi, 3
mov ecx, dword [rbp + 0x1c]
sub r8d, edx
sub eax, ecx
mov dword [rsp + 0x10], r12d
cmp eax, edx
mov qword [rsp + 0x20], r13
mov eax, dword [rbp + 0x10c]
mov rdx, qword [rbp + 0x60]
cmovbe r8d, ecx
cmp dword [rbp + 0x28], 0
mov dword [rsp], r14d
cmovne r8d, ecx
mov qword [rsp + 0x50], rdx
mov ecx, 6
mov dword [rsp + 0x38], r8d
cmp eax, ecx
mov dword [rsp + 8], 0x3f
cmovb ecx, eax
xor ebx, ebx
shl r15d, cl
mov dword [rsp + 0xc], r15d
cmp dword [rbp + 0x12c], ebx
jne 0x140095e96
mov r11d, dword [rbp + 0x2c]
mov eax, r14d
sub eax, r11d
cmp eax, 0x180
jbe 0x140095d4c
lea eax, [r11 + 0x60]
cmp r11d, eax
jae 0x140095c94
mov rsi, qword [rsp + 0x28]
mov r15d, 0x18
sub r15d, r12d
mov r14d, r11d
lea r12, [r13 + 8]
mov edi, eax
add r12, r11
mov r13, r9
nop dword [rax]
mov eax, dword [rbp + 0x60]
mov rcx, r15
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
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 [rsi + rax]
prefetcht0 byte [rsi + rax + 0x20]
mov rax, r14
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rbp + rax*4 + 0x40]
mov r8d, r9d
mov dword [rbp + rax*4 + 0x40], edx
mov eax, ebx
shr r8, 2
and r8d, 0x3fffffc0
movzx ecx, byte [r8 + rsi]
lea rdx, [r8 + rsi]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 8]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], r11d
inc r11d
cmp r11d, edi
jb 0x140095bf0
mov rdi, qword [rsp + 0x40]
mov esi, 3
mov r15d, dword [rsp + 0xc]
mov r13, qword [rsp + 0x20]
mov r14d, dword [rsp]
mov rcx, qword [rbp + 0x70]
lea r11d, [r14 - 0x20]
mov rdx, qword [rbp + 0x38]
lea rax, [r10 + 1]
mov qword [rsp + 0x18], rcx
lea r9, [r11 + r13]
mov ecx, eax
mov r8d, r11d
sub ecx, r13d
sub ecx, r11d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, ebx
cmp ecx, eax
cmova ecx, eax
lea eax, [r11 + rcx]
cmp r11d, eax
jae 0x140095d47
mov rdi, qword [rsp + 0x18]
mov r12d, 0x18
sub r12d, dword [rbp + 0x34]
mov r13, rdx
mov r14d, ecx
nop dword [rax + rax]
mov eax, dword [rbp + 0x60]
mov rcx, r12
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
prefetcht0 byte [rax + r13 + 0x20]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rbp + rax*4 + 0x40], edx
sub r14, 1
jne 0x140095cf0
mov rdi, qword [rsp + 0x40]
mov r13, qword [rsp + 0x20]
mov r14d, dword [rsp]
mov r9, qword [rsp + 0x30]
mov rcx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x18], rcx
mov rcx, qword [rbp + 8]
cmp r11d, r14d
jae 0x140095e39
mov rdi, qword [rsp + 0x18]
lea r12, [rcx + 8]
mov esi, dword [rsp]
mov r15d, 0x18
sub r15d, dword [rbp + 0x34]
mov r13, rax
mov r14d, r11d
add r12, r14
nop word [rax + rax]
mov eax, dword [rbp + 0x60]
mov rcx, r15
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
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 [rdi + rax]
prefetcht0 byte [rdi + rax + 0x20]
mov rax, r14
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rbp + rax*4 + 0x40]
mov r8d, r9d
mov dword [rbp + rax*4 + 0x40], edx
mov eax, ebx
shr r8, 2
and r8d, 0x3fffffc0
movzx ecx, byte [r8 + rdi]
lea rdx, [r8 + rdi]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 8]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], r11d
inc r11d
cmp r11d, esi
jb 0x140095d90
mov rdi, qword [rsp + 0x40]
mov esi, 3
mov r15d, dword [rsp + 0xc]
mov r13, qword [rsp + 0x20]
mov r14d, dword [rsp]
mov r9, qword [rsp + 0x30]
mov eax, dword [rsp + 4]
mov ecx, 0x18
sub ecx, dword [rsp + 0x10]
mov r8d, eax
mov dword [rbp + 0x2c], r14d
imul edx, dword [rax + r13 + 8], 0x9e3779b1
mov eax, dword [rsp + 0x50]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov r11, qword [rsp + 0x28]
prefetcht0 byte [rax + r11]
prefetcht0 byte [rax + r11 + 0x20]
and r8d, 7
mov r12d, dword [rbp + r8*4 + 0x40]
mov dword [rbp + r8*4 + 0x40], edx
jmp 0x140095eb5
imul r12d, dword [r10], 0x9e3779b1
mov ecx, 0x18
sub ecx, dword [rsp + 0x10]
mov eax, edx
xor r12, rax
mov eax, dword [rsp + 4]
shr r12, cl
mov dword [rbp + 0x2c], eax
add dword [rbp + 0x68], r12d
mov eax, r12d
shr rax, 2
mov r14, rbx
and eax, 0x3fffffc0
movdqu xmm0, xmmword [rax + r11]
movzx r13d, byte [rax + r11]
lea rcx, [r9 + rax*4]
mov qword [rsp + 0x28], rcx
lea rcx, [rax + r11]
mov rdx, qword [rsp + 0x28]
movsx eax, r12b
mov qword [rsp + 0x50], rcx
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
pmovmskb r9d, xmm1
movdqu xmm1, xmmword [rcx + 0x20]
pcmpeqb xmm0, xmm2
pmovmskb r8d, xmm0
pcmpeqb xmm1, xmm2
movdqu xmm0, xmmword [rcx + 0x30]
movzx ecx, r13b
pmovmskb eax, xmm1
and cl, 0x3f
pcmpeqb xmm0, xmm2
pmovmskb r11d, xmm0
shl r11, 0x10
or r11, rax
movsxd rax, r8d
shl r11, 0x10
or r11, rax
movsxd rax, r9d
shl r11, 0x10
or r11, rax
ror r11, cl
test r11, r11
je 0x140095fa2
mov r8, qword [rsp + 0x20]
mov r9d, dword [rsp + 0x38]
nop dword [rax]
test r15d, r15d
je 0x140095fa2
bsf rcx, r11
add ecx, r13d
and ecx, 0x3f
je 0x140095f99
mov ecx, dword [rdx + rcx*4]
cmp ecx, r9d
jb 0x140095fa2
prefetcht0 byte [rcx + r8]
mov dword [rsp + r14*4 + 0x60], ecx
inc r14
dec r15d
lea rax, [r11 - 1]
and r11, rax
ja 0x140095f70
lea ecx, [r13 - 1]
mov eax, ebx
and ecx, 0x3f
mov r8d, 0x3f
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x50]
mov byte [rax], cl
mov byte [rcx + rax], r12b
mov eax, dword [rbp + 0x2c]
mov dword [rdx + rcx*4], eax
inc dword [rbp + 0x2c]
test r14, r14
je 0x1400960b8
mov r11, qword [rsp + 0x58]
nop dword [rax]
mov r9d, dword [rsp + rbx*4 + 0x60]
mov eax, dword [rsi + r10 - 3]
mov edx, r9d
add rdx, qword [rsp + 0x20]
cmp dword [rdx + rsi - 3], eax
jne 0x1400960ac
lea r8, [rdi - 7]
mov rax, r10
cmp r10, r8
jae 0x140096049
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x14009601a
bsf rcx, rcx
shr rcx, 3
jmp 0x14009608e
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x140096049
nop word [rax + rax]
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x1400960df
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x140096030
lea rcx, [rdi - 3]
cmp rax, rcx
jae 0x140096060
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x140096060
add rax, 4
add rdx, 4
lea rcx, [rdi - 1]
cmp rax, rcx
jae 0x140096079
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x140096079
add rax, 2
add rdx, 2
cmp rax, rdi
jae 0x140096088
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x140096088
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rsi
jbe 0x1400960ac
mov eax, dword [rsp + 4]
mov rsi, rcx
sub eax, r9d
add eax, 3
mov qword [r11], rax
lea rax, [rcx + r10]
cmp rax, rdi
je 0x1400960b8
inc rbx
cmp rbx, r14
jb 0x140095fe0
mov rax, rsi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400b77b0
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 0x14009608e