Function at 0x14009b820
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 [0x140108ec0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rcx + 0x38]
mov rbp, rcx
mov r15, qword [rcx + 8]
mov rbx, r8
mov esi, dword [rcx + 0x34]
mov r8d, edx
sub r8d, r15d
mov qword [rsp + 0x38], rax
mov r14d, 1
mov qword [rsp + 0x50], rdx
mov r10, rdx
mov qword [rsp + 0x58], r9
mov r9, qword [rcx + 0x70]
mov edx, r14d
mov ecx, dword [rcx + 0x100]
mov eax, r8d
shl edx, cl
mov r11d, r8d
mov ecx, dword [rbp + 0x1c]
sub r11d, edx
sub eax, ecx
mov qword [rsp + 0x30], rbx
cmp eax, edx
mov qword [rsp + 0x18], r9
mov eax, dword [rbp + 0x10c]
mov edi, 3
cmovbe r11d, ecx
mov dword [rsp + 0xc], esi
cmp dword [rbp + 0x28], 0
movabs r13, 0xcf1bbcdcbb000000
mov qword [rsp + 0x20], r15
cmovne r11d, ecx
mov dword [rsp], r8d
mov ecx, 5
mov dword [rsp + 0x28], r11d
cmp eax, ecx
mov dword [rsp + 8], 0x1f
cmovb ecx, eax
mov rax, qword [rbp + 0x60]
shl r14d, cl
xor r11d, r11d
mov qword [rsp + 0x48], rax
mov dword [rsp + 4], r14d
cmp dword [rbp + 0x12c], r11d
jne 0x14009bbd0
mov esi, dword [rbp + 0x2c]
lea r12d, [rdi + 0x35]
mov eax, r8d
sub eax, esi
cmp eax, 0x180
jbe 0x14009ba96
lea eax, [rsi + 0x60]
cmp esi, eax
jae 0x14009b9dd
mov r14d, r12d
lea r10, [r15 + 8]
sub r14d, dword [rsp + 0xc]
mov ebx, esi
mov r12, qword [rsp + 0x38]
add r10, rsi
mov r15d, eax
mov rdi, r9
mov rdx, qword [r10]
mov ecx, r14d
imul rdx, r13
xor rdx, qword [rbp + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + r12]
mov rax, rbx
lea r10, [r10 + 1]
and eax, 7
mov r9d, dword [rbp + rax*4 + 0x40]
mov dword [rbp + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, byte [rax + r12]
lea rdx, [rax + r12]
dec ecx
mov r8d, eax
and ecx, 0x1f
mov eax, r11d
cmove eax, dword [rsp + 8]
inc rbx
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rcx + rdx], r9b
mov dword [rdi + rax*4], esi
inc esi
cmp esi, r15d
jb 0x14009b942
mov r10, qword [rsp + 0x50]
mov edi, 3
mov rbx, qword [rsp + 0x30]
mov r14d, dword [rsp + 4]
mov r15, qword [rsp + 0x20]
mov r8d, dword [rsp]
lea r12d, [rdi + 0x35]
mov rcx, qword [rbp + 0x70]
lea esi, [r8 - 0x20]
mov qword [rsp + 0x10], rcx
lea rax, [r10 + 1]
mov rcx, qword [rbp + 0x38]
lea r9, [rsi + r15]
mov qword [rsp + 0x40], rcx
mov ecx, eax
sub ecx, r15d
mov r8d, esi
sub ecx, esi
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, r11d
cmp ecx, eax
cmova ecx, eax
lea eax, [rsi + rcx]
cmp esi, eax
jae 0x14009ba8d
mov rbx, qword [rsp + 0x10]
mov edi, r12d
sub edi, dword [rbp + 0x34]
mov r14, qword [rsp + 0x40]
mov r15d, ecx
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r9]
mov ecx, edi
imul rdx, r13
xor rdx, qword [rbp + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rbx + rax*4]
prefetcht0 byte [rbx + rax*4 + 0x40]
prefetcht0 byte [rax + r14]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rbp + rax*4 + 0x40], edx
sub r15, 1
jne 0x14009ba40
mov rbx, qword [rsp + 0x30]
lea edi, [r15 + 3]
mov r14d, dword [rsp + 4]
mov r9, qword [rsp + 0x18]
mov r8d, dword [rsp]
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rbp + 8]
cmp esi, r8d
jae 0x14009bb7d
mov r14, qword [rsp + 0x40]
lea rbx, [rax + 8]
mov edi, dword [rsp]
mov r10d, r12d
sub r10d, dword [rbp + 0x34]
mov r12, qword [rsp + 0x10]
mov r15d, esi
add rbx, r15
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbx]
mov ecx, r10d
imul rdx, r13
xor rdx, qword [rbp + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
mov rax, r15
lea rbx, [rbx + 1]
and eax, 7
mov r9d, dword [rbp + rax*4 + 0x40]
mov dword [rbp + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, byte [rax + r12]
lea rdx, [rax + r12]
dec ecx
mov r8d, eax
and ecx, 0x1f
mov eax, r11d
cmove eax, dword [rsp + 8]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r14 + rax*4], esi
inc esi
cmp esi, edi
jb 0x14009bae0
mov r10, qword [rsp + 0x50]
mov edi, 3
mov rbx, qword [rsp + 0x30]
mov r14d, dword [rsp + 4]
mov r8d, dword [rsp]
mov r9, qword [rsp + 0x18]
lea r12d, [rdi + 0x35]
mov rax, qword [rsp + 0x20]
sub r12d, dword [rsp + 0xc]
movzx ecx, r12b
mov dword [rbp + 0x2c], r8d
mov rdx, qword [r8 + rax + 8]
imul rdx, r13
xor rdx, qword [rsp + 0x48]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
mov ecx, eax
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov rax, qword [rsp + 0x38]
prefetcht0 byte [rcx + rax]
and r8d, 7
mov r15d, dword [rbp + r8*4 + 0x40]
mov dword [rbp + r8*4 + 0x40], edx
jmp 0x14009bbe8
mov r15, qword [r10]
mov ecx, 0x38
imul r15, r13
sub ecx, esi
mov dword [rbp + 0x2c], r8d
xor r15, rax
shr r15, cl
add dword [rbp + 0x68], r15d
mov eax, r15d
mov rcx, qword [rsp + 0x38]
mov rsi, r11
shr eax, 3
and eax, 0x1fffffe0
add rcx, rax
mov qword [rsp + 0x48], rcx
lea r12, [r9 + rax*4]
movsx eax, r15b
movdqu xmm0, xmmword [rcx]
movzx r13d, byte [rcx]
mov edx, r13d
movd xmm2, eax
and edx, 0x1f
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, edx
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb r8d, xmm0
shl r8d, 0x10
or r8d, eax
mov r9d, r8d
mov eax, r8d
shl r9d, cl
mov ecx, edx
shr rax, cl
or r9, rax
jbe 0x14009bca4
mov rdx, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x28]
test r14d, r14d
je 0x14009bca4
bsf rcx, r9
add ecx, r13d
and ecx, 0x1f
mov ecx, dword [r12 + rcx*4]
je 0x14009bc9b
cmp ecx, r8d
jb 0x14009bca4
prefetcht0 byte [rcx + rdx]
mov dword [rsp + rsi*4 + 0x60], ecx
inc rsi
dec r14d
lea rax, [r9 - 1]
and r9, rax
ja 0x14009bc73
lea ecx, [r13 - 1]
mov eax, r11d
and ecx, 0x1f
mov edx, 0x1f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x48]
mov byte [rax], cl
mov byte [rcx + rax], r15b
mov eax, dword [rbp + 0x2c]
mov dword [r12 + rcx*4], eax
inc dword [rbp + 0x2c]
test rsi, rsi
je 0x14009bdb6
mov ebp, dword [rsp]
mov r14, qword [rsp + 0x58]
nop
mov r9d, dword [rsp + r11*4 + 0x60]
mov eax, dword [rdi + r10 - 3]
mov edx, r9d
add rdx, qword [rsp + 0x20]
cmp dword [rdx + rdi - 3], eax
jne 0x14009bdaa
lea r8, [rbx - 7]
mov rax, r10
cmp r10, r8
jae 0x14009bd49
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x14009bd1a
bsf rcx, rcx
shr rcx, 3
jmp 0x14009bd8e
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x14009bd49
nop word [rax + rax]
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x14009bddd
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x14009bd30
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x14009bd60
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x14009bd60
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x14009bd79
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x14009bd79
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x14009bd88
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x14009bd88
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rdi
jbe 0x14009bdaa
mov eax, ebp
mov rdi, rcx
sub eax, r9d
add eax, 3
mov qword [r14], rax
lea rax, [rcx + r10]
cmp rax, rbx
je 0x14009bdb6
inc r11
cmp r11, rsi
jb 0x14009bce0
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400bd240
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 0x14009bd8e