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

Disassembly:
push rbx
push rdi
push r12
push r13
push r15
mov eax, 0x3010
call fcn.1400200e0
sub rsp, rax
mov rax, qword [0x1400d0010]
xor rax, rsp
mov qword [rsp + 0x2ff0], rax
xor r15d, r15d
mov r10d, edx
mov qword [rsp + 0x40], r15
mov r12, r9
mov rbx, r8
mov rdi, rcx
mov r13d, r15d
test rcx, rcx
je 0x1400044fc
mov rdx, qword [rcx + 0x68]
test rdx, rdx
je 0x1400044f5
test r9, r9
je 0x140004073
test rbx, rbx
je 0x1400044f5
cmp qword [rcx + 0x48], r13
je 0x1400044f5
cmp r10d, dword [rcx + 0x10]
jae 0x140004090
mov rax, qword [rdx + 0x20]
mov r8d, dword [rax + r10*4]
add r8, qword [rdx]
jmp 0x140004093
mov r8, r15
lea r9, [rsp + 0x70]
mov edx, r10d
call fcn.140003ac0
test eax, eax
je 0x1400044fc
mov qword [rsp + 0x3058], rbp
mov qword [rsp + 0x3008], rsi
mov qword [rsp + 0x3000], r14
cmp dword [rsp + 0xbc], r13d
jne 0x1400044eb
mov r14, qword [rsp + 0x98]
test r14, r14
je 0x1400044eb
test byte [rsp + 0x84], 0x61
je 0x14000412a
mov dword [rdi + 0x1c], 5
xor eax, eax
mov rsi, qword [rsp + 0x3008]
mov rbp, qword [rsp + 0x3058]
mov r14, qword [rsp + 0x3000]
mov rcx, qword [rsp + 0x2ff0]
xor rcx, rsp
call fcn.140006260
add rsp, 0x3010
pop r15
pop r13
pop r12
pop rdi
pop rbx
ret
movzx esi, word [rsp + 0x86]
mov eax, 0xfff7
test ax, si
je 0x140004145
mov dword [rdi + 0x1c], 4
jmp 0x1400040f0
mov rbp, qword [rsp + 0xa0]
cmp r12, rbp
jae 0x14000415b
mov dword [rdi + 0x1c], 0x1a
jmp 0x1400040f0
mov r12, qword [rsp + 0xb0]
lea r8, [rsp + 0x2fd0]
mov rcx, qword [rdi + 0x60]
mov rdx, r12
mov r9d, 0x1e
call qword [rdi + 0x48]
cmp rax, 0x1e
jne 0x1400044df
cmp dword [rsp + 0x2fd0], 0x4034b50
jne 0x1400044d3
movzx eax, word [rsp + 0x2fea]
movzx ecx, word [rsp + 0x2fec]
add r12, rax
add rcx, 0x1e
add r12, rcx
lea rax, [r12 + r14]
cmp rax, qword [rdi]
ja 0x1400044d3
test si, si
je 0x1400043fe
mov rax, qword [rdi + 0x68]
mov dword [rsp + 0x4d0], r15d
mov rcx, qword [rax + 0x80]
test rcx, rcx
je 0x1400041f7
mov rsi, r14
lea rdx, [r12 + rcx]
mov rcx, rsi
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
mov r14, r15
jmp 0x140004240
mov rcx, qword [rdi + 0x40]
mov r8d, 0x10000
cmp r14, r8
mov edx, 1
cmovb r8, r14
mov qword [rsp + 0x50], r8
call qword [rdi + 0x28]
mov qword [rsp + 0x48], rax
mov rdx, rax
test rax, rax
jne 0x14000422e
mov dword [rdi + 0x1c], 0x10
jmp 0x1400040f0
mov rsi, r15
mov rcx, qword [rsp + 0x50]
nop word [rax + rax]
mov rax, rbp
sub rax, r13
mov qword [rsp + 0x60], rax
test rsi, rsi
jne 0x140004287
mov rax, qword [rdi + 0x68]
cmp qword [rax + 0x80], rsi
jne 0x140004287
cmp rcx, r14
mov r8, rdx
mov rsi, r14
mov rdx, r12
cmovb rsi, rcx
mov rcx, qword [rdi + 0x60]
mov r9, rsi
call qword [rdi + 0x48]
cmp rax, rsi
jne 0x1400042f9
add r12, rsi
mov qword [rsp + 0x40], r15
sub r14, rsi
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x58]
mov ecx, 4
mov qword [rsp + 0x58], rsi
mov eax, 6
test r14, r14
mov r9, rbx
cmovne ecx, eax
add rdx, qword [rsp + 0x48]
mov dword [rsp + 0x30], ecx
lea rax, [rbx + r13]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x4d0]
mov qword [rsp + 0x20], rax
call fcn.140001480
mov rcx, qword [rsp + 0x58]
mov r15d, eax
add qword [rsp + 0x40], rcx
sub rsi, rcx
add r13, qword [rsp + 0x60]
cmp eax, 1
jne 0x140004305
mov rdx, qword [rsp + 0x48]
xor r15d, r15d
jmp 0x140004231
mov dword [rdi + 0x1c], 0xb
jmp 0x1400043ce
test eax, eax
jne 0x1400043d4
cmp r13, rbp
je 0x14000431e
mov dword [rdi + 0x1c], 0xd
jmp 0x1400043ce
lea r8, [0x1400cbea0]
mov rcx, rbp
mov eax, 0xffffffff
cmp rbp, 4
jb 0x140004396
mov r9, rcx
shr r9, 2
imul rbp, r9, 0xfffffffffffffffc
add rbp, rcx
movzx edx, byte [rbx]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx ecx, dl
movzx edx, byte [rbx + 1]
xor eax, dword [r8 + rcx*4]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
movzx edx, byte [rbx + 2]
xor eax, dword [r8 + rcx*4]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
movzx edx, byte [rbx + 3]
add rbx, 4
xor eax, dword [r8 + rcx*4]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r8 + rcx*4]
sub r9, 1
jne 0x140004341
test rbp, rbp
je 0x1400043bc
nop dword [rax + rax]
movzx edx, byte [rbx]
lea rbx, [rbx + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r8 + rcx*4]
sub rbp, 1
jne 0x1400043a0
not eax
cmp eax, dword [rsp + 0x90]
je 0x1400043d4
mov dword [rdi + 0x1c], 0xe
mov r15d, 0xffffffff
mov rcx, qword [rdi + 0x68]
cmp qword [rcx + 0x80], 0
jne 0x1400043ee
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x40]
call qword [rdi + 0x30]
test r15d, r15d
mov eax, 0
sete al
jmp 0x1400040f2
mov rcx, qword [rdi + 0x60]
mov r9, rbp
mov r8, rbx
mov rdx, r12
call qword [rdi + 0x48]
cmp rax, rbp
jne 0x1400044df
lea r8, [0x1400cbea0]
mov rcx, rbp
mov eax, 0xffffffff
cmp rbp, 4
jb 0x140004495
mov r9, rcx
shr r9, 2
imul rbp, r9, 0xfffffffffffffffc
add rbp, rcx
nop word [rax + rax]
movzx edx, byte [rbx]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx ecx, dl
movzx edx, byte [rbx + 1]
xor eax, dword [r8 + rcx*4]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
movzx edx, byte [rbx + 2]
xor eax, dword [r8 + rcx*4]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
movzx edx, byte [rbx + 3]
add rbx, 4
xor eax, dword [r8 + rcx*4]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r8 + rcx*4]
sub r9, 1
jne 0x140004440
test rbp, rbp
je 0x1400044bc
nop word [rax + rax]
movzx edx, byte [rbx]
lea rbx, [rbx + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r8 + rcx*4]
sub rbp, 1
jne 0x1400044a0
not eax
cmp eax, dword [rsp + 0x90]
je 0x1400044eb
mov dword [rdi + 0x1c], 0xe
jmp 0x1400040f0
mov dword [rdi + 0x1c], 9
jmp 0x1400040f0
mov dword [rdi + 0x1c], 0x14
jmp 0x1400040f0
mov eax, 1
jmp 0x1400040f2
mov dword [rcx + 0x1c], 0x18
xor eax, eax
jmp 0x14000410a