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

Disassembly:
sub esp, 0x4a8
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x4a4], eax
mov eax, dword [esp + 0x4ac]
push ebx
push ebp
push esi
push edi
mov esi, edx
push 0x2e78
mov dword [esp + 0x24], eax
mov ebx, ecx
mov dword [esp + 0x28], esi
call fcn.00424385
add esp, 4
push 0x2e78
mov ebp, eax
push 0
push ebp
call fcn.00422ac0
add esp, 0xc
push 0x2e78
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualLock]
test ebp, ebp
je 0x40ccd1
mov dword [ebp], 0xffffffff
test ebp, ebp
mov dword [esi], ebp
jne 0x40cce1
mov eax, 2
jmp 0x40d14f
mov edi, dword [ebx]
lea edx, [esp + 0x30]
mov ecx, 0x40
mov dword [esp + 0x2c], edi
mov esi, ecx
mov eax, edx
mov byte [eax], 0
add eax, 1
sub esi, 1
jne 0x40ccf4
nop
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40cd00
push edi
add ebx, 4
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.004234f0
mov esi, dword [esp + 0x2c]
mov ecx, 0x10
lea edi, [esp + 0x7c]
mov dword [esp + 0x1c], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea ebx, [ebx]
mov eax, ecx
sub eax, 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
je 0x40cd6c
sub eax, 1
je 0x40cd6c
sub eax, 1
je 0x40cd65
xor esi, esi
jmp 0x40cd71
mov esi, 0x3e8
jmp 0x40cd71
mov esi, 0x7d0
mov eax, ecx
sub eax, 1
mov dword [esp + 0x28], esi
je 0x40cde1
sub eax, 1
je 0x40cdb7
sub eax, 1
jne 0x40ce0c
call fcn.00408d90
lea edx, [esp + 0x3b0]
push edx
push esi
mov ecx, eax
mov eax, dword [esp + 0x34]
push 0x40
push eax
lea edx, [esp + 0x40]
push edx
add ecx, 0x20
lea edx, [esp + 0x84]
call fcn.0040e6f0
jmp 0x40ce09
call fcn.00408d90
mov edx, dword [esp + 0x2c]
push esi
mov ecx, eax
push 0x40
lea eax, [esp + 0x78]
push eax
push edx
lea eax, [esp + 0x40]
add ecx, 0x20
push eax
lea edx, [esp + 0x3c4]
call fcn.0040dfb0
jmp 0x40ce09
call fcn.00408d90
lea edx, [esp + 0x3b0]
push edx
mov edx, dword [esp + 0x30]
push esi
mov ecx, eax
push 0x40
lea eax, [esp + 0x7c]
push eax
push edx
add ecx, 0x20
lea edx, [esp + 0x44]
call fcn.0040e310
add esp, 0x14
mov dword [ebp], 1
mov edx, dword [ebp]
mov ecx, dword [0x463b20]
mov eax, edx
shl eax, 5
mov esi, dword [eax + 0x463bc0]
xor eax, eax
test ecx, ecx
je 0x40ce49
lea ecx, [ecx]
cmp ecx, esi
je 0x40ced1
add eax, 1
lea ecx, [eax + eax*4]
mov ecx, dword [ecx*4 + 0x463b20]
test ecx, ecx
jne 0x40ce30
xor eax, eax
mov eax, dword [eax + 8]
lea ecx, [esp + 0x3d0]
push ecx
mov dword [esp + 0x20], eax
push edx
lea eax, [ebp + 0x28]
call fcn.00408a50
mov esi, eax
add esp, 8
cmp esi, 0x12
je 0x40d0dc
mov edx, dword [ebp]
shl edx, 5
mov eax, dword [edx + 0x463bd0]
test eax, eax
mov dword [ebp + 4], eax
je 0x40d0a1
lea ebx, [ebp + 8]
jmp 0x40ce90
mov esi, dword [esp + 0x20]
mov ecx, 0x80
lea edi, [esp + 0x1b0]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 4], 1
mov ecx, 8
lea esi, [esp + 0x3b0]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jne 0x40cf8d
mov eax, dword [esp + 0x1c]
cmp eax, 8
jne 0x40cee0
cmp dword [esp + 0x18], 0
je 0x40cef4
jmp 0x40cf8d
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x463b20]
jmp 0x40ce4b
cmp eax, 0x10
jne 0x40cf8d
cmp dword [esp + 0x14], 0
jne 0x40cf8d
mov eax, dword [ebp]
mov ecx, dword [0x463b20]
shl eax, 5
mov edx, dword [eax + 0x463bc0]
xor eax, eax
test ecx, ecx
je 0x40cf25
lea esp, [esp]
cmp ecx, edx
je 0x40cf48
add eax, 1
lea ecx, [eax + eax*4]
mov ecx, dword [ecx*4 + 0x463b20]
test ecx, ecx
jne 0x40cf10
xor eax, eax
mov eax, dword [eax + 8]
cmp eax, 8
je 0x40cf54
cmp eax, 0x10
jne 0x40d485
lea edx, [ebp + 0x1500]
push edx
mov ecx, ebx
call fcn.0040bb90
jmp 0x40cf62
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x463b20]
jmp 0x40cf27
lea eax, [ebp + 0x1500]
push eax
mov ecx, ebx
call fcn.0040bd00
add esp, 4
test eax, eax
je 0x40d485
mov eax, dword [esp + 0x1c]
cmp eax, 8
jne 0x40cf80
mov dword [esp + 0x18], 1
jmp 0x40cf8d
cmp eax, 0x10
jne 0x40cf8d
mov dword [esp + 0x14], 1
push 0
lea ecx, [esp + 0x1f4]
push 0x1c0
push ecx
mov eax, ebp
call fcn.00409f00
movzx edx, byte [esp + 0x1fc]
movzx eax, byte [esp + 0x1fd]
movzx ecx, byte [esp + 0x1fe]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x1ff]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
add esp, 0xc
cmp edx, 0x54525545
jne 0x40d05d
movzx edi, byte [esp + 0x1f6]
movzx ecx, byte [esp + 0x1f7]
shl edi, 8
or edi, ecx
mov ecx, 0x100
lea esi, [esp + 0x2b0]
or eax, 0xffffffff
movzx edx, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461678]
sub ecx, 1
add esi, 1
test ecx, ecx
jne 0x40d005
movzx ecx, byte [esp + 0x1f8]
movzx edx, byte [esp + 0x1f9]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x1fa]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0x1fb]
shl ecx, 8
or ecx, edx
not eax
cmp ecx, eax
je 0x40d176
mov ecx, dword [ebp]
lea edi, [ecx*8]
mov eax, dword [edi*4 + 0x463bd0]
xor edx, edx
test eax, eax
je 0x40d094
mov esi, dword [ebp + 4]
shl ecx, 5
add ecx, 0x463bd0
add edx, 1
add ecx, 4
cmp eax, esi
je 0x40d168
mov eax, dword [ecx]
test eax, eax
jne 0x40d080
xor eax, eax
test eax, eax
mov dword [ebp + 4], eax
jne 0x40ce90
mov ecx, dword [ebp]
add ecx, 1
mov eax, ecx
shl eax, 5
mov eax, dword [eax + 0x463bc0]
neg eax
sbb eax, eax
and eax, ecx
test eax, eax
mov dword [ebp], eax
jne 0x40ce13
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, 3
mov dword [esp + 0x10], ecx
jle 0x40cd40
mov esi, 3
mov ecx, 0x2e78
mov edx, ebp
mov edi, ecx
mov eax, ebp
mov byte [eax], 0
add eax, 1
sub edi, 1
jne 0x40d0e7
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40d0f2
push 0x2e78
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push ebp
call fcn.00422d9f
mov ecx, dword [esp + 0x28]
mov dword [ecx], 0
lea edx, [esp + 0x2c]
mov ecx, 0x188
add esp, 4
mov edi, ecx
mov eax, edx
jmp 0x40d130
mov byte [eax], 0
add eax, 1
sub edi, 1
jne 0x40d130
jmp 0x40d140
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40d140
mov eax, esi
mov ecx, dword [esp + 0x4b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004231f4
add esp, 0x4a8
ret
add edi, edx
mov eax, dword [edi*4 + 0x463bd0]
jmp 0x40d096
cmp edi, 0x43a
jle 0x40d188
mov esi, 0x11
jmp 0x40d0dc
movzx eax, byte [esp + 0x1fc]
cdq
shld edx, eax, 8
shl eax, 8
mov ecx, eax
movzx eax, byte [esp + 0x1fd]
mov esi, edx
cdq
or ecx, eax
or esi, edx
shld esi, ecx, 8
movzx eax, byte [esp + 0x1fe]
shl ecx, 8
cdq
or ecx, eax
movzx eax, byte [esp + 0x1ff]
or esi, edx
shld esi, ecx, 8
shl ecx, 8
cdq
or ecx, eax
movzx eax, byte [esp + 0x200]
or esi, edx
shld esi, ecx, 8
shl ecx, 8
cdq
or ecx, eax
movzx eax, byte [esp + 0x201]
or esi, edx
shld esi, ecx, 8
shl ecx, 8
cdq
or ecx, eax
movzx eax, byte [esp + 0x202]
or esi, edx
shld esi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x203]
or esi, edx
shld esi, ecx, 8
cdq
or esi, edx
shl ecx, 8
or ecx, eax
mov dword [ebp + 0x2e48], ecx
mov dword [ebp + 0x2e4c], esi
movzx eax, byte [esp + 0x204]
cdq
shld edx, eax, 8
shl eax, 8
mov ecx, eax
movzx eax, byte [esp + 0x205]
mov esi, edx
cdq
or ecx, eax
movzx eax, byte [esp + 0x206]
or esi, edx
shld esi, ecx, 8
shl ecx, 8
cdq
or ecx, eax
movzx eax, byte [esp + 0x207]
or esi, edx
shld esi, ecx, 8
shl ecx, 8
cdq
or ecx, eax
movzx eax, byte [esp + 0x208]
or esi, edx
shld esi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x209]
or esi, edx
shld esi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x20a]
or esi, edx
shld esi, ecx, 8
shl ecx, 8
cdq
or ecx, eax
movzx eax, byte [esp + 0x20b]
or esi, edx
shld esi, ecx, 8
cdq
or esi, edx
shl ecx, 8
or ecx, eax
mov dword [ebp + 0x2e50], ecx
mov dword [ebp + 0x2e54], esi
movzx eax, byte [esp + 0x20c]
cdq
shld edx, eax, 8
shl eax, 8
mov ecx, eax
movzx eax, byte [esp + 0x20d]
mov esi, edx
cdq
or ecx, eax
movzx eax, byte [esp + 0x20e]
or esi, edx
shld esi, ecx, 8
shl ecx, 8
cdq
or ecx, eax
movzx eax, byte [esp + 0x20f]
or esi, edx
shld esi, ecx, 8
shl ecx, 8
cdq
or ecx, eax
movzx eax, byte [esp + 0x210]
or esi, edx
shld esi, ecx, 8
shl ecx, 8
cdq
or ecx, eax
movzx eax, byte [esp + 0x211]
or esi, edx
shld esi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x212]
or esi, edx
shld esi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x213]
or esi, edx
shld esi, ecx, 8
cdq
or esi, edx
shl ecx, 8
or ecx, eax
push 0x100
lea edx, [esp + 0x2b4]
push edx
lea eax, [esp + 0xb8]
push eax
mov dword [ebp + 0x2e68], ecx
mov dword [ebp + 0x2e6c], esi
call fcn.004234f0
add esp, 0xc
push 0x100
lea ecx, [esp + 0xb4]
push ecx
lea edx, [ebp + 0x2d00]
push edx
call fcn.004234f0
lea edi, [ebp + 0x2e00]
mov ecx, 0x10
lea esi, [esp + 0x7c]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x2e44], eax
mov eax, dword [ebp]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0xd0]
push edx
push eax
lea eax, [ebp + 0x28]
mov dword [ebp + 0x2e40], ecx
call fcn.00408a50
mov esi, eax
add esp, 8
cmp esi, 0x12
je 0x40d0dc
mov eax, dword [ebp + 4]
sub eax, 1
lea ebx, [ebp + 8]
mov ecx, 8
lea esi, [esp + 0xb0]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jne 0x40d48f
mov ecx, dword [ebp]
shl ecx, 5
mov edx, dword [ecx + 0x463bc0]
mov ecx, dword [0x463b20]
xor eax, eax
test ecx, ecx
je 0x40d445
mov edi, edi
cmp ecx, edx
je 0x40d464
add eax, 1
lea ecx, [eax + eax*4]
mov ecx, dword [ecx*4 + 0x463b20]
test ecx, ecx
jne 0x40d430
xor eax, eax
mov eax, dword [eax + 8]
cmp eax, 8
je 0x40d470
cmp eax, 0x10
jne 0x40d485
lea edx, [ebp + 0x1500]
push edx
mov ecx, ebx
call fcn.0040bb90
jmp 0x40d47e
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x463b20]
jmp 0x40d447
lea eax, [ebp + 0x1500]
push eax
mov ecx, ebx
call fcn.0040bd00
add esp, 4
test eax, eax
jne 0x40d48f
mov esi, 0x27
jmp 0x40d0dc
lea edx, [esp + 0x3b0]
mov ecx, 0x100
mov esi, ecx
mov eax, edx
nop
mov byte [eax], 0
add eax, 1
sub esi, 1
jne 0x40d4a0
jmp 0x40d4b0
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40d4b0
xor eax, eax
jmp 0x40d14f