Function at 0x14004a420
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, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov r12, rdx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0xe8], rax
cmp r8d, 0x40
jb 0x14004ab7a
mov eax, r8d
and eax, 7
jne 0x14004ab7a
mov r15, rcx
mov rcx, qword [rcx + 8]
mov edx, r8d
lea ebp, [r8 + 0x68]
mov eax, dword [rcx + 0x14]
cmp ebp, eax
ja 0x14004abb1
mov rbx, qword [rcx + 8]
mov ebp, dword [rbx + rdx + 4]
cmp ebp, 0xc8799269
jne 0x14004abb1
add rbx, rdx
mov ebp, dword [rbx]
cmp ebp, 0x68
jb 0x14004abb1
mov ebp, dword [rbx]
add ebp, r8d
cmp ebp, eax
ja 0x14004abb1
mov edi, dword [rbx + 8]
xor ebp, ebp
cmp edi, 0xf1645913
cmove rbp, rbx
lea r13, [rbp + 0x10]
test rbp, rbp
cmove r13, rbp
lea ebp, [r8 + 0x10]
cmp ebp, eax
ja 0x14004abc4
mov rbp, qword [rcx + 8]
mov ebx, dword [rbp + rdx + 4]
cmp ebx, 0xc8799269
jne 0x14004abc4
add rbp, rdx
mov edx, dword [rbp]
cmp edx, 0x10
jb 0x14004abc4
mov ebx, dword [rbp]
add ebx, r8d
xor edx, edx
cmp ebx, eax
ja 0x14004a525
test rbp, rbp
je 0x14004a525
mov edx, dword [rbp]
cmp rdx, 0x11
jb 0x14004abbf
add r8d, edx
cmp r8d, eax
ja 0x14004abbf
add rdx, 0xfffffffffffffff0
test r13, r13
je 0x14004ab7a
cmp byte [r13 + 0x50], 0
je 0x14004ab7a
cmp byte [rdx + r13 - 1], 0
jne 0x14004ab7a
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x14004ab7a
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x14004ab7a
cmp rcx, rax
je 0x14004a570
inc rax
cmp rcx, rax
jne 0x14004ab7a
lea rdi, [r13 + 0x50]
lea rbx, [r13 + 0x20]
test rdi, rdi
je 0x14004abd7
mov rcx, rdi
call fcn.1400933b0
movaps xmm6, xmmword [0x1401146a0]
lea rbp, [rsp + 0xc0]
movaps xmmword [rbp], xmm6
mov rcx, rdi
mov rdx, rax
mov r8, rbp
call fcn.140043810
mov rax, qword [rbp]
bswap rax
cmp rax, qword [rbx]
jne 0x14004ab7a
lea rcx, [r13 + 0x38]
mov eax, dword [r13]
cmp eax, 4
je 0x14004aac9
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
mov eax, dword [r13 + 4]
mov dword [rsp + 0x84], eax
mov eax, dword [r13 + 8]
mov dword [rsp + 0x58], eax
mov eax, dword [r13 + 0xc]
mov dword [rsp + 0x5c], eax
mov esi, dword [r13 + 0x10]
mov eax, dword [r13 + 0x14]
xor r14d, r14d
mov ecx, dword [r13 + 0x18]
mov dword [rsp + 0x64], ecx
cmp rax, 0x40
jb 0x14004abd0
mov ecx, eax
mov ebp, 0
and ecx, 7
jne 0x14004a6d6
mov rcx, qword [r15 + 8]
lea ebp, [rax + 0x14]
mov edx, dword [rcx + 0x14]
cmp ebp, edx
ja 0x14004abb8
mov rbx, qword [rcx + 8]
mov ebp, dword [rbx + rax + 4]
cmp ebp, 0xc8799269
jne 0x14004abb8
add rbx, rax
mov ebp, dword [rbx]
cmp ebp, 0x14
jb 0x14004abb8
mov ebp, dword [rbx]
add ebp, eax
cmp ebp, edx
ja 0x14004abb8
mov edi, dword [rbx + 8]
xor ebp, ebp
cmp edi, 0xbcea225b
cmove rbp, rbx
lea r14, [rbp + 0x10]
test rbp, rbp
cmove r14, rbp
lea ebp, [rax + 0x10]
cmp ebp, edx
ja 0x14004abd0
mov rbx, qword [rcx + 8]
mov ebp, dword [rbx + rax + 4]
cmp ebp, 0xc8799269
jne 0x14004abd0
add rbx, rax
mov ebp, dword [rbx]
cmp ebp, 0x10
jb 0x14004abd0
mov edi, dword [rbx]
add edi, eax
xor ebp, ebp
cmp edi, edx
ja 0x14004a6d6
test rbx, rbx
je 0x14004a6d6
mov ebp, dword [rbx]
cmp rbp, 0x11
jb 0x14004abcb
add eax, ebp
cmp eax, edx
ja 0x14004abcb
add rbp, 0xfffffffffffffff0
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x50], r12
test r14, r14
je 0x14004aa70
cmp esi, 2
jb 0x14004aa70
cmp esi, 0x3ffffffe
ja 0x14004aa70
lea edi, [rsi + 1]
lea r12, [rdi*4]
cmp rbp, r12
jb 0x14004aa70
mov qword [rsp + 0x88], rsi
mov ecx, 0x20
call fcn.140076ec8
mov r15, rax
mov rcx, r12
call fcn.140076ec8
mov qword [r15], rax
lea rsi, [rax + rdi*4]
mov qword [r15 + 0x10], rsi
test r12, r12
je 0x14004aafe
mov rcx, rax
xor edx, edx
mov r8, r12
call fcn.14007c4d0
mov qword [r15 + 8], rsi
mov qword [r15 + 0x18], 0
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax + rax]
test rax, rax
je 0x14004a795
mov ecx, dword [r14 + rax*4]
cmp ecx, dword [r14 + rax*4 - 4]
jle 0x14004ab5c
mov rdx, qword [r15]
mov dword [rdx + rax*4], ecx
add rax, 1
cmp rdi, rax
jne 0x14004a770
jmp 0x14004a79a
mov ecx, dword [r14]
jmp 0x14004a784
mov rcx, qword [r15]
mov rdx, qword [r15 + 8]
mov r8, rdx
sub r8, rcx
je 0x14004abde
mov rax, r8
shr rax, 2
mov rbx, rcx
not rbx
add rbx, rdx
mov r9d, dword [rsp + 0x64]
jne 0x14004a7c8
xor edi, edi
jmp 0x14004a808
mov rdx, r8
and rdx, 0xfffffffffffffffe
xor edi, edi
lea rbx, [0x14011f1a0]
nop dword [rax + rax]
movzx esi, al
movzx ebp, byte [rcx + rdi]
xor ebp, esi
shr eax, 8
xor eax, dword [rbx + rbp*4]
movzx ebp, al
movzx esi, byte [rcx + rdi + 1]
xor esi, ebp
shr eax, 8
xor eax, dword [rbx + rsi*4]
add rdi, 2
cmp rdx, rdi
jne 0x14004a7e0
test r8b, 1
je 0x14004a824
movzx edx, al
movzx ebp, byte [rcx + rdi]
xor ebp, edx
lea rdx, [0x14011f1a0]
shr eax, 8
xor eax, dword [rdx + rbp*4]
mov dword [r15 + 0x18], eax
cmp eax, r9d
jne 0x14004ab5f
mov rcx, r15
call fcn.1400472b0
mov r14, rax
mov rbp, qword [rsp + 0x88]
lea rsi, [rbp*8]
mov eax, dword [r13 + 0x1c]
test eax, eax
mov r15, qword [rsp + 0x90]
jne 0x14004a9f8
add r13, 0x1c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xd8], rax
movups xmmword [rsp + 0xc8], xmm6
mov rdx, qword [r15 + 8]
mov qword [rsp + 0xc0], rdx
mov dword [rsp + 0xc8], 0x53215531
cmp ebp, 0x1fffffff
ja 0x14004abea
mov ebx, esi
lea ecx, [rbp*4]
mov dword [rsp + 0xcc], ebx
mov dword [rsp + 0xd0], 0
mov byte [rsp + 0xd4], 0
mov qword [rsp + 0xd8], r13
movups xmmword [rsp + 0xa8], xmm6
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xa0], rdx
mov dword [rsp + 0xa8], 0x53215531
cmp ebp, 0x1fffffff
ja 0x14004abf6
mov dword [rsp + 0xac], esi
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0xb0], ecx
mov byte [rsp + 0xb4], 0
mov qword [rsp + 0xb8], r13
test eax, eax
jne 0x14004a998
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea rsi, [rsp + 0x98]
mov rcx, rsi
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x58]
mov r9d, dword [rsp + 0x5c]
call fcn.140047750
mov rax, qword [rsi]
test rax, rax
mov r12, qword [rsp + 0x50]
je 0x14004ab55
mov ecx, dword [rsp + 0x84]
lock or dword [rax + 0x10], ecx
mov qword [r12], rax
jmp 0x14004ab82
cmp eax, 1
jne 0x14004aa7a
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea rsi, [rsp + 0x98]
mov rcx, rsi
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x58]
mov r9d, dword [rsp + 0x5c]
call fcn.140047c90
jmp 0x14004a973
xor edx, edx
cmp eax, 0x40
jb 0x14004aa67
mov ecx, eax
and ecx, 7
jne 0x14004aa67
mov rcx, qword [r15 + 8]
lea edx, [rax + 0x10]
mov r8d, dword [rcx + 0x14]
cmp edx, r8d
ja 0x14004ac27
mov rbx, qword [rcx + 8]
mov edx, dword [rbx + rax + 4]
cmp edx, 0xc8799269
jne 0x14004ac27
add rbx, rax
mov edx, dword [rbx]
cmp edx, 0x10
jb 0x14004ac27
mov edi, dword [rbx]
add edi, eax
xor edx, edx
cmp edi, r8d
ja 0x14004aa67
test rbx, rbx
je 0x14004aa67
mov edx, dword [rbx]
cmp rdx, 0x11
jb 0x14004ac1a
add eax, edx
cmp eax, r8d
ja 0x14004ac1a
add rdx, 0xfffffffffffffff0
cmp rdx, rsi
jae 0x14004a860
mov r12, qword [rsp + 0x50]
jmp 0x14004ab7a
cmp eax, 2
jne 0x14004ab06
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea rsi, [rsp + 0x98]
lea r9, [rsp + 0xc0]
mov rcx, rsi
mov rdx, qword [rsp + 0x78]
mov r8, r14
call fcn.1400aa700
jmp 0x14004a973
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r12], rax
mov qword [rsp + 0x20], rcx
mov rcx, r12
mov rdx, r15
mov r8, rdi
mov r9, rbx
call fcn.1400aa6a0
mov rax, qword [r12]
mov ecx, dword [r13 + 4]
lock or dword [rax + 0x10], ecx
jmp 0x14004ab82
mov rsi, rax
jmp 0x14004a753
cmp eax, 3
jne 0x14004ac2e
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea rsi, [rsp + 0x98]
lea r9, [rsp + 0xc0]
mov rcx, rsi
mov rdx, qword [rsp + 0x78]
mov r8, r14
call fcn.1400aab80
jmp 0x14004a973
xor eax, eax
jmp 0x14004a98f
mov rcx, qword [r15]
test rcx, rcx
mov r12, qword [rsp + 0x50]
je 0x14004ab72
mov qword [r15 + 8], rcx
call fcn.140076eb8
mov rcx, r15
call fcn.140076eb8
mov qword [r12], 0
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140079ea0
mov rax, r12
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x14004a4bd
xor ebp, ebp
jmp 0x14004a675
call fcn.1400ac5c0
xor edx, edx
jmp 0x14004a525
call fcn.1400ac5c0
xor ebp, ebp
jmp 0x14004a6d6
xor eax, eax
jmp 0x14004a589
xor eax, eax
mov r9d, dword [rsp + 0x64]
jmp 0x14004a824
int3
int3
call fcn.1400ac5c0
mov rbp, qword [rsp + 0x88]
xor edx, edx
jmp 0x14004aa67
xor eax, eax
mov r12, qword [rsp + 0x50]
jmp 0x14004a98f