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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140209000]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xf8]
lea ebp, [r8*4]
mov qword [rsp + 0x68], rax
lea r15d, [rbp + 1]
mov qword [rsp + 0x58], rcx
mov eax, r9d
mul r15d
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x40], r9d
mov ecx, eax
mov r14d, r8d
cmovo rcx, rbx
mov dword [rsp + 0x44], r8d
mov dword [rsp + 0x78], 0x474e5089
mov dword [rsp + 0x7c], 0xa1a0a0d
mov dword [rsp + 0x4c], r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x60], rax
mov r13, rax
test rax, rax
je 0x140188394
mov eax, 4
mul r14d
mov ecx, eax
cmovo rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1401883c1
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401981a0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsp + 0x40]
xor edi, edi
mov r12d, edi
test eax, eax
jle 0x14018858a
movsxd r14, ebp
mov dword [rsp + 0x48], edi
nop dword [rax]
mov r13d, edi
mov r15d, 0x7fffffff
mov esi, edi
nop dword [rax + rax]
mov r8d, dword [rsp + 0x44]
mov r9d, eax
mov rcx, qword [rsp + 0x58]
mov edx, ebp
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x20], r12d
call fcn.140187f80
mov r10d, edi
mov rax, rdi
test ebp, ebp
jle 0x14018849f
cmp ebp, 8
jb 0x14018849f
cmp dword [0x140209050], 2
jl 0x14018849f
mov edx, ebp
xorps xmm3, xmm3
xorps xmm4, xmm4
and edx, 0x80000007
jge 0x140188445
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, ebp
sub ecx, edx
movsxd rdx, ecx
nop dword [rax]
pmovsxbd xmm1, dword [rbx + rax]
pabsd xmm2, xmm1
pmovsxbd xmm1, dword [rbx + rax + 4]
paddd xmm3, xmm2
add rax, 8
pabsd xmm2, xmm1
paddd xmm2, xmm4
movdqa xmm4, xmm2
cmp rax, rdx
jl 0x140188450
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 rax, r14
jge 0x140188500
mov rcx, r14
sub rcx, rax
cmp rcx, 2
jl 0x1401884eb
lea r11, [r14 - 1]
nop word [rax + rax]
movsx ecx, byte [rbx + rax]
mov edx, ecx
neg edx
cmovs edx, ecx
movsx ecx, byte [rbx + rax + 1]
add r8d, edx
mov edx, ecx
neg edx
cmovs edx, ecx
add rax, 2
add r9d, edx
cmp rax, r11
jl 0x1401884c0
cmp rax, r14
jge 0x1401884f9
movsx ecx, byte [rax + rbx]
mov eax, ecx
neg eax
cmovs eax, ecx
add r10d, eax
lea eax, [r9 + r8]
add r10d, eax
cmp r10d, r15d
jge 0x14018850b
mov r15d, r10d
mov r13d, esi
mov eax, dword [rsp + 0x40]
inc esi
cmp esi, 5
jl 0x1401883f0
cmp esi, r13d
je 0x140188545
mov r8d, dword [rsp + 0x44]
mov r9d, eax
mov rcx, qword [rsp + 0x58]
mov edx, ebp
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x20], r12d
call fcn.140187f80
mov esi, r13d
mov r13, qword [rsp + 0x60]
mov r8, r14
movsxd r15, dword [rsp + 0x48]
mov rdx, rbx
lea rcx, [r13 + 1]
add rcx, r15
mov byte [r15 + r13], sil
call sub.VCRUNTIME140.dll_memmove
lea eax, [rbp + 1]
inc r12d
add r15d, eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x48], r15d
cmp r12d, eax
jl 0x1401883e0
mov r14d, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [rsp + 0x40]
lea r8, [rsp + 0x70]
imul r15d, esi
mov r9d, 8
mov rcx, r13
mov edx, r15d
call fcn.140186df0
mov rcx, r13
mov rbp, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbp, rbp
je 0x140188394
mov ecx, dword [rsp + 0x70]
mov rax, 0xffffffffffffffff
add ecx, 0x2d
add ecx, 0xc
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x140188394
mov eax, dword [rsp + 0x70]
lea rbx, [r15 + 8]
mov r12, qword [rsp + 0x68]
add eax, 0x39
mov dword [r12], eax
mov rax, qword [rsp + 0x78]
mov qword [r15], rax
mov eax, r14d
sar eax, 0x18
mov byte [rbx + 8], al
mov eax, r14d
sar eax, 0x10
mov byte [rbx + 9], al
mov eax, r14d
sar eax, 8
mov byte [rbx + 0xa], al
mov eax, esi
sar eax, 0x18
mov byte [rbx + 0xc], al
mov eax, esi
sar eax, 0x10
mov byte [rbx + 0xd], al
mov eax, esi
sar eax, 8
mov byte [rbx + 0xe], al
mov byte [rbx + 0xf], sil
lea rsi, [0x1401e8720]
mov dword [rbx], 0xd000000
mov dword [rbx + 4], 0x52444849
mov byte [rbx + 0xb], r14b
mov dword [rbx + 0x10], 0x608
mov byte [rbx + 0x14], dil
movzx eax, byte [rbx + 4]
not al
movzx ecx, al
movzx eax, byte [rbx + 5]
mov edx, dword [rsi + rcx*4]
xor edx, 0xffffff
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 6]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 7]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 8]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 9]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 0xa]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, r14b
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 0xc]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 0xd]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
movzx eax, byte [rbx + 0xe]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 0xf]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 0x10]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
mov eax, edx
shr edx, 8
xor rax, 6
movzx ecx, al
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [rsi + rcx*4]
not edx
mov byte [rbx + 0x18], dl
mov eax, edx
shr eax, 0x18
mov byte [rbx + 0x15], al
mov eax, edx
shr eax, 0x10
mov byte [rbx + 0x16], al
mov eax, edx
shr eax, 8
mov rdx, rbp
mov byte [rbx + 0x17], al
mov eax, dword [rsp + 0x70]
sar eax, 0x18
mov byte [rbx + 0x19], al
mov eax, dword [rsp + 0x70]
sar eax, 0x10
mov byte [rbx + 0x1a], al
mov eax, dword [rsp + 0x70]
sar eax, 8
mov byte [rbx + 0x1b], al
movzx eax, byte [rsp + 0x70]
mov byte [rbx + 0x1c], al
mov dword [rbx + 0x1d], 0x54414449
add rbx, 0x21
movsxd r8, dword [rsp + 0x70]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
movsxd rax, dword [rsp + 0x70]
mov rcx, rbp
add rbx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movsxd rcx, dword [rsp + 0x70]
mov r8d, 0xffffffff
lea eax, [rcx + 4]
movsxd r10, eax
test eax, eax
jle 0x14018880d
mov r9, rbx
sub r9, rcx
nop dword [rax]
movzx edx, byte [r9 + rdi - 4]
inc rdi
movzx ecx, r8b
xor rdx, rcx
shr r8d, 8
xor r8d, dword [rsi + rdx*4]
cmp rdi, r10
jl 0x1401887f0
mov rdx, qword [0x1401e89f8]
not r8d
xor edx, 0xffffff
mov byte [rbx + 3], r8b
movzx ecx, dl
mov eax, r8d
shr eax, 0x18
mov byte [rbx], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx + 1], al
mov eax, r8d
shr eax, 8
mov byte [rbx + 2], al
shr edx, 8
mov dword [rbx + 4], 0
mov dword [rbx + 8], 0x444e4549
movzx eax, byte [rbx + 9]
xor rcx, rax
movzx eax, byte [rbx + 0xa]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 0xb]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
not edx
mov ecx, edx
mov byte [rbx + 0xf], dl
mov eax, edx
shr ecx, 8
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [rbx + 0xe], cl
lea rcx, [rbx + 0x10]
mov byte [rbx + 0xd], al
movsxd rdx, dword [r12]
add rdx, r15
cmp rcx, rdx
je 0x1401888c0
mov r8d, 0x4cf
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, str.o__out__out_len
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, r15
jmp 0x140188396