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

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
xor r14d, r14d
xor r13d, r13d
test r9, r9
mov r12, r9
je 0x40ab64
mov byte [r9], r13b
test rcx, rcx
jne 0x40ab80
lea eax, [rcx - 0x66]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
add rsp, 0x48
ret
mov qword [rsp + 0x58], rbp
mov rbp, qword [rcx + 0x80]
test rbp, rbp
jne 0x40ab99
lea eax, [rbp - 0x66]
jmp 0x40aea1
cmp qword [rbp], r13
jne 0x40aba9
mov eax, 0xffffff9c
jmp 0x40aea1
test r8d, r8d
jne 0x40abb5
xor eax, eax
jmp 0x40aea1
mov eax, dword [rbp + 0x80]
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
cmp r8d, eax
jbe 0x40abcb
mov dword [rbp + 0x20], eax
cmp dword [rbp + 0x20], r13d
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x28], r15
jbe 0x40ae8a
lea r15, [0x0045be00]
cmp dword [rbp + 0x10], 0
jne 0x40ad2c
mov eax, dword [rbp + 0x7c]
test eax, eax
je 0x40ad2c
mov ebx, 0x4000
cmp eax, ebx
jae 0x40ac18
test eax, eax
mov ebx, eax
je 0x40ae64
mov edx, dword [rbp + 0x94]
mov rcx, qword [rbp + 0x88]
add edx, dword [rbp + 0x60]
cmp byte [rcx], 0
je 0x40ac4c
cmp byte [rcx + 1], 0
je 0x40ae72
add edx, dword [rcx + 0x14]
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40ac4f
mov dword [rcx + 0x2c], edx
mov r9, qword [rbp + 0x88]
mov rcx, qword [rbp]
mov r8d, 1
mov edx, ebx
mov edi, ebx
call fcn.00409a50
cmp rax, 1
jne 0x40ae72
mov r10, qword [rbp]
add dword [rbp + 0x60], ebx
sub dword [rbp + 0x7c], ebx
cmp byte [rbp + 0x98], 0
mov qword [rbp + 8], r10
mov dword [rbp + 0x10], ebx
je 0x40ad2c
test ebx, ebx
je 0x40ad2c
nop
nop
mov r9d, dword [rbp + 0xa4]
mov edx, dword [rbp + 0x9c]
add r10, 1
movzx ecx, dl
mov eax, r9d
shr edx, 8
and eax, 0xfffd
or eax, 2
mov r8d, eax
xor r8d, 1
imul r8d, eax
shr r8d, 8
xor r8b, byte [r10 - 1]
xor cl, r8b
movzx eax, cl
mov ecx, dword [r15 + rax*4]
xor ecx, edx
movzx eax, cl
mov dword [rbp + 0x9c], ecx
movzx ecx, r9b
add eax, dword [rbp + 0xa0]
shr r9d, 8
imul eax, eax, 0x8088405
add eax, 1
mov dword [rbp + 0xa0], eax
movzx eax, byte [rbp + 0xa3]
xor rcx, rax
mov eax, dword [r15 + rcx*4]
xor eax, r9d
sub rdi, 1
mov dword [rbp + 0xa4], eax
mov byte [r10 - 1], r8b
jne 0x40aca0
mov r8d, dword [rbp + 0xa8]
mov r9d, dword [rbp + 0x10]
cmp r8d, r9d
cmova r8d, r9d
test r8d, r8d
je 0x40ad77
mov rdx, qword [rbp + 8]
lea eax, [r8 - 1]
sub r9d, r8d
movzx r10d, byte [rax + rdx]
mov eax, r8d
mov dword [rbp + 0x10], r9d
add rax, rdx
sub dword [rbp + 0xa8], r8d
mov qword [rbp + 8], rax
jne 0x40ad77
cmp r10b, byte [rbp + 0xac]
jne 0x40ae79
cmp dword [rbp + 0x90], 0
jne 0x40ae05
mov eax, dword [rbp + 0x20]
mov edi, dword [rbp + 0x10]
cmp eax, edi
cmovb edi, eax
test edi, edi
je 0x40adbb
xor edx, edx
mov r8d, edi
nop
nop
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x18]
add rdx, 1
sub r8, 1
movzx eax, byte [rdx + rax - 1]
mov byte [rdx + rcx - 1], al
jne 0x40ada0
mov rbx, qword [rbp + 0x18]
mov ecx, dword [rbp + 0x74]
mov r8d, edi
mov rdx, rbx
call fcn.004090e0
sub dword [rbp + 0x80], edi
sub dword [rbp + 0x10], edi
sub dword [rbp + 0x20], edi
add dword [rbp + 0x24], edi
mov dword [rbp + 0x74], eax
lea rax, [rdi + rbx]
mov ecx, edi
add r13d, edi
add qword [rbp + 8], rcx
cmp dword [rbp + 0x80], 0
mov qword [rbp + 0x18], rax
jne 0x40ae50
test r12, r12
je 0x40ae50
mov byte [r12], 1
jmp 0x40ae50
mov ebx, dword [rbp + 0x24]
mov rdi, qword [rbp + 0x18]
lea rcx, [rbp + 8]
mov edx, 2
call fcn.004095b0
mov esi, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x74]
sub esi, ebx
mov rdx, rdi
mov r14d, eax
mov r8d, esi
call fcn.004090e0
sub dword [rbp + 0x80], esi
add r13d, esi
cmp r14d, 1
mov dword [rbp + 0x74], eax
je 0x40ae80
cmp dword [rbp + 0x80], 0
je 0x40ae80
test r14d, r14d
jne 0x40ae5f
cmp dword [rbp + 0x20], 0
ja 0x40abf0
test r14d, r14d
je 0x40ae8a
mov eax, r14d
jmp 0x40ae8d
test r12, r12
je 0x40ae6e
mov byte [r12], 1
xor eax, eax
jmp 0x40ae8d
mov eax, 0xffffffff
jmp 0x40ae8d
mov eax, 0xffffff96
jmp 0x40ae8d
test r12, r12
je 0x40ae8a
mov byte [r12], 1
mov eax, r13d
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x58]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
add rsp, 0x48
ret