Function at 0x140066f90
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 [0x1400c81d8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r13, qword [rcx + 8]
mov rdi, rcx
mov rax, qword [rcx + 0x38]
mov rbx, r8
mov r12d, dword [rcx + 0x34]
mov r8d, edx
sub r8d, r13d
mov qword [rsp + 0x50], rdx
mov r15d, edx
mov qword [rsp + 0x38], rax
sub r15d, r13d
mov dword [rsp + 8], r8d
mov eax, r8d
mov qword [rsp + 0x58], r9
mov r9, qword [rcx + 0x70]
mov r10, rdx
mov ecx, dword [rcx + 0x100]
mov r14d, 1
mov edx, r14d
mov qword [rsp + 0x30], rbx
shl edx, cl
mov ebp, 3
mov ecx, dword [rdi + 0x1c]
sub r8d, edx
sub eax, ecx
mov qword [rsp + 0x20], r9
cmp eax, edx
mov dword [rsp + 0xc], r12d
mov eax, dword [rdi + 0x10c]
mov rdx, qword [rdi + 0x60]
cmovbe r8d, ecx
cmp dword [rdi + 0x28], 0
mov dword [rsp], r15d
cmovne r8d, ecx
mov qword [rsp + 0x48], rdx
mov ecx, 5
mov dword [rsp + 0x28], r8d
cmp eax, ecx
mov dword [rsp + 0x10], 0x1f
cmovb ecx, eax
xor r11d, r11d
shl r14d, cl
mov dword [rsp + 4], r14d
cmp dword [rdi + 0x12c], r11d
jne 0x140067331
mov esi, dword [rdi + 0x2c]
mov eax, r15d
sub eax, esi
cmp eax, 0x180
jbe 0x140067206
lea eax, [rsi + 0x60]
cmp esi, eax
jae 0x140067148
mov rbp, qword [rsp + 0x38]
mov r10d, 0x18
sub r10d, r12d
mov r15d, esi
lea r12, [r13 + 8]
mov ebx, eax
add r12, rsi
mov r14, r9
nop word [rax + rax]
mov eax, dword [rdi + 0x60]
mov rcx, r10
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
mov rax, r15
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rdi + rax*4 + 0x40]
mov r8d, r9d
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + rbp]
lea rdx, [r8 + rbp]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x10]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rcx + rdx], r9b
mov dword [r14 + rax*4], esi
inc esi
cmp esi, ebx
jb 0x1400670b0
mov r10, qword [rsp + 0x50]
mov ebp, 3
mov rbx, qword [rsp + 0x30]
mov r14d, dword [rsp + 4]
mov r15d, dword [rsp]
mov rcx, qword [rdi + 0x70]
lea esi, [r15 - 0x20]
mov qword [rsp + 0x18], rcx
lea rax, [r10 + 1]
mov rcx, qword [rdi + 0x38]
lea r9, [rsi + r13]
mov qword [rsp + 0x40], rcx
mov ecx, eax
sub ecx, r13d
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 0x140067201
mov rbx, qword [rsp + 0x18]
mov r12d, 0x18
sub r12d, dword [rdi + 0x34]
mov r14, qword [rsp + 0x40]
mov r15d, ecx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdi + 0x60]
mov rcx, r12
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rbx + rax*4]
prefetcht0 byte [rbx + rax*4 + 0x40]
prefetcht0 byte [r14 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rdi + rax*4 + 0x40], edx
sub r15, 1
jne 0x1400671b0
mov rbx, qword [rsp + 0x30]
mov r14d, dword [rsp + 4]
mov r15d, dword [rsp]
mov r9, qword [rsp + 0x20]
mov rcx, qword [rdi + 0x38]
mov rax, qword [rdi + 0x70]
mov qword [rsp + 0x18], rcx
mov rcx, qword [rdi + 8]
cmp esi, r15d
jae 0x1400672db
mov rbp, qword [rsp + 0x18]
lea r12, [rcx + 8]
mov r14d, dword [rsp]
mov r10d, 0x18
sub r10d, dword [rdi + 0x34]
mov rbx, rax
mov r15d, esi
add r12, r15
mov eax, dword [rdi + 0x60]
mov rcx, r10
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rbx + rax*4]
prefetcht0 byte [rbx + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
mov rax, r15
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rdi + rax*4 + 0x40]
mov r8d, r9d
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + rbp]
lea rdx, [r8 + rbp]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x10]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rbx + rax*4], esi
inc esi
cmp esi, r14d
jb 0x140067240
mov r10, qword [rsp + 0x50]
mov ebp, 3
mov rbx, qword [rsp + 0x30]
mov r14d, dword [rsp + 4]
mov r15d, dword [rsp]
mov r9, qword [rsp + 0x20]
mov eax, dword [rsp + 8]
mov ecx, 0x18
sub ecx, dword [rsp + 0xc]
mov r8d, eax
mov dword [rdi + 0x2c], r15d
imul edx, dword [rax + r13 + 8], 0x9e3779b1
mov eax, dword [rsp + 0x48]
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 esi, dword [rdi + r8*4 + 0x40]
mov dword [rdi + r8*4 + 0x40], edx
jmp 0x140067354
imul esi, dword [r10], 0x9e3779b1
mov ecx, 0x18
mov eax, edx
sub ecx, r12d
xor rsi, rax
mov eax, dword [rsp + 8]
shr rsi, cl
mov rcx, qword [rsp + 0x38]
mov dword [rdi + 0x2c], eax
add dword [rdi + 0x68], esi
mov eax, esi
shr rax, 3
and eax, 0x1fffffe0
add rcx, rax
mov qword [rsp + 0x48], rcx
lea r12, [r9 + rax*4]
mov r9, r11
movzx eax, byte [rcx]
movdqu xmm0, xmmword [rcx]
mov r15d, eax
mov dword [rsp + 0xc], eax
movsx eax, sil
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 0x140067407
mov edx, dword [rsp + 0x28]
test r14d, r14d
je 0x140067407
bsf rcx, r8
add ecx, r15d
and ecx, 0x1f
je 0x1400673fe
mov ecx, dword [r12 + rcx*4]
cmp ecx, edx
jb 0x140067407
prefetcht0 byte [rcx + r13]
mov dword [rsp + r9*4 + 0x60], ecx
inc r9
dec r14d
lea rax, [r8 - 1]
and r8, rax
ja 0x1400673d5
mov ecx, dword [rsp + 0xc]
mov eax, r11d
dec ecx
mov edx, 0x1f
and ecx, 0x1f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x48]
mov byte [rax], cl
mov byte [rcx + rax], sil
mov eax, dword [rdi + 0x2c]
mov dword [r12 + rcx*4], eax
inc dword [rdi + 0x2c]
test r9, r9
je 0x14006750a
mov rsi, qword [rsp + 0x58]
mov edi, dword [rsp + r11*4 + 0x60]
mov eax, dword [r10 + rbp - 3]
lea rdx, [rdi + r13]
cmp dword [rdx + rbp - 3], eax
jne 0x1400674fe
lea r8, [rbx - 7]
mov rax, r10
cmp r10, r8
jae 0x14006749c
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x140067476
bsf rcx, rcx
shr rcx, 3
jmp 0x1400674e1
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x14006749c
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x140067531
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x140067483
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x1400674b3
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1400674b3
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x1400674cc
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1400674cc
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x1400674db
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1400674db
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rbp
jbe 0x1400674fe
mov eax, dword [rsp + 8]
mov rbp, rcx
sub eax, edi
add eax, 3
mov qword [rsi], rax
lea rax, [rcx + r10]
cmp rax, rbx
je 0x14006750a
inc r11
cmp r11, r9
jb 0x140067440
mov rax, rbp
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400890e0
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 0x1400674e1