Function at 0x6612d960
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea ecx, [ebp - 0x80]
push ebx
sub esp, 0xac
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.66182190
lea eax, [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], 0x4e414d50
sub esp, 4
mov dword [ebp - 0x2c], 0x30000
mov dword [esp + 4], 0x1c
mov dword [esp], eax
mov dword [ebp - 0x28], 0x10000
mov dword [ebp - 0x1c], 0x1c
call fcn.66182280
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], eax
sub esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], 0
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x38], 0
lea eax, [eax + eax*2]
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
add eax, 4
mov dword [ebp - 0x94], eax
cmp ebx, eax
je 0x6612dc05
mov dword [ebp - 0x98], 0
xor esi, esi
lea esi, [esi]
mov edi, dword [ebx + 0x10]
xor eax, eax
movzx ecx, byte [edi]
test cl, cl
je 0x6612dacf
mov dword [ebp - 0x9c], ebx
lea esi, [esi]
lea esi, [esi]
movsx ebx, cl
cdq
and ecx, 1
add eax, eax
and edx, 0x4c11db7
or eax, ecx
mov ecx, ebx
xor eax, edx
sar ecx, 1
cdq
and ecx, 1
add eax, eax
or eax, ecx
and edx, 0x4c11db7
xor edx, eax
mov eax, ebx
mov ecx, edx
sar eax, 2
and eax, 1
sar edx, 0x1f
add ecx, ecx
and edx, 0x4c11db7
or ecx, eax
xor ecx, edx
mov edx, ecx
mov eax, ecx
mov ecx, ebx
sar ecx, 3
add edx, edx
sar eax, 0x1f
and ecx, 1
and eax, 0x4c11db7
or ecx, edx
mov edx, ebx
xor eax, ecx
sar edx, 4
mov ecx, eax
and edx, 1
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
or eax, edx
mov edx, ebx
add edi, 1
xor ecx, eax
sar edx, 5
mov eax, ecx
and edx, 1
add ecx, ecx
or edx, ecx
sar eax, 0x1f
movzx ecx, byte [edi]
and eax, 0x4c11db7
xor eax, edx
test cl, cl
jne 0x6612da30
mov ebx, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x58], edi
lea edi, [ebp - 0x48]
test esi, esi
je 0x6612db2c
lea esi, [esi]
nop
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
cmp dword [esi + 0x10], eax
jae 0x6612db0c
test ecx, ecx
je 0x6612db20
mov esi, ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
cmp dword [esi + 0x10], eax
jb 0x6612dafb
mov edi, esi
test edx, edx
je 0x6612db20
mov esi, edx
jmp 0x6612daf0
lea esi, [ebp - 0x48]
cmp edi, esi
je 0x6612db2c
cmp dword [edi + 0x10], eax
jbe 0x6612db4f
lea eax, [ebp - 0x60]
mov dword [esp], edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
call fcn.660de140
sub esp, 8
mov edi, eax
mov eax, dword [ebp - 0x60]
add dword [ebp - 0x98], 1
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x5c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [edi + 0x1c], eax
mov edi, dword [ebp - 0x90]
mov eax, dword [ebx + 0x14]
mov dword [esp], ebx
lea eax, [edi + eax + 1]
mov dword [ebp - 0x90], eax
call fcn.661c83d0
mov ebx, eax
cmp dword [ebp - 0x94], eax
je 0x6612db95
mov esi, dword [ebp - 0x44]
jmp 0x6612da10
mov ebx, dword [ebp - 0x40]
lea eax, [ebp - 0x48]
cmp ebx, eax
je 0x6612dbca
nop
lea eax, [ebx + 0x14]
mov dword [esp + 4], 0xc
mov ecx, dword [ebp + 8]
mov dword [esp], eax
call fcn.66182280
sub esp, 8
mov dword [esp], ebx
call fcn.661c83d0
mov ebx, eax
lea eax, [ebp - 0x48]
cmp ebx, eax
jne 0x6612dba0
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
jmp 0x6612dbfd
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp + 8]
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.66182280
sub esp, 8
mov dword [esp], ebx
call fcn.661c83d0
mov ebx, eax
cmp dword [ebp - 0x94], ebx
jne 0x6612dbd8
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x60]
mov dword [esp], eax
call fcn.66182190
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
sub esp, 4
sar esi, 0x1f
xor edi, esi
mov eax, esi
mov ecx, edi
cdq
sub ecx, esi
mov dword [ebp - 0x8c], edx
and ecx, 3
xor ecx, esi
mov dword [ebp - 0x90], ecx
sub eax, dword [ebp - 0x90]
sbb edx, dword [ebp - 0x8c]
add eax, 4
adc edx, 0
mov ecx, eax
xor ecx, 4
mov ebx, edx
or ebx, ecx
jne 0x6612dd2e
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov dword [esp], eax
call fcn.66182190
mov eax, dword [ebp - 0x70]
sub esp, 4
sub eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov edx, eax
mov dword [ebp - 0x24], eax
shr edx, 1
shr eax, 2
je 0x6612dd55
xor ecx, ecx
lea esi, [esi]
add ecx, 1
shr eax, 1
jne 0x6612dc90
mov eax, 1
shl eax, cl
mov word [ebp - 0x20], ax
xor ecx, ecx
lea esi, [esi]
add ecx, 1
shr edx, 1
jne 0x6612dca8
mov eax, 1
shl eax, cl
sub eax, 1
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0xc], eax
call fcn.66181f80
sub esp, 0x10
lea eax, [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov dword [esp + 4], 0x1c
mov dword [esp], eax
call fcn.66182280
sub esp, 8
mov ecx, dword [ebp + 8]
mov dword [esp + 8], 2
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.661820a0
mov eax, dword [ebp - 0x44]
sub esp, 0xc
call fcn.660dd200
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
lea eax, [ebp - 0x84]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x84], 0
call fcn.66182280
sub esp, 8
jmp 0x6612dc5a
mov eax, 1
mov word [ebp - 0x20], ax
test edx, edx
jne 0x6612dca2
xor eax, eax
jmp 0x6612dcb9