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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x57b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
movaps xmm0, xmmword [0x561520]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, eax
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0x14]
imul edi, ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], 6
mov dword [ebp - 0xc], 0x474e5089
mov dword [ebp - 8], 0xa1a0a0d
mov dword [ebp - 0x44], edi
movups xmmword [ebp - 0x6c], xmm0
test edx, edx
jne 0x402d62
mov dword [ebp - 0x2c], edi
jmp 0x402d65
mov dword [ebp - 0x44], edi
xor ecx, ecx
lea eax, [edi + 1]
mov dword [ebp - 0x20], eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004df045
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
je 0x402daf
xor ecx, ecx
mov eax, ebx
mul dword [ebp - 0x1c]
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004df045
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x402dc2
mov eax, dword [ebp - 0x38]
push eax
call fcn.004da263
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d523a
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebp - 0x14], edx
test esi, esi
jle 0x402f63
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
nop word [eax + eax]
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x50], SysReAllocString
mov dword [ebp - 0x4c], ecx
push ebx
push ecx
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x3c]
call fcn.004029e0
xor esi, esi
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 0x48], esi
test edi, edi
jle 0x402e89
cmp edi, 8
jb 0x402e89
cmp dword [0x5a9094], 2
jl 0x402e89
mov eax, edi
and eax, 0x80000007
jns 0x402e32
dec eax
or eax, 0xfffffff8
inc eax
mov edx, edi
xorps xmm1, xmm1
sub edx, eax
xorps xmm2, xmm2
nop dword [eax]
pmovsxbd xmm0, dword [ebx + ecx]
pabsd xmm0, xmm0
paddd xmm1, xmm0
pmovsxbd xmm0, dword [ebx + ecx + 4]
add ecx, 8
pabsd xmm0, xmm0
paddd xmm2, xmm0
cmp ecx, edx
jl 0x402e40
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd esi, xmm1
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
cmp ecx, edi
jge 0x402ef2
mov eax, edi
sub eax, ecx
cmp eax, 2
jl 0x402edf
lea eax, [edi - 1]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov esi, edi
nop
movsx eax, byte [ebx + ecx]
cdq
xor eax, edx
sub eax, edx
add edi, eax
movsx eax, byte [ebx + ecx + 1]
cdq
add ecx, 2
xor eax, edx
sub eax, edx
add esi, eax
cmp ecx, dword [ebp - 0x40]
jl 0x402eb0
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x48]
cmp ecx, edi
jge 0x402eea
movsx eax, byte [ecx + ebx]
cdq
xor eax, edx
sub eax, edx
add esi, eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x28]
add esi, eax
mov edx, dword [ebp - 0x50]
cmp esi, edx
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
cmovge eax, dword [ebp - 0x30]
inc ecx
cmp esi, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], ecx
cmovge esi, edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x50], esi
mov esi, dword [ebp - 0x18]
cmp ecx, 5
jl 0x402df3
cmp ecx, eax
je 0x402f3d
mov ecx, dword [ebp - 0x54]
push ebx
push eax
push dword [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x3c]
call fcn.004029e0
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov eax, dword [ebp - 0x34]
push edi
push ebx
mov byte [eax], cl
inc eax
push eax
call fcn.004d6e20
mov edx, dword [ebp - 0x14]
lea eax, [edi + 1]
add dword [ebp - 0x34], eax
inc edx
add esp, 0xc
mov dword [ebp - 0x14], edx
cmp edx, esi
jl 0x402de0
mov edi, dword [ebp - 0x20]
push ebx
call fcn.004da263
push dword [0x57bb88]
imul edi, esi
lea eax, [ebp - 0x10]
mov esi, dword [ebp - 0x38]
mov ecx, esi
push eax
mov edx, edi
call fcn.00401f10
mov ebx, eax
push esi
mov dword [ebp - 0x40], ebx
call fcn.004da263
add esp, 0x10
test ebx, ebx
je 0x402daf
mov ecx, dword [ebp - 0x10]
xor edx, edx
add ecx, 0x2d
add ecx, 0xc
setb dl
neg edx
or edx, ecx
push edx
call fcn.004df045
mov edx, eax
add esp, 4
mov dword [ebp - 0x20], edx
test edx, edx
je 0x402daf
mov ebx, dword [ebp - 0x10]
lea esi, [edx + 8]
mov ecx, dword [ebp - 0x58]
lea eax, [ebx + 0x39]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
or edx, 0xffffffff
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
sar eax, 0x18
mov byte [esi + 8], al
mov eax, ecx
sar eax, 0x10
mov byte [esi + 9], al
mov eax, ecx
sar eax, 8
mov byte [esi + 0xa], al
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sar eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
sar eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
sar eax, 8
xor edi, edi
mov byte [esi + 0xe], al
mov eax, dword [ebp - 0x1c]
mov dword [esi], 0xd000000
mov dword [esi + 4], 0x52444849
mov byte [esi + 0xf], cl
mov al, byte [ebp + eax*4 - 0x6c]
mov byte [esi + 0x10], 8
mov byte [esi + 0x11], al
mov word [esi + 0x12], 0
mov byte [esi + 0x14], 0
movzx ecx, byte [esi + edi + 4]
inc edi
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x55fd48]
cmp edi, 0x11
jl 0x403042
not edx
mov edi, dword [ebp - 0x40]
mov eax, edx
mov byte [esi + 0x18], dl
shr eax, 0x18
mov byte [esi + 0x15], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0x16], al
mov eax, edx
shr eax, 8
mov byte [esi + 0x17], al
mov eax, ebx
sar eax, 0x18
mov byte [esi + 0x19], al
mov eax, ebx
sar eax, 0x10
mov byte [esi + 0x1a], al
mov eax, ebx
sar eax, 8
push ebx
mov byte [esi + 0x1b], al
mov byte [esi + 0x1c], bl
mov dword [esi + 0x1d], 0x54414449
add esi, 0x21
push edi
push esi
call fcn.004d6e20
push edi
add esi, ebx
call fcn.004da263
mov eax, dword [ebp - 0x10]
add esp, 0x10
or edx, 0xffffffff
lea ebx, [eax + 4]
test ebx, ebx
jle 0x4030ea
mov edi, esi
sub edi, eax
sub edi, 4
nop dword [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x55fd48]
sub ebx, 1
jne 0x4030d0
not edx
mov dword [esi + 4], 0
mov eax, edx
mov byte [esi + 3], dl
shr eax, 0x18
mov byte [esi], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov dword [esi + 8], 0x444e4549
movzx eax, byte [esi + 9]
movzx ecx, byte [esi + 0xa]
xor eax, 0x46
pop edi
mov ebx, dword [eax*4 + 0x55fd48]
xor ebx, 0x22fde9
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x55fd48]
movzx ecx, byte [esi + 0xb]
movzx eax, bl
xor ecx, eax
shr ebx, 8
mov eax, dword [ebp - 0x20]
xor ebx, dword [ecx*4 + 0x55fd48]
not ebx
mov ecx, ebx
mov byte [esi + 0xf], bl
shr ecx, 0x18
mov byte [esi + 0xc], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 0xd], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 0xe], cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d523a
mov esp, ebp
pop ebp
ret