Function at 0x40cf10
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.00424a35
add esp, 4
push 0x2e78
mov ebp, eax
push 0
push ebp
call fcn.00423160
add esp, 0xc
push 0x2e78
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualLock]
test ebp, ebp
je 0x40cf71
mov dword [ebp], 0xffffffff
test ebp, ebp
mov dword [esi], ebp
jne 0x40cf81
mov eax, 2
jmp 0x40d3ef
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 0x40cf94
nop
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40cfa0
push edi
add ebx, 4
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.00423b90
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 0x40d00c
sub eax, 1
je 0x40d00c
sub eax, 1
je 0x40d005
xor esi, esi
jmp 0x40d011
mov esi, 0x3e8
jmp 0x40d011
mov esi, 0x7d0
mov eax, ecx
sub eax, 1
mov dword [esp + 0x28], esi
je 0x40d081
sub eax, 1
je 0x40d057
sub eax, 1
jne 0x40d0ac
call fcn.00409030
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.0040e990
jmp 0x40d0a9
call fcn.00409030
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.0040e250
jmp 0x40d0a9
call fcn.00409030
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.0040e5b0
add esp, 0x14
mov dword [ebp], 1
mov edx, dword [ebp]
mov ecx, dword [0x463b10]
mov eax, edx
shl eax, 5
mov esi, dword [eax + 0x463bb0]
xor eax, eax
test ecx, ecx
je 0x40d0e9
lea ecx, [ecx]
cmp ecx, esi
je 0x40d171
add eax, 1
lea ecx, [eax + eax*4]
mov ecx, dword [ecx*4 + 0x463b10]
test ecx, ecx
jne 0x40d0d0
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.00408cf0
mov esi, eax
add esp, 8
cmp esi, 0x12
je 0x40d37c
mov edx, dword [ebp]
shl edx, 5
mov eax, dword [edx + 0x463bc0]
test eax, eax
mov dword [ebp + 4], eax
je 0x40d341
lea ebx, [ebp + 8]
jmp 0x40d130
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 0x40d22d
mov eax, dword [esp + 0x1c]
cmp eax, 8
jne 0x40d180
cmp dword [esp + 0x18], 0
je 0x40d194
jmp 0x40d22d
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x463b10]
jmp 0x40d0eb
cmp eax, 0x10
jne 0x40d22d
cmp dword [esp + 0x14], 0
jne 0x40d22d
mov eax, dword [ebp]
mov ecx, dword [0x463b10]
shl eax, 5
mov edx, dword [eax + 0x463bb0]
xor eax, eax
test ecx, ecx
je 0x40d1c5
lea esp, [esp]
cmp ecx, edx
je 0x40d1e8
add eax, 1
lea ecx, [eax + eax*4]
mov ecx, dword [ecx*4 + 0x463b10]
test ecx, ecx
jne 0x40d1b0
xor eax, eax
mov eax, dword [eax + 8]
cmp eax, 8
je 0x40d1f4
cmp eax, 0x10
jne 0x40d725
lea edx, [ebp + 0x1500]
push edx
mov ecx, ebx
call fcn.0040be30
jmp 0x40d202
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x463b10]
jmp 0x40d1c7
lea eax, [ebp + 0x1500]
push eax
mov ecx, ebx
call fcn.0040bfa0
add esp, 4
test eax, eax
je 0x40d725
mov eax, dword [esp + 0x1c]
cmp eax, 8
jne 0x40d220
mov dword [esp + 0x18], 1
jmp 0x40d22d
cmp eax, 0x10
jne 0x40d22d
mov dword [esp + 0x14], 1
push 0
lea ecx, [esp + 0x1f4]
push 0x1c0
push ecx
mov eax, ebp
call fcn.0040a1a0
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 0x40d2fd
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 + 0x461668]
sub ecx, 1
add esi, 1
test ecx, ecx
jne 0x40d2a5
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 0x40d416
mov ecx, dword [ebp]
lea edi, [ecx*8]
mov eax, dword [edi*4 + 0x463bc0]
xor edx, edx
test eax, eax
je 0x40d334
mov esi, dword [ebp + 4]
shl ecx, 5
add ecx, 0x463bc0
add edx, 1
add ecx, 4
cmp eax, esi
je 0x40d408
mov eax, dword [ecx]
test eax, eax
jne 0x40d320
xor eax, eax
test eax, eax
mov dword [ebp + 4], eax
jne 0x40d130
mov ecx, dword [ebp]
add ecx, 1
mov eax, ecx
shl eax, 5
mov eax, dword [eax + 0x463bb0]
neg eax
sbb eax, eax
and eax, ecx
test eax, eax
mov dword [ebp], eax
jne 0x40d0b3
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, 3
mov dword [esp + 0x10], ecx
jle 0x40cfe0
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 0x40d387
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40d392
push 0x2e78
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push ebp
call fcn.0042343e
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 0x40d3d0
mov byte [eax], 0
add eax, 1
sub edi, 1
jne 0x40d3d0
jmp 0x40d3e0
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40d3e0
mov eax, esi
mov ecx, dword [esp + 0x4b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423893
add esp, 0x4a8
ret
add edi, edx
mov eax, dword [edi*4 + 0x463bc0]
jmp 0x40d336
cmp edi, 0x43a
jle 0x40d428
mov esi, 0x11
jmp 0x40d37c
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.00423b90
add esp, 0xc
push 0x100
lea ecx, [esp + 0xb4]
push ecx
lea edx, [ebp + 0x2d00]
push edx
call fcn.00423b90
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.00408cf0
mov esi, eax
add esp, 8
cmp esi, 0x12
je 0x40d37c
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 0x40d72f
mov ecx, dword [ebp]
shl ecx, 5
mov edx, dword [ecx + 0x463bb0]
mov ecx, dword [0x463b10]
xor eax, eax
test ecx, ecx
je 0x40d6e5
mov edi, edi
cmp ecx, edx
je 0x40d704
add eax, 1
lea ecx, [eax + eax*4]
mov ecx, dword [ecx*4 + 0x463b10]
test ecx, ecx
jne 0x40d6d0
xor eax, eax
mov eax, dword [eax + 8]
cmp eax, 8
je 0x40d710
cmp eax, 0x10
jne 0x40d725
lea edx, [ebp + 0x1500]
push edx
mov ecx, ebx
call fcn.0040be30
jmp 0x40d71e
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x463b10]
jmp 0x40d6e7
lea eax, [ebp + 0x1500]
push eax
mov ecx, ebx
call fcn.0040bfa0
add esp, 4
test eax, eax
jne 0x40d72f
mov esi, 0x27
jmp 0x40d37c
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 0x40d740
jmp 0x40d750
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40d750
xor eax, eax
jmp 0x40d3ef