Function at 0x140012d10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140012ebd
mov rdi, r8
mov r15, rdx
not ecx
cmp r8, 0x2f
jb 0x14001343d
test r15b, 7
je 0x140012eca
mov r8d, ecx
shr r8d, 8
xor cl, byte [r15]
lea rdx, [r15 + 1]
movzx r10d, cl
lea rax, [0x140024fa0]
mov ecx, r8d
xor ecx, dword [rax + r10*4]
mov r10, rdi
dec r10
je 0x140012ec4
mov r8d, edx
and r8d, 7
je 0x140012ec4
mov r8d, ecx
shr r8d, 8
lea rdx, [r15 + 2]
xor cl, byte [r15 + 1]
movzx r10d, cl
mov ecx, r8d
xor ecx, dword [rax + r10*4]
mov r10, rdi
add r10, 0xfffffffffffffffe
je 0x140012ec4
mov r8d, edx
and r8d, 7
je 0x140012ec4
mov r8d, ecx
shr r8d, 8
lea rdx, [r15 + 3]
xor cl, byte [r15 + 2]
movzx r10d, cl
mov ecx, r8d
xor ecx, dword [rax + r10*4]
mov r10, rdi
add r10, 0xfffffffffffffffd
je 0x140012ec4
mov r8d, edx
and r8d, 7
je 0x140012ec4
mov r8d, ecx
shr r8d, 8
lea rdx, [r15 + 4]
xor cl, byte [r15 + 3]
movzx r10d, cl
mov ecx, r8d
xor ecx, dword [rax + r10*4]
mov r10, rdi
add r10, 0xfffffffffffffffc
je 0x140012ec4
mov r8d, edx
and r8d, 7
je 0x140012ec4
mov r8d, ecx
shr r8d, 8
lea rdx, [r15 + 5]
xor cl, byte [r15 + 4]
movzx r10d, cl
mov ecx, r8d
xor ecx, dword [rax + r10*4]
mov r10, rdi
add r10, 0xfffffffffffffffb
je 0x140012ec4
mov r8d, edx
and r8d, 7
je 0x140012ec4
mov r8d, ecx
shr r8d, 8
lea rdx, [r15 + 6]
xor cl, byte [r15 + 5]
movzx r10d, cl
mov ecx, r8d
xor ecx, dword [rax + r10*4]
mov r10, rdi
add r10, 0xfffffffffffffffa
je 0x140012ec4
mov r8d, edx
and r8d, 7
je 0x140012ec4
mov r8d, ecx
shr r8d, 8
lea rdx, [r15 + 7]
xor cl, byte [r15 + 6]
movzx r10d, cl
mov ecx, r8d
xor ecx, dword [rax + r10*4]
mov r10, rdi
add r10, 0xfffffffffffffff9
je 0x140012ec4
mov r8d, edx
and r8d, 7
je 0x140012ec4
add rdi, 0xfffffffffffffff8
mov edx, ecx
shr edx, 8
xor cl, byte [r15 + 7]
add r15, 8
movzx ecx, cl
xor edx, dword [rax + rcx*4]
mov ecx, edx
jmp 0x140012eca
xor eax, eax
jmp 0x14001355c
mov rdi, r10
mov r15, rdx
movabs rdx, 0xcccccccccccccccd
mov rax, rdi
mul rdx
shr rdx, 5
lea rax, [rdx*8]
lea rbx, [rax + rax*4]
xor r10d, r10d
mov r8, rdx
dec r8
je 0x140013200
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
lea rax, [rdx + rdx*4]
lea rax, [rax*8 - 0x28]
mov qword [rsp], rax
lea rdi, [0x1400253a0]
mov qword [rsp + 0x18], r15
xor esi, esi
xor ebp, ebp
xor ebx, ebx
nop word cs:[rax + rax]
mov eax, ecx
mov rcx, qword [r15]
mov qword [rsp + 0x20], rcx
mov r12, qword [r15 + 8]
xor rax, rcx
movzx edx, al
movzx ecx, ah
mov ecx, dword [rdi + rcx*4 + 0x400]
xor ecx, dword [rdi + rdx*4]
mov rdx, rax
shr rdx, 0xe
and edx, 0x3fc
xor ecx, dword [rdx + rdi + 0x800]
shr rax, 0x16
and eax, 0x3fc
xor ecx, dword [rax + rdi + 0xc00]
mov eax, ebp
xor rax, r12
movzx edx, al
movzx ebp, ah
mov ebp, dword [rdi + rbp*4 + 0x400]
xor ebp, dword [rdi + rdx*4]
mov rdx, rax
shr rdx, 0xe
and edx, 0x3fc
xor ebp, dword [rdx + rdi + 0x800]
shr rax, 0x16
and eax, 0x3fc
xor ebp, dword [rax + rdi + 0xc00]
mov eax, ebx
mov r13, qword [r15 + 0x10]
xor rax, r13
movzx edx, al
movzx ebx, ah
mov ebx, dword [rdi + rbx*4 + 0x400]
xor ebx, dword [rdi + rdx*4]
mov rdx, rax
shr rdx, 0xe
and edx, 0x3fc
xor ebx, dword [rdx + rdi + 0x800]
shr rax, 0x16
and eax, 0x3fc
xor ebx, dword [rax + rdi + 0xc00]
mov edx, esi
mov r11, qword [r15 + 0x18]
xor rdx, r11
movzx eax, dl
movzx esi, dh
mov esi, dword [rdi + rsi*4 + 0x400]
xor esi, dword [rdi + rax*4]
mov rax, rdx
shr rax, 0xe
and eax, 0x3fc
xor esi, dword [rax + rdi + 0x800]
shr rdx, 0x16
and edx, 0x3fc
xor esi, dword [rdx + rdi + 0xc00]
mov eax, r10d
mov r9, qword [r15 + 0x20]
xor rax, r9
mov r14, r8
movzx r8d, al
movzx edx, ah
mov r10d, dword [rdi + rdx*4 + 0x400]
xor r10d, dword [rdi + r8*4]
mov r8, r14
mov rdx, rax
shr rdx, 0xe
and edx, 0x3fc
xor r10d, dword [rdx + rdi + 0x800]
shr rax, 0x16
and eax, 0x3fc
xor r10d, dword [rax + rdi + 0xc00]
mov r14, qword [rsp + 0x20]
mov rax, r14
shr rax, 0x1e
and eax, 0x3fc
xor ecx, dword [rax + rdi + 0x1000]
mov rax, r12
shr rax, 0x1e
and eax, 0x3fc
xor ebp, dword [rax + rdi + 0x1000]
mov rax, r13
shr rax, 0x1e
and eax, 0x3fc
xor ebx, dword [rax + rdi + 0x1000]
mov rax, r11
shr rax, 0x1e
and eax, 0x3fc
xor esi, dword [rax + rdi + 0x1000]
mov rax, r9
shr rax, 0x1e
and eax, 0x3fc
xor r10d, dword [rax + rdi + 0x1000]
mov rax, r14
shr rax, 0x26
and eax, 0x3fc
xor ecx, dword [rax + rdi + 0x1400]
mov rax, r12
shr rax, 0x26
and eax, 0x3fc
xor ebp, dword [rax + rdi + 0x1400]
mov rax, r13
shr rax, 0x26
and eax, 0x3fc
xor ebx, dword [rax + rdi + 0x1400]
mov rax, r11
shr rax, 0x26
and eax, 0x3fc
xor esi, dword [rax + rdi + 0x1400]
mov rax, r9
shr rax, 0x26
and eax, 0x3fc
xor r10d, dword [rax + rdi + 0x1400]
mov rax, r14
shr rax, 0x2e
and eax, 0x3fc
xor ecx, dword [rax + rdi + 0x1800]
mov rax, r12
shr rax, 0x2e
and eax, 0x3fc
xor ebp, dword [rax + rdi + 0x1800]
mov rax, r13
shr rax, 0x2e
and eax, 0x3fc
xor ebx, dword [rax + rdi + 0x1800]
mov rax, r11
shr rax, 0x2e
and eax, 0x3fc
xor esi, dword [rax + rdi + 0x1800]
mov rax, r9
shr rax, 0x2e
and eax, 0x3fc
xor r10d, dword [rax + rdi + 0x1800]
mov rax, r14
shr rax, 0x38
xor ecx, dword [rdi + rax*4 + 0x1c00]
shr r12, 0x38
xor ebp, dword [rdi + r12*4 + 0x1c00]
shr r13, 0x38
xor ebx, dword [rdi + r13*4 + 0x1c00]
shr r11, 0x38
xor esi, dword [rdi + r11*4 + 0x1c00]
shr r9, 0x38
xor r10d, dword [rdi + r9*4 + 0x1c00]
add r15, 0x28
dec r8
jne 0x140012f30
mov r15, qword [rsp + 0x18]
add r15, qword [rsp]
mov eax, ebp
mov r11d, r10d
mov r10d, ebx
mov esi, esi
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 8]
jmp 0x140013207
xor eax, eax
xor esi, esi
xor r11d, r11d
mov ecx, ecx
xor rcx, qword [r15]
movzx r8d, cl
shr rcx, 8
lea rdx, [0x140024fa0]
mov r8d, dword [rdx + r8*4]
xor r8, rcx
movzx ecx, r8b
shr r8, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, r8
movzx r8d, cl
shr rcx, 8
mov r8d, dword [rdx + r8*4]
xor r8, rcx
movzx ecx, r8b
shr r8, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, r8
movzx r8d, cl
shr rcx, 8
mov r8d, dword [rdx + r8*4]
xor r8, rcx
movzx ecx, r8b
shr r8, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, r8
movzx r8d, cl
shr rcx, 8
mov r8d, dword [rdx + r8*4]
xor r8, rcx
movzx ecx, r8b
shr r8, 8
xor r8d, dword [rdx + rcx*4]
xor rax, qword [r15 + 8]
xor r8, rax
movzx eax, r8b
shr r8, 8
mov eax, dword [rdx + rax*4]
xor rax, r8
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
xor eax, dword [rdx + rcx*4]
xor r10, qword [r15 + 0x10]
xor rax, r10
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
xor ecx, dword [rdx + rax*4]
sub rdi, rbx
xor rsi, qword [r15 + 0x18]
xor rcx, rsi
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
xor eax, dword [rdx + rcx*4]
xor r11, qword [r15 + 0x20]
xor rax, r11
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
mov eax, dword [rdx + rax*4]
xor rax, rcx
movzx ecx, al
shr rax, 8
mov ecx, dword [rdx + rcx*4]
xor rcx, rax
movzx eax, cl
shr rcx, 8
xor ecx, dword [rdx + rax*4]
add r15, 0x28
cmp rdi, 8
jb 0x1400134d9
lea rax, [0x140024fa0]
nop
mov edx, ecx
xor cl, byte [r15]
shr edx, 8
movzx ecx, cl
xor edx, dword [rax + rcx*4]
mov ecx, edx
xor dl, byte [r15 + 1]
shr ecx, 8
movzx edx, dl
xor ecx, dword [rax + rdx*4]
mov edx, ecx
xor cl, byte [r15 + 2]
shr edx, 8
movzx ecx, cl
xor edx, dword [rax + rcx*4]
mov ecx, edx
xor dl, byte [r15 + 3]
shr ecx, 8
movzx edx, dl
xor ecx, dword [rax + rdx*4]
mov edx, ecx
xor cl, byte [r15 + 4]
shr edx, 8
movzx ecx, cl
xor edx, dword [rax + rcx*4]
add rdi, 0xfffffffffffffff8
mov ecx, edx
xor dl, byte [r15 + 5]
shr ecx, 8
movzx edx, dl
xor ecx, dword [rax + rdx*4]
mov edx, ecx
shr edx, 8
xor cl, byte [r15 + 6]
movzx ecx, cl
xor edx, dword [rax + rcx*4]
mov ecx, edx
shr ecx, 8
xor dl, byte [r15 + 7]
add r15, 8
movzx edx, dl
xor ecx, dword [rax + rdx*4]
cmp rdi, 7
ja 0x140013450
test rdi, rdi
je 0x1400134ef
test dil, 1
jne 0x1400134f3
mov rdx, rdi
cmp rdi, 1
jne 0x140013518
jmp 0x14001355a
mov eax, ecx
jmp 0x14001355a
lea rdx, [rdi - 1]
mov eax, ecx
shr eax, 8
xor cl, byte [r15]
inc r15
movzx ecx, cl
lea r8, [0x140024fa0]
xor eax, dword [r8 + rcx*4]
mov ecx, eax
cmp rdi, 1
je 0x14001355a
xor r8d, r8d
lea r10, [0x140024fa0]
mov eax, ecx
nop word cs:[rax + rax]
mov ecx, eax
shr ecx, 8
xor al, byte [r15 + r8]
movzx eax, al
xor ecx, dword [r10 + rax*4]
mov eax, ecx
shr eax, 8
xor cl, byte [r15 + r8 + 1]
movzx ecx, cl
xor eax, dword [r10 + rcx*4]
add r8, 2
cmp rdx, r8
jne 0x140013530
not eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret