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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ebx
test esi, esi
je 0x51773b
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5176d7
sub ecx, edx
mov edx, esi
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x5176e5
sub edx, edi
lea eax, [ecx + 1]
add eax, edx
push eax
call fcn.00616360
mov edx, eax
add esp, 4
mov dword [ebp + 8], edx
sub eax, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x517703
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x517712
sub ebx, esi
dec edx
nop dword [eax]
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x517720
mov ecx, ebx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x517740
sub esi, ecx
mov eax, 0xffffffff
cmp esi, 0x10
jb 0x517975
mov bl, byte [edi]
movsx edx, bl
sub bl, 0x61
cmp bl, 0x19
mov bl, byte [edi + 1]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 2]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 3]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 4]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 5]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 6]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 7]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 8]
lea ecx, [edx - 0x20]
cmova ecx, edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6f2370]
movsx edx, bl
sub bl, 0x61
cmp bl, 0x19
mov bl, byte [edi + 9]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 0xa]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 0xb]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 0xc]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 0xd]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 0xe]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
mov bl, byte [edi + 0xf]
lea ecx, [edx - 0x20]
cmova ecx, edx
movsx edx, bl
xor ecx, eax
sub bl, 0x61
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x6f2370]
cmp bl, 0x19
lea ecx, [edx - 0x20]
cmova ecx, edx
add edi, 0x10
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6f2370]
sub esi, 0x10
cmp esi, 0x10
jae 0x517757
test esi, esi
je 0x5179a8
nop dword [eax]
mov bl, byte [edi]
lea edi, [edi + 1]
movsx edx, bl
sub bl, 0x61
cmp bl, 0x19
lea ecx, [edx - 0x20]
cmova ecx, edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6f2370]
sub esi, 1
jne 0x517980
pop edi
pop esi
not eax
pop ebx
pop ebp
ret