Function at 0x140083320
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x188
mov rax, qword [0x1400c7ea8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r12, qword [rcx + 8]
mov rbp, rcx
mov eax, dword [rcx + 0x34]
mov rdi, r8
mov r11, qword [rcx + 0x38]
mov r14d, edx
mov qword [rsp + 0x48], r8
sub r14d, r12d
mov dword [rsp + 8], eax
mov r8d, edx
sub r8d, r12d
mov qword [rsp + 0x40], rdx
mov eax, r8d
mov dword [rsp + 0xc], r8d
mov r15d, 1
mov qword [rsp + 0x60], r9
mov r9, qword [rcx + 0x70]
mov r10, rdx
mov ecx, dword [rcx + 0x100]
mov edx, r15d
shl edx, cl
mov esi, 3
mov ecx, dword [rbp + 0x1c]
sub r8d, edx
sub eax, ecx
mov qword [rsp + 0x28], r9
cmp eax, edx
mov qword [rsp + 0x20], r11
mov eax, dword [rbp + 0x10c]
cmovbe r8d, ecx
mov qword [rsp + 0x30], r12
cmp dword [rbp + 0x28], 0
mov dword [rsp], r14d
cmovne r8d, ecx
mov dword [rsp + 0x10], 0x3f
mov ecx, 6
mov dword [rsp + 0x38], r8d
cmp eax, ecx
cmovb ecx, eax
mov rax, qword [rbp + 0x60]
shl r15d, cl
xor ebx, ebx
mov qword [rsp + 0x58], rax
mov dword [rsp + 4], r15d
cmp dword [rbp + 0x12c], ebx
jne 0x1400836f4
mov r11d, dword [rbp + 0x2c]
lea r13d, [rsi + 0x35]
mov eax, r14d
movabs r14, 0xcf1bbcdcbf9b0000
sub eax, r11d
cmp eax, 0x180
jbe 0x1400835ac
lea eax, [r11 + 0x60]
cmp r11d, eax
jae 0x1400834f3
mov r15d, r13d
lea r10, [r12 + 8]
sub r15d, dword [rsp + 8]
mov edi, r11d
mov r13, qword [rsp + 0x20]
add r10, r11
mov r12d, eax
mov rsi, r9
nop
mov rdx, qword [r10]
mov ecx, r15d
imul rdx, r14
xor rdx, qword [rbp + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
prefetcht0 byte [rax + r13 + 0x20]
mov rax, rdi
lea r10, [r10 + 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 + r13]
lea rdx, [r8 + r13]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 0x10]
inc rdi
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rsi + rax*4], r11d
inc r11d
cmp r11d, r12d
jb 0x140083450
mov r10, qword [rsp + 0x40]
mov esi, 3
mov rdi, qword [rsp + 0x48]
mov r15d, dword [rsp + 4]
mov r12, qword [rsp + 0x30]
lea r13d, [rsi + 0x35]
mov rcx, qword [rbp + 0x70]
lea rax, [r10 + 1]
mov r11d, dword [rsp]
mov rdx, qword [rbp + 0x38]
add r11d, 0xffffffe0
mov qword [rsp + 0x18], rcx
mov ecx, eax
sub ecx, r12d
mov r8d, r11d
sub ecx, r11d
inc ecx
lea r9, [r11 + r12]
cmp r9, rax
mov eax, 8
cmova ecx, ebx
cmp ecx, eax
cmova ecx, eax
lea eax, [r11 + rcx]
cmp r11d, eax
jae 0x1400835a7
mov r15, qword [rsp + 0x18]
mov edi, r13d
sub edi, dword [rbp + 0x34]
mov r10, rdx
mov r12d, ecx
nop word [rax + rax]
mov rdx, qword [r9]
mov ecx, edi
imul rdx, r14
xor rdx, qword [rbp + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
prefetcht0 byte [r10 + rax]
prefetcht0 byte [r10 + rax + 0x20]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rbp + rax*4 + 0x40], edx
sub r12, 1
jne 0x140083550
mov r10, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r15d, dword [rsp + 4]
mov r9, qword [rsp + 0x28]
mov rax, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp]
mov qword [rsp + 0x18], rcx
mov rcx, qword [rbp + 8]
cmp r11d, eax
jae 0x140083697
mov r15, qword [rsp + 0x50]
lea rdi, [rcx + 8]
mov r10, qword [rsp + 0x18]
mov esi, r13d
sub esi, dword [rbp + 0x34]
mov r13d, eax
mov r12d, r11d
add rdi, r12
nop dword [rax + rax]
mov rdx, qword [rdi]
mov ecx, esi
imul rdx, r14
xor rdx, qword [rbp + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
prefetcht0 byte [r10 + rax]
prefetcht0 byte [r10 + rax + 0x20]
mov rax, r12
lea rdi, [rdi + 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 + r10]
lea rdx, [r8 + r10]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 0x10]
inc r12
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r15 + rax*4], r11d
inc r11d
cmp r11d, r13d
jb 0x1400835f0
mov r10, qword [rsp + 0x40]
mov esi, 3
mov rdi, qword [rsp + 0x48]
mov r15d, dword [rsp + 4]
mov eax, dword [rsp]
mov r9, qword [rsp + 0x28]
lea r13d, [rsi + 0x35]
sub r13d, dword [rsp + 8]
mov r8d, dword [rsp + 0xc]
movzx ecx, r13b
mov dword [rbp + 0x2c], eax
mov rax, qword [rsp + 0x30]
mov rdx, qword [r8 + rax + 8]
imul rdx, r14
xor rdx, qword [rsp + 0x58]
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 + 0x20]
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 0x14008371b
mov r12, qword [r10]
movabs r14, 0xcf1bbcdcbf9b0000
imul r12, r14
mov ecx, 0x38
sub ecx, dword [rsp + 8]
xor r12, rax
mov eax, dword [rsp + 0xc]
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 + 0x20], rcx
lea rcx, [rax + r11]
mov rdx, qword [rsp + 0x20]
movsx eax, r12b
mov qword [rsp + 0x58], 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 0x140083802
mov r8, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x38]
nop
test r15d, r15d
je 0x140083802
bsf rcx, r11
add ecx, r13d
and ecx, 0x3f
je 0x1400837f9
mov ecx, dword [rdx + rcx*4]
cmp ecx, r9d
jb 0x140083802
prefetcht0 byte [rcx + r8]
mov dword [rsp + r14*4 + 0x70], ecx
inc r14
dec r15d
lea rax, [r11 - 1]
and r11, rax
ja 0x1400837d0
lea ecx, [r13 - 1]
mov eax, ebx
and ecx, 0x3f
mov r8d, 0x3f
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x58]
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 0x140083918
mov r11, qword [rsp + 0x60]
nop dword [rax]
mov r9d, dword [rsp + rbx*4 + 0x70]
mov eax, dword [rsi + r10 - 3]
mov edx, r9d
add rdx, qword [rsp + 0x30]
cmp dword [rdx + rsi - 3], eax
jne 0x14008390c
lea r8, [rdi - 7]
mov rax, r10
cmp r10, r8
jae 0x1400838a9
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x14008387a
bsf rcx, rcx
shr rcx, 3
jmp 0x1400838ee
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x1400838a9
nop word [rax + rax]
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x14008393f
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x140083890
lea rcx, [rdi - 3]
cmp rax, rcx
jae 0x1400838c0
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1400838c0
add rax, 4
add rdx, 4
lea rcx, [rdi - 1]
cmp rax, rcx
jae 0x1400838d9
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1400838d9
add rax, 2
add rdx, 2
cmp rax, rdi
jae 0x1400838e8
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1400838e8
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rsi
jbe 0x14008390c
mov eax, dword [rsp + 0xc]
mov rsi, rcx
sub eax, r9d
add eax, 3
mov qword [r11], rax
lea rax, [rcx + r10]
cmp rax, rdi
je 0x140083918
inc rbx
cmp rbx, r14
jb 0x140083840
mov rax, rsi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400a2b70
add rsp, 0x188
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 0x1400838ee