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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov byte [eax], 0
mov eax, 0xaaaaaaab
push edi
mov dword [ebp - 0x10], esi
mov ecx, dword [esi + 0x20]
lea edx, [ecx + ecx]
mul edx
shr edx, 1
inc edx
cmp dword [esi], edx
jb 0x10074bc3
cmp ecx, 0x401e825f
jae 0x10074bc3
xor eax, eax
lea ebx, [ebx]
cmp ecx, dword [eax*4 + 0x1000d300]
jb 0x1007498f
inc eax
cmp eax, 0x16
jb 0x10074980
mov edi, dword [eax*4 + 0x1000d300]
lea ecx, [ebp - 0x1c]
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call fcn.1004e920
mov ecx, dword [ebp - 0x1c]
test eax, eax
je 0x10074bab
lea eax, [edi*4]
push eax
push 0
push ecx
call fcn.100abd80
add esp, 0xc
or ebx, 0xffffffff
or ecx, 0xffffffff
mov edi, dword [esi + 0x20]
mov eax, ebx
lea ebx, [eax + 1]
neg ebx
sbb ebx, ebx
and ebx, eax
cmp ebx, edi
jae 0x10074b23
mov eax, dword [esi + 0x1c]
lea eax, [eax + ebx*4]
mov edx, dword [eax]
test edx, edx
je 0x10074a03
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [edx + 4]
jb 0x10074a14
inc ebx
add eax, 4
cmp ebx, edi
jae 0x10074b23
or ecx, 0xffffffff
jmp 0x100749f4
mov eax, dword [esi + 0x1c]
lea edi, [ebp - 0x38]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 4]
or edx, 0xffffffff
lea esi, [eax + ecx*4]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov edi, 0x1c
lea esi, [ebp - 0x36]
lea ecx, [ecx]
movzx ecx, byte [esi - 2]
lea esi, [esi + 4]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1000f870]
movzx ecx, byte [esi - 5]
movzx eax, dl
xor ecx, eax
shr edx, 8
movzx eax, byte [esi - 4]
xor edx, dword [ecx*4 + 0x1000f870]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1000f870]
movzx ecx, byte [esi - 3]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1000f870]
sub edi, 4
jne 0x10074a50
mov eax, edx
mov ecx, dword [ebp - 0x1c]
xor edx, edx
div dword [ebp - 0x18]
mov esi, dword [ecx + edx*4]
lea edi, [ecx + edx*4]
test esi, esi
jne 0x10074ae4
push 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
je 0x10074bab
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [edi], esi
mov eax, dword [esi + 4]
xor edi, edi
or edi, dword [ebp - 8]
inc eax
cmp eax, 0x1fffffff
ja 0x10074bab
push eax
mov ecx, esi
call fcn.1004ef40
test eax, eax
je 0x10074ba8
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov dword [ecx + eax*8 - 8], edi
mov dword [ecx + eax*8 - 4], edx
mov ecx, dword [ebp - 0xc]
jmp 0x100749d8
xor edi, edi
cmp dword [esi + 0x20], edi
jbe 0x10074b62
lea ebx, [ebx]
mov eax, dword [esi + 0x1c]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x10074b5c
mov eax, dword [ebx]
test eax, eax
je 0x10074b47
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0xc
push ebx
call fcn.100a53ab
mov eax, dword [esi + 0x1c]
add esp, 8
mov dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 0x20]
jb 0x10074b30
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10074b79
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 0x1c], 0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
mov esi, 1
mov eax, dword [ebp + 8]
mov byte [eax], 1
jmp 0x10074bad
mov ecx, dword [ebp - 0x1c]
xor esi, esi
test ecx, ecx
je 0x10074bb8
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4