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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x14015f0c8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r14, r8
mov rbx, rdx
mov r15, rcx
mov ecx, dword [rdx + 0x64]
mov rax, qword [rdx + 0x78]
mov rdx, qword [rdx + 0x70]
cmp rdx, rax
je 0x14007b4b3
sub rax, rdx
add ecx, eax
mov edx, ecx
mov rcx, r14
call fcn.14007f640
mov rbp, qword [rbx + 0x70]
mov rdi, qword [rbx + 0x78]
sub rdi, rbp
je 0x14007b532
mov rcx, qword [r14]
mov rsi, qword [r14 + 8]
sub rsi, rcx
test rcx, rcx
jne 0x14007b4e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x14007b52c
test rbp, rbp
je 0x14007b4fe
cmp rsi, rdi
jb 0x14007b4fe
mov r8, rdi
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14007b532
mov r8, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test rbp, rbp
jne 0x14007b51b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x14007b52c
cmp rsi, rdi
jae 0x14007b532
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
cmp dword [rbx + 0x64], 0
jbe 0x14007b5e4
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.14006a5c0
nop
lea r8, [rsp + 0x20]
movzx edx, word [rbx + 0x6c]
mov rcx, r15
call fcn.14007bcd0
mov edx, dword [rbx + 0x68]
mov r8d, 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov r8d, dword [rbx + 0x64]
mov rdx, qword [rbx + 0x78]
sub rdx, qword [rbx + 0x70]
add rdx, qword [r14]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
nop
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x1c], edx
lea rcx, [rsp + 0x30]
call fcn.1400160d0
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov ecx, dword [rbx + 0x64]
mov rax, qword [rbx + 0x78]
mov rdx, qword [rbx + 0x70]
cmp rdx, rax
je 0x14007b5f8
sub eax, edx
add ecx, eax
mov r8, qword [r14]
mov eax, 0xffffffff
test ecx, ecx
je 0x14007b62b
mov r9d, ecx
lea r10, [0x140134ce0]
nop
movzx edx, al
movzx ecx, byte [r8]
xor rdx, rcx
shr eax, 8
xor eax, dword [r10 + rdx*4]
lea r8, [r8 + 1]
sub r9, 1
jne 0x14007b610
not eax
cmp dword [rbx + 0x60], eax
je 0x14007b63e
lea rcx, str.CRC32_mismatch_for_read_data.
call fcn.14007a0b0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400ceac0
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret