Function at 0x140004020
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.14001cd70
sub rsp, rax
mov rax, qword [0x140063008]
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 0x14000450c
mov rdx, qword [rcx + 0x68]
test rdx, rdx
je 0x140004505
test r9, r9
je 0x140004083
test rbx, rbx
je 0x140004505
cmp qword [rcx + 0x48], r13
je 0x140004505
cmp r10d, dword [rcx + 0x10]
jae 0x1400040a0
mov rax, qword [rdx + 0x20]
mov r8d, dword [rax + r10*4]
add r8, qword [rdx]
jmp 0x1400040a3
mov r8, r15
lea r9, [rsp + 0x70]
mov edx, r10d
call fcn.140003ad0
test eax, eax
je 0x14000450c
mov qword [rsp + 0x3058], rbp
mov qword [rsp + 0x3008], rsi
mov qword [rsp + 0x3000], r14
cmp dword [rsp + 0xbc], r13d
jne 0x1400044fb
mov r14, qword [rsp + 0x98]
test r14, r14
je 0x1400044fb
test byte [rsp + 0x84], 0x61
je 0x14000413a
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.140006240
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 0x140004155
mov dword [rdi + 0x1c], 4
jmp 0x140004100
mov rbp, qword [rsp + 0xa0]
cmp r12, rbp
jae 0x14000416b
mov dword [rdi + 0x1c], 0x1a
jmp 0x140004100
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 0x1400044ef
cmp dword [rsp + 0x2fd0], 0x4034b50
jne 0x1400044e3
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 0x1400044e3
test si, si
je 0x14000440e
mov rax, qword [rdi + 0x68]
mov dword [rsp + 0x4d0], r15d
mov rcx, qword [rax + 0x80]
test rcx, rcx
je 0x140004207
mov rsi, r14
lea rdx, [r12 + rcx]
mov rcx, rsi
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
mov r14, r15
jmp 0x140004250
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 0x14000423e
mov dword [rdi + 0x1c], 0x10
jmp 0x140004100
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 0x140004297
mov rax, qword [rdi + 0x68]
cmp qword [rax + 0x80], rsi
jne 0x140004297
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 0x140004309
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.140001490
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 0x140004315
mov rdx, qword [rsp + 0x48]
xor r15d, r15d
jmp 0x140004241
mov dword [rdi + 0x1c], 0xb
jmp 0x1400043de
test eax, eax
jne 0x1400043e4
cmp r13, rbp
je 0x14000432e
mov dword [rdi + 0x1c], 0xd
jmp 0x1400043de
lea r8, [0x14005fc40]
mov rcx, rbp
mov eax, 0xffffffff
cmp rbp, 4
jb 0x1400043a6
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 0x140004351
test rbp, rbp
je 0x1400043cc
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 0x1400043b0
not eax
cmp eax, dword [rsp + 0x90]
je 0x1400043e4
mov dword [rdi + 0x1c], 0xe
mov r15d, 0xffffffff
mov rcx, qword [rdi + 0x68]
cmp qword [rcx + 0x80], 0
jne 0x1400043fe
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x40]
call qword [rdi + 0x30]
test r15d, r15d
mov eax, 0
sete al
jmp 0x140004102
mov rcx, qword [rdi + 0x60]
mov r9, rbp
mov r8, rbx
mov rdx, r12
call qword [rdi + 0x48]
cmp rax, rbp
jne 0x1400044ef
lea r8, [0x14005fc40]
mov rcx, rbp
mov eax, 0xffffffff
cmp rbp, 4
jb 0x1400044a5
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 0x140004450
test rbp, rbp
je 0x1400044cc
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 0x1400044b0
not eax
cmp eax, dword [rsp + 0x90]
je 0x1400044fb
mov dword [rdi + 0x1c], 0xe
jmp 0x140004100
mov dword [rdi + 0x1c], 9
jmp 0x140004100
mov dword [rdi + 0x1c], 0x14
jmp 0x140004100
mov eax, 1
jmp 0x140004102
mov dword [rcx + 0x1c], 0x18
xor eax, eax
jmp 0x14000411a