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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0xd0
mov rax, qword [0x1400be680]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov esi, dword [rsp + 0x120]
mov r12d, r8d
mov rax, qword [rsp + 0x128]
mov ebp, esi
movdqa xmm0, xmmword [0x1400a3be0]
mov r15d, edx
imul ebp, r8d
mov qword [rsp + 0x80], rax
mov eax, dword [0x1400be108]
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], edx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x98], 6
mov dword [rsp + 0xa0], 0x474e5089
mov dword [rsp + 0xa4], 0xa1a0a0d
movdqu xmmword [rsp + 0x88], xmm0
test edx, edx
jne 0x14008072e
mov r15d, ebp
mov dword [rsp + 0x44], ebp
cmp eax, 5
mov qword [rsp + 0xc8], rbx
mov ecx, 0xffffffff
mov qword [rsp + 0xc0], r13
cmovge eax, ecx
mov qword [rsp + 0xb8], r14
mov dword [rsp + 0x50], eax
lea eax, [rbp + 1]
imul eax, r9d
movsxd rcx, eax
mov dword [rsp + 0x54], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x70], rax
mov rdi, rax
test rax, rax
je 0x140080793
movsxd r14, ebp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400807cc
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov r14, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140094830
add rsp, 0xd0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsp + 0x40]
xor edi, edi
mov r13d, edi
test eax, eax
jle 0x1400809e7
lea ecx, [rbp + 1]
movsxd rcx, ecx
mov qword [rsp + 0x78], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x68], rcx
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xffffffff
jle 0x14008082b
mov qword [rsp + 0x38], rbx
mov esi, ecx
mov dword [rsp + 0x30], ecx
mov r9d, eax
mov ecx, dword [rsp + 0x4c]
mov r8d, r12d
mov dword [rsp + 0x28], ecx
mov edx, r15d
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], r13d
call fcn.14007f280
jmp 0x1400809af
mov r12d, edi
mov r15d, 0x7fffffff
mov esi, edi
nop word [rax + rax]
mov ecx, dword [rsp + 0x4c]
mov r9d, eax
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], r13d
call fcn.14007f280
mov r10d, edi
mov rcx, rdi
test ebp, ebp
jle 0x1400808f1
cmp ebp, 8
jb 0x1400808f1
cmp dword [0x1400be6d0], 2
jl 0x1400808f1
mov edx, ebp
xorps xmm3, xmm3
xorps xmm4, xmm4
and edx, 0x80000007
jge 0x14008089b
dec edx
or edx, 0xfffffff8
inc edx
mov eax, ebp
sub eax, edx
movsxd rdx, eax
pmovsxbd xmm1, dword [rcx + rbx]
pabsd xmm2, xmm1
pmovsxbd xmm1, dword [rcx + rbx + 4]
paddd xmm3, xmm2
add rcx, 8
pabsd xmm2, xmm1
paddd xmm2, xmm4
movdqa xmm4, xmm2
cmp rcx, rdx
jl 0x1400808a2
paddd xmm3, xmm2
movdqa xmm0, xmm3
psrldq xmm0, 8
paddd xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
paddd xmm3, xmm0
movd r10d, xmm3
mov r8d, edi
mov r9d, edi
cmp rcx, r14
jge 0x14008094a
mov rax, r14
sub rax, rcx
cmp rax, 2
jl 0x140080937
lea r11, [r14 - 1]
nop dword [rax]
movsx eax, byte [rcx + rbx]
cdq
xor eax, edx
sub eax, edx
add r8d, eax
movsx eax, byte [rcx + rbx + 1]
cdq
add rcx, 2
xor eax, edx
sub eax, edx
add r9d, eax
cmp rcx, r11
jl 0x140080910
cmp rcx, r14
jge 0x140080943
movsx eax, byte [rcx + rbx]
cdq
xor eax, edx
sub eax, edx
add r10d, eax
lea eax, [r9 + r8]
add r10d, eax
cmp r10d, r15d
mov eax, esi
cmovge eax, r12d
inc esi
cmp r10d, r15d
mov r12d, eax
mov eax, dword [rsp + 0x40]
cmovge r10d, r15d
mov r15d, r10d
cmp esi, 5
jl 0x140080840
mov r15d, dword [rsp + 0x44]
cmp esi, r12d
je 0x1400809aa
mov eax, dword [rsp + 0x4c]
mov edx, r15d
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r13d
call fcn.14007f280
mov esi, r12d
mov r12d, dword [rsp + 0x48]
mov rax, qword [rsp + 0x68]
mov r8, r14
mov rdx, rbx
mov byte [rax], sil
lea rcx, [rax + 1]
mov rsi, rax
call sub.VCRUNTIME140.dll_memcpy
add rsi, qword [rsp + 0x78]
inc r13d
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x68], rsi
cmp r13d, eax
jl 0x1400807f2
mov esi, dword [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r9d, dword [0x1400be104]
lea r8, [rsp + 0x50]
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x70]
call fcn.140080d20
mov rcx, qword [rsp + 0x70]
mov r13, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r13, r13
je 0x140080793
movsxd r15, dword [rsp + 0x50]
lea ebx, [r15 + 0x39]
movsxd rcx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140080793
mov r9d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x80]
mov dword [rax], ebx
mov rax, qword [rsp + 0xa0]
mov qword [r14], rax
mov eax, r12d
sar eax, 0x18
mov byte [r14 + 0x10], al
mov eax, r12d
sar eax, 0x10
mov byte [r14 + 0x11], al
mov eax, r12d
sar eax, 8
mov byte [r14 + 0x12], al
mov eax, r9d
sar eax, 0x18
mov byte [r14 + 0x14], al
mov eax, r9d
sar eax, 0x10
mov byte [r14 + 0x15], al
mov eax, r9d
sar eax, 8
mov byte [r14 + 0x16], al
mov byte [r14 + 0x13], r12b
lea r12, [0x1400be200]
mov dword [r14 + 8], 0xd000000
mov dword [r14 + 0xc], 0x52444849
mov byte [r14 + 0x17], r9b
mov byte [r14 + 0x18], 8
mov word [r14 + 0x1a], di
mov byte [r14 + 0x1c], dil
movsxd rax, esi
movzx r8d, byte [rsp + rax*4 + 0x88]
mov byte [r14 + 0x19], r8b
movzx eax, byte [r14 + 0xc]
not al
movzx ecx, al
movzx eax, byte [r14 + 0xd]
mov edx, dword [r12 + rcx*4]
xor edx, 0xffffff
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r14 + 0xe]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r14 + 0xf]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r14 + 0x10]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r14 + 0x11]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r14 + 0x12]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r14 + 0x13]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r14 + 0x14]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r14 + 0x15]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r14 + 0x16]
lea rsi, [r14 + 0x29]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, r9b
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r14 + 0x18]
mov byte [r14 + 0x24], r15b
mov dword [r14 + 0x25], 0x54414449
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
shr edx, 8
xor rcx, r8
mov r8, r15
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [r12 + rcx*4]
mov rcx, rsi
not edx
mov eax, edx
mov byte [r14 + 0x20], dl
shr eax, 0x18
mov byte [r14 + 0x1d], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 0x1e], al
mov eax, edx
shr eax, 8
mov rdx, r13
mov byte [r14 + 0x1f], al
mov eax, r15d
sar eax, 0x18
mov byte [r14 + 0x21], al
mov eax, r15d
sar eax, 0x10
mov byte [r14 + 0x22], al
mov eax, r15d
sar eax, 8
mov byte [r14 + 0x23], al
call sub.VCRUNTIME140.dll_memcpy
mov rcx, r13
add rsi, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea eax, [r15 + 4]
mov r8d, 0xffffffff
movsxd r9, eax
test eax, eax
jle 0x140080c8d
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rdi + r14 + 0x25]
inc rdi
movzx ecx, r8b
xor rdx, rcx
shr r8d, 8
xor r8d, dword [r12 + rdx*4]
cmp rdi, r9
jl 0x140080c70
mov edx, dword [0x1400be4d8]
not r8d
xor edx, 0xffffff
mov byte [rsi + 3], r8b
movzx ecx, dl
mov eax, r8d
shr eax, 0x18
mov byte [rsi], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi + 1], al
mov eax, r8d
mov dword [rsi + 4], 0
mov dword [rsi + 8], 0x444e4549
shr edx, 8
shr eax, 8
mov byte [rsi + 2], al
movzx eax, byte [rsi + 9]
xor rcx, rax
movzx eax, byte [rsi + 0xa]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 0xb]
xor edx, dword [r12 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, r14
xor edx, dword [r12 + rcx*4]
not edx
mov ecx, edx
mov byte [rsi + 0xf], dl
shr ecx, 0x18
mov byte [rsi + 0xc], cl
mov ecx, edx
shr ecx, 0x10
mov byte [rsi + 0xd], cl
mov ecx, edx
shr ecx, 8
mov byte [rsi + 0xe], cl
jmp 0x140080795