Function at 0x1400486e0
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, 0x68
mov rdi, r8
test rdx, rdx
je 0x14004835e
mov rsi, rdx
mov r8d, ecx
cmp rdi, 0x40
jb 0x140047ef1
cmp dword [0x1401a1f5c], 0
jne 0x140047f48
not r8d
cmp rdi, 0x2f
jae 0x140048013
cmp rdi, 8
jae 0x140047f80
test rdi, rdi
je 0x140047f43
xor eax, eax
lea rcx, [0x140162390]
mov ebx, r8d
xor r8b, byte [rsi + rax]
shr ebx, 8
movzx edx, r8b
xor ebx, dword [rcx + rdx*4]
inc rax
mov r8d, ebx
cmp rdi, rax
jne 0x140047f12
not ebx
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebx, r8d
jmp 0x140047f2e
mov rbx, rdi
and rbx, 0xfffffffffffffff0
not r8d
mov rcx, rsi
mov rdx, rbx
call fcn.14005fae0
mov r8d, eax
xor eax, eax
mov rcx, rdi
and rcx, 0xf
cmovne rax, rbx
and rdi, 0xf
je 0x140047f78
add rsi, rax
jmp 0x140047efe
not r8d
mov ebx, r8d
jmp 0x140047f30
lea rax, [0x140162390]
mov ecx, r8d
xor r8b, byte [rsi]
shr ecx, 8
movzx edx, r8b
xor ecx, dword [rax + rdx*4]
mov edx, ecx
xor cl, byte [rsi + 1]
shr edx, 8
movzx ecx, cl
xor edx, dword [rax + rcx*4]
mov ecx, edx
xor dl, byte [rsi + 2]
shr ecx, 8
movzx edx, dl
xor ecx, dword [rax + rdx*4]
mov edx, ecx
xor cl, byte [rsi + 3]
shr edx, 8
movzx ecx, cl
xor edx, dword [rax + rcx*4]
mov ecx, edx
xor dl, byte [rsi + 4]
shr ecx, 8
movzx edx, dl
xor ecx, dword [rax + rdx*4]
add rdi, 0xfffffffffffffff8
mov edx, ecx
xor cl, byte [rsi + 5]
shr edx, 8
movzx ecx, cl
xor edx, dword [rax + rcx*4]
mov ecx, edx
shr ecx, 8
xor dl, byte [rsi + 6]
movzx edx, dl
xor ecx, dword [rax + rdx*4]
mov r8d, ecx
shr r8d, 8
xor cl, byte [rsi + 7]
add rsi, 8
movzx ecx, cl
xor r8d, dword [rax + rcx*4]
cmp rdi, 7
jbe 0x140047f04
jmp 0x140047f87
test sil, 7
je 0x140048055
lea rax, [rsi + 1]
lea rcx, [0x140162390]
mov rdx, rdi
dec rdi
mov r9d, r8d
shr r9d, 8
xor r8b, byte [rsi]
inc rsi
movzx r10d, r8b
mov r8d, r9d
xor r8d, dword [rcx + r10*4]
cmp rdx, 1
je 0x140048055
mov edx, eax
and edx, 7
inc rax
test rdx, rdx
jne 0x140048024
movabs rcx, 0xcccccccccccccccd
mov rax, rdi
mul rcx
shr rdx, 5
lea rax, [rdx*8]
lea rax, [rax + rax*4]
xor ecx, ecx
mov r9, rdx
dec r9
jne 0x140048373
xor ebx, ebx
xor r11d, r11d
xor r10d, r10d
mov r8d, r8d
xor r8, qword [rsi]
mov r14, r8
shr r14, 8
mov edx, 0xff
and r8, rdx
lea r9, [0x140162390]
mov r8d, dword [r9 + r8*4]
xor r8, r14
mov r14, r8
shr r14, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, r14
mov r14, r8
shr r14, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, r14
mov r14, r8
shr r14, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, r14
mov r14, r8
shr r14, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, r14
mov r14, r8
shr r14, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, r14
mov r14, r8
shr r14, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, r14
mov r14, r8
shr r14, 8
and r8, rdx
xor r14d, dword [r9 + r8*4]
xor r14, rcx
xor r14, qword [rsi + 8]
mov rcx, r14
shr rcx, 8
and r14, rdx
mov r8d, dword [r9 + r14*4]
xor r8, rcx
mov rcx, r8
shr rcx, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, rcx
mov rcx, r8
shr rcx, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, rcx
mov rcx, r8
shr rcx, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, rcx
mov rcx, r8
shr rcx, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, rcx
mov rcx, r8
shr rcx, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, rcx
mov rcx, r8
shr rcx, 8
and r8, rdx
mov r8d, dword [r9 + r8*4]
xor r8, rcx
mov rcx, r8
shr rcx, 8
and r8, rdx
xor ecx, dword [r9 + r8*4]
xor rcx, rbx
xor rcx, qword [rsi + 0x10]
mov r8, rcx
shr r8, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, r8
mov r8, rcx
shr r8, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, r8
mov r8, rcx
shr r8, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, r8
mov r8, rcx
shr r8, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, r8
mov r8, rcx
shr r8, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, r8
mov r8, rcx
shr r8, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, r8
mov r8, rcx
shr r8, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, r8
mov r8, rcx
shr r8, 8
and rcx, rdx
xor r8d, dword [r9 + rcx*4]
sub rdi, rax
xor r8, r11
xor r8, qword [rsi + 0x18]
mov rax, r8
shr rax, 8
and r8, rdx
mov ecx, dword [r9 + r8*4]
xor rcx, rax
mov rax, rcx
shr rax, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, rax
mov rax, rcx
shr rax, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, rax
mov rax, rcx
shr rax, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, rax
mov rax, rcx
shr rax, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, rax
mov rax, rcx
shr rax, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, rax
mov rax, rcx
shr rax, 8
and rcx, rdx
mov ecx, dword [r9 + rcx*4]
xor rcx, rax
mov rax, rcx
shr rax, 8
and rcx, rdx
xor eax, dword [r9 + rcx*4]
xor rax, r10
xor rax, qword [rsi + 0x20]
mov rcx, rax
shr rcx, 8
and rax, rdx
mov eax, dword [r9 + rax*4]
xor rax, rcx
mov rcx, rax
shr rcx, 8
and rax, rdx
mov eax, dword [r9 + rax*4]
xor rax, rcx
mov rcx, rax
shr rcx, 8
and rax, rdx
mov eax, dword [r9 + rax*4]
xor rax, rcx
mov rcx, rax
shr rcx, 8
and rax, rdx
mov eax, dword [r9 + rax*4]
xor rax, rcx
mov rcx, rax
shr rcx, 8
and rax, rdx
mov eax, dword [r9 + rax*4]
xor rax, rcx
mov rcx, rax
shr rcx, 8
and rax, rdx
mov eax, dword [r9 + rax*4]
xor rax, rcx
mov rcx, rax
shr rcx, 8
and rax, rdx
mov eax, dword [r9 + rax*4]
xor rax, rcx
mov r8, rax
shr r8, 8
and rax, rdx
xor r8d, dword [r9 + rax*4]
add rsi, 0x28
jmp 0x140047efe
xor ebx, ebx
test rdi, rdi
jne 0x140047f30
call fcn.140082290
jmp 0x140047f30
lea rdx, [rdx + rdx*4]
lea rdx, [rdx*8 - 0x28]
mov qword [rsp + 0x60], rdx
xor edx, edx
xor r12d, r12d
xor ebp, ebp
mov r10, rsi
mov r13d, r8d
mov r8, r10
mov qword [rsp + 0x58], r10
mov r10, qword [r10]
mov qword [rsp + 0x20], r10
mov r11, qword [r8 + 8]
mov qword [rsp + 0x28], r11
xor r13, r10
mov r10d, ebp
xor r10, r11
mov ebx, r12d
mov r11, qword [r8 + 0x10]
mov qword [rsp + 0x50], r11
xor rbx, r11
mov r14d, edx
mov rdx, qword [r8 + 0x18]
mov qword [rsp + 0x40], rdx
xor r14, rdx
mov r15d, ecx
mov rcx, qword [r8 + 0x20]
mov qword [rsp + 0x48], rcx
xor r15, rcx
mov r8, r13
mov qword [rsp + 0x38], r13
mov r12, r13
mov r11d, 0xff
and r12, r11
mov r13, r10
and r13, r11
mov rdx, rbx
mov qword [rsp + 0x30], rbx
and rdx, r11
mov rcx, r14
and rcx, r11
shr r8d, 8
mov ebp, 0xff
and r8d, ebp
lea r11, [0x140162790]
mov r8d, dword [r11 + r8*4 + 0x400]
xor r8d, dword [r11 + r12*4]
mov r12d, r10d
shr r12d, 8
and r12d, ebp
mov ebp, dword [r11 + r12*4 + 0x400]
xor ebp, dword [r11 + r13*4]
mov r12d, ebx
shr r12d, 8
mov r13d, 0xff
and r12d, r13d
mov r12d, dword [r11 + r12*4 + 0x400]
xor r12d, dword [r11 + rdx*4]
mov edx, r14d
shr edx, 8
and edx, r13d
mov edx, dword [r11 + rdx*4 + 0x400]
xor edx, dword [r11 + rcx*4]
mov r13, r15
mov ecx, 0xff
and r13, rcx
mov ecx, r15d
shr ecx, 8
mov ebx, 0xff
and ecx, ebx
mov ecx, dword [r11 + rcx*4 + 0x400]
xor ecx, dword [r11 + r13*4]
mov r13, qword [rsp + 0x38]
shr r13d, 0x10
and r13d, ebx
xor r8d, dword [r11 + r13*4 + 0x800]
mov r13d, r10d
shr r13d, 0x10
and r13d, ebx
xor ebp, dword [r11 + r13*4 + 0x800]
mov r13, qword [rsp + 0x30]
shr r13d, 0x10
and r13d, ebx
xor r12d, dword [r11 + r13*4 + 0x800]
mov r13d, r14d
shr r13d, 0x10
and r13d, ebx
xor edx, dword [r11 + r13*4 + 0x800]
mov r13d, r15d
shr r13d, 0x10
and r13d, ebx
xor ecx, dword [r11 + r13*4 + 0x800]
mov r13, qword [rsp + 0x38]
shr r13d, 0x18
xor r8d, dword [r11 + r13*4 + 0xc00]
shr r10d, 0x18
xor ebp, dword [r11 + r10*4 + 0xc00]
mov r10, qword [rsp + 0x30]
shr r10d, 0x18
xor r12d, dword [r11 + r10*4 + 0xc00]
shr r14d, 0x18
xor edx, dword [r11 + r14*4 + 0xc00]
shr r15d, 0x18
xor ecx, dword [r11 + r15*4 + 0xc00]
mov r15, qword [rsp + 0x20]
mov r10, r15
shr r10, 0x1e
mov ebx, 0x3fc
and r10, rbx
xor r8d, dword [r10 + r11 + 0x1000]
mov r14, qword [rsp + 0x28]
mov r10, r14
shr r10, 0x1e
and r10, rbx
xor ebp, dword [r10 + r11 + 0x1000]
mov r13, qword [rsp + 0x50]
mov r10, r13
shr r10, 0x1e
and r10, rbx
xor r12d, dword [r10 + r11 + 0x1000]
mov r10, qword [rsp + 0x40]
shr r10, 0x1e
and r10, rbx
xor edx, dword [r10 + r11 + 0x1000]
mov r10, qword [rsp + 0x48]
shr r10, 0x1e
and r10, rbx
xor ecx, dword [r10 + r11 + 0x1000]
mov r10, r15
shr r10, 0x26
and r10, rbx
xor r8d, dword [r10 + r11 + 0x1400]
mov r10, r14
shr r10, 0x26
and r10, rbx
xor ebp, dword [r10 + r11 + 0x1400]
mov r10, r13
shr r10, 0x26
and r10, rbx
xor r12d, dword [r10 + r11 + 0x1400]
mov r14, qword [rsp + 0x40]
mov r10, r14
shr r10, 0x26
and r10, rbx
xor edx, dword [r10 + r11 + 0x1400]
mov r15, qword [rsp + 0x48]
mov r10, r15
shr r10, 0x26
and r10, rbx
xor ecx, dword [r10 + r11 + 0x1400]
mov r10, qword [rsp + 0x20]
shr r10, 0x2e
and r10, rbx
xor r8d, dword [r10 + r11 + 0x1800]
mov r10, qword [rsp + 0x28]
shr r10, 0x2e
and r10, rbx
xor ebp, dword [r10 + r11 + 0x1800]
mov r10, r13
shr r10, 0x2e
and r10, rbx
xor r12d, dword [r10 + r11 + 0x1800]
mov r10, r14
shr r10, 0x2e
and r10, rbx
xor edx, dword [r10 + r11 + 0x1800]
mov r10, r15
shr r10, 0x2e
and r10, rbx
xor ecx, dword [r10 + r11 + 0x1800]
mov r10, qword [rsp + 0x20]
shr r10, 0x38
xor r8d, dword [r11 + r10*4 + 0x1c00]
mov r10, qword [rsp + 0x28]
shr r10, 0x38
xor ebp, dword [r11 + r10*4 + 0x1c00]
shr r13, 0x38
xor r12d, dword [r11 + r13*4 + 0x1c00]
shr r14, 0x38
xor edx, dword [r11 + r14*4 + 0x1c00]
shr r15, 0x38
xor ecx, dword [r11 + r15*4 + 0x1c00]
mov r10, qword [rsp + 0x58]
add r10, 0x28
dec r9
jne 0x14004838e
add rsi, qword [rsp + 0x60]
mov r10d, ecx
mov ecx, ebp
mov ebx, r12d
mov r11d, edx
jmp 0x14004808b
sub rsp, 0x28
test rdx, rdx
je 0x1400486f5
mov r8d, r8d
add rsp, 0x28
jmp 0x140047ec0
test r8d, r8d
jne 0x1400486ff
call fcn.140082290
xor eax, eax
add rsp, 0x28
ret