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

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xf8]
mov r15d, r8d
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], edx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x70], 0x474e5089
mov dword [rsp + 0x74], 0xa1a0a0d
test edx, edx
jne 0x7ff668c5318f
lea eax, [r8 + r8*2]
mov dword [rsp + 0x44], eax
lea ebp, [r8 + r8*2]
mov qword [rsp + 0x90], rdi
lea esi, [rbp + 1]
mov eax, r9d
mul esi
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x4c], esi
mov ecx, eax
cmovo rcx, rbx
call qword [sym.imp.ucrtbase.dll_malloc]
mov qword [rsp + 0x58], rax
mov r12, rax
test rax, rax
je 0x7ff668c531ec
mov eax, 3
mul r15d
mov ecx, eax
cmovo rcx, rbx
call qword [sym.imp.ucrtbase.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x7ff668c53214
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_free]
xor eax, eax
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.7ff668cb8ee0
add rsp, 0x98
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rsp + 0x40]
xor edi, edi
mov qword [rsp + 0x88], r13
mov r13d, edi
test eax, eax
jle 0x7ff668c533ec
movsxd r15, ebp
mov r12d, edi
mov r14d, 0x7fffffff
mov esi, edi
nop dword [rax + rax]
mov r8d, dword [rsp + 0x48]
mov r9d, eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x20], r13d
call fcn.7ff668c52dd0
mov r10d, edi
mov rcx, rdi
test ebp, ebp
jle 0x7ff668c53307
cmp ebp, 8
jb 0x7ff668c53307
cmp dword [0x7ff668cee710], 2
jl 0x7ff668c53307
mov edx, ebp
xorps xmm3, xmm3
xorps xmm4, xmm4
and edx, 0x80000007
jge 0x7ff668c5329f
dec edx
or edx, 0xfffffff8
inc edx
mov eax, ebp
sub eax, edx
movsxd rdx, eax
nop word [rax + rax]
movd xmm0, dword [rcx + rbx]
pmovsxbd xmm1, xmm0
movd xmm0, dword [rcx + rbx + 4]
pabsd xmm2, xmm1
paddd xmm3, xmm2
add rcx, 8
pmovsxbd xmm1, xmm0
pabsd xmm2, xmm1
paddd xmm2, xmm4
movdqa xmm4, xmm2
cmp rcx, rdx
jl 0x7ff668c532b0
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, r15
jge 0x7ff668c5335c
mov rax, r15
sub rax, rcx
cmp rax, 2
jl 0x7ff668c53349
lea r11, [r15 - 1]
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 0x7ff668c53322
cmp rcx, r15
jge 0x7ff668c53355
movsx eax, byte [rcx + rbx]
cdq
xor eax, edx
sub eax, edx
add r10d, eax
lea eax, [r9 + r8]
add r10d, eax
cmp r10d, r14d
mov eax, esi
cmovge eax, r12d
inc esi
cmp r10d, r14d
mov r12d, eax
mov eax, dword [rsp + 0x40]
cmovge r10d, r14d
mov r14d, r10d
cmp esi, 5
jl 0x7ff668c53240
cmp esi, r12d
je 0x7ff668c533ae
mov r8d, dword [rsp + 0x48]
mov r9d, eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x20], r13d
call fcn.7ff668c52dd0
mov esi, r12d
mov r12, qword [rsp + 0x58]
lea eax, [rbp + 1]
imul eax, r13d
mov rdx, rbx
movsxd r8, ebp
lea rcx, [r12 + 1]
cdqe
add rcx, rax
mov byte [rax + r12], sil
call sub.vcruntime140.dll_memcpy
mov eax, dword [rsp + 0x40]
inc r13d
cmp r13d, eax
jl 0x7ff668c53230
mov r15d, dword [rsp + 0x48]
mov esi, dword [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov r14d, dword [rsp + 0x40]
lea r8, [rsp + 0x68]
imul esi, r14d
mov r9d, 8
mov rcx, r12
mov edx, esi
call fcn.7ff668c51a60
mov rcx, qword [rsp + 0x58]
mov r12, rax
call qword [sym.imp.ucrtbase.dll_free]
mov r13, qword [rsp + 0x88]
test r12, r12
je 0x7ff668c531ec
mov ecx, dword [rsp + 0x68]
mov rax, 0xffffffffffffffff
add ecx, 0x2d
add ecx, 0xc
cmovb rcx, rax
call qword [sym.imp.ucrtbase.dll_malloc]
mov rbp, rax
test rax, rax
je 0x7ff668c531ec
mov rcx, qword [rsp + 0x60]
lea rsi, [rbp + 8]
movsxd r8, dword [rsp + 0x68]
lea eax, [r8 + 0x39]
mov dword [rcx], eax
mov rax, qword [rsp + 0x70]
mov qword [rbp], rax
mov eax, r15d
sar eax, 0x18
mov byte [rsi + 8], al
mov eax, r15d
sar eax, 0x10
mov byte [rsi + 9], al
mov eax, r15d
sar eax, 8
mov byte [rsi + 0xa], al
mov eax, r14d
sar eax, 0x18
mov byte [rsi + 0xc], al
mov eax, r14d
sar eax, 0x10
mov byte [rsi + 0xd], al
mov eax, r14d
sar eax, 8
mov byte [rsi + 0xe], al
mov byte [rsi + 0xf], r14b
lea r14, [0x7ff668cd9a00]
mov dword [rsi], 0xd000000
mov dword [rsi + 4], 0x52444849
mov byte [rsi + 0xb], r15b
mov dword [rsi + 0x10], 0x208
mov byte [rsi + 0x14], dil
movzx eax, byte [rsi + 4]
not al
movzx ecx, al
movzx eax, byte [rsi + 5]
mov edx, dword [r14 + rcx*4]
xor edx, 0xffffff
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 6]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 7]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 8]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 9]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 0xa]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, r15b
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 0xc]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 0xd]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [r14 + rcx*4]
mov rbx, r8
movzx eax, byte [rsi + 0xe]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 0xf]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 0x10]
mov byte [rsi + 0x1c], r8b
mov dword [rsi + 0x1d], 0x54414449
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [r14 + rcx*4]
mov eax, edx
shr edx, 8
xor rax, 2
movzx ecx, al
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [r14 + rcx*4]
not edx
mov eax, edx
mov byte [rsi + 0x18], dl
shr eax, 0x18
mov byte [rsi + 0x15], al
mov eax, edx
shr eax, 0x10
mov byte [rsi + 0x16], al
mov eax, edx
shr eax, 8
mov rdx, r12
mov byte [rsi + 0x17], al
mov eax, r8d
sar eax, 0x18
mov byte [rsi + 0x19], al
mov eax, r8d
sar eax, 0x10
mov byte [rsi + 0x1a], al
mov eax, r8d
sar eax, 8
mov byte [rsi + 0x1b], al
add rsi, 0x21
mov rcx, rsi
call sub.vcruntime140.dll_memcpy
mov rcx, r12
add rsi, rbx
call qword [sym.imp.ucrtbase.dll_free]
movsxd rcx, dword [rsp + 0x68]
mov r8d, 0xffffffff
lea eax, [rcx + 4]
movsxd r10, eax
test eax, eax
jle 0x7ff668c5367c
mov rax, rsi
sub rax, rcx
nop dword [rax]
movzx edx, byte [rdi + rax - 4]
inc rdi
movzx ecx, r8b
xor rdx, rcx
shr r8d, 8
xor r8d, dword [r14 + rdx*4]
cmp rdi, r10
jl 0x7ff668c53660
mov edx, dword [0x7ff668cd9cd8]
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 [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsi + 0xb]
xor edx, dword [r14 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, rbp
xor edx, dword [r14 + 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 0x7ff668c531ee