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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, dword [esi]
push 0x2e78
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
call fcn.00424385
add esp, 4
push 0x2e78
mov ebp, eax
push 0
push ebp
call fcn.00422ac0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualLock]
add esp, 0xc
push 0x2e78
push ebp
call ebx
test ebp, ebp
je 0x40d595
mov edx, dword [esp + 0x10]
push 0x200
push 0
push edx
mov dword [ebp], 0xffffffff
call fcn.00422ac0
add esp, 0xc
push 0x188
push 0x471788
call ebx
push 0x100
push 0x471910
call ebx
push edi
add esi, 4
push esi
push 0x471790
call fcn.004234f0
mov ecx, dword [esp + 0xa8]
mov eax, ecx
add esp, 0xc
sub eax, 1
mov dword [0x47178c], edi
je 0x40d5b9
sub eax, 1
je 0x40d5b9
sub eax, 1
je 0x40d5ad
mov dword [0x471788], 0
jmp 0x40d5c3
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004231f4
add esp, 0x7c
ret
mov dword [0x471788], 0x3e8
jmp 0x40d5c3
mov dword [0x471788], 0x7d0
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
mov dword [ebp + 4], eax
mov eax, ecx
sub eax, 1
mov dword [ebp], esi
je 0x40d64a
sub eax, 1
je 0x40d61b
sub eax, 1
jne 0x40d67a
call fcn.00408d90
mov edx, dword [0x471788]
push 0x471910
push edx
mov ecx, eax
mov eax, dword [0x47178c]
push 0x40
push eax
add ecx, 0x20
push 0x471790
mov edx, 0x4717d0
call fcn.0040e6f0
jmp 0x40d677
call fcn.00408d90
mov edx, dword [0x471788]
push edx
push 0x40
mov ecx, eax
mov eax, dword [0x47178c]
push 0x4717d0
push eax
add ecx, 0x20
push 0x471790
mov edx, 0x471910
call fcn.0040dfb0
jmp 0x40d677
call fcn.00408d90
mov edx, dword [0x471788]
push 0x471910
push edx
mov ecx, eax
mov eax, dword [0x47178c]
push 0x40
push 0x4717d0
add ecx, 0x20
push eax
mov edx, 0x471790
call fcn.0040e310
add esp, 0x14
shl esi, 5
mov edx, dword [esi + 0x463bc0]
call fcn.00408990
push eax
push 0x471910
call fcn.00408ea0
add esp, 8
test eax, eax
je 0x40d6b2
mov eax, 0x13
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004231f4
add esp, 0x7c
ret
mov ebx, dword [esp + 0x10]
mov ecx, 0x10
mov esi, 0x4717d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x40], 0x54
lea esi, [ebx + 0x40]
mov byte [esi + 1], 0x52
mov dword [esp + 0x10], esi
add esi, 1
mov byte [esi + 1], 0x55
add esi, 1
add esi, 1
mov byte [esi], 0x45
add esi, 1
mov byte [esi], 0
add esi, 1
mov byte [esi], 2
add esi, 1
mov byte [esi], 4
add esi, 1
mov byte [esi], 0x10
add esi, 1
mov ecx, 0x100
mov edi, 0x471810
or eax, 0xffffffff
movzx edx, byte [edi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461678]
sub ecx, 1
add edi, 1
test ecx, ecx
jne 0x40d70b
mov edi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
not eax
mov ecx, eax
sar ecx, 0x18
mov byte [esi], cl
add esi, 1
mov edx, eax
sar edx, 0x10
mov byte [esi], dl
add esi, 1
mov ecx, eax
sar ecx, 8
mov byte [esi], cl
mov ecx, dword [esp + 0xa0]
add esi, 1
mov byte [esi], al
mov eax, dword [esp + 0xa4]
mov edx, ecx
add esi, 1
or edx, eax
jne 0x40d78a
lea eax, [esp + 0x20]
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x40d792
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
add esi, 1
mov edx, eax
shr edx, 0x10
mov byte [esi], dl
mov edx, eax
add esi, 1
shr edx, 8
mov byte [esi], dl
mov byte [esi + 1], al
add esi, 1
add esi, 1
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov edx, ecx
add esi, 1
shr edx, 0x10
mov byte [esi], dl
mov eax, ecx
add esi, 1
shr eax, 8
mov byte [esi], al
add esi, 1
mov byte [esi], cl
lea ecx, [esp + 0x20]
push ecx
add esi, 1
call edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x18]
add esi, 1
mov ecx, eax
shr ecx, 0x18
mov byte [esi - 1], cl
add esi, 1
mov edx, eax
shr edx, 0x10
mov byte [esi - 1], dl
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov byte [esi + 1], al
mov eax, dword [esp + 0x14]
add esi, 1
add esi, 1
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
add esi, 1
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
mov ecx, dword [esp + 0xac]
add esi, 1
mov edx, eax
shr edx, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, dword [esp + 0xa8]
add esi, 1
mov dword [ebp + 0x2e6c], ecx
movzx edx, byte [ebp + 0x2e6f]
add esi, 1
mov dword [ebp + 0x2e68], eax
mov byte [esi], dl
movzx eax, byte [ebp + 0x2e6e]
mov byte [esi + 1], al
movzx ecx, byte [ebp + 0x2e6d]
add esi, 1
add esi, 1
mov byte [esi], cl
movzx edx, byte [ebp + 0x2e6c]
add esi, 1
mov byte [esi], dl
movzx eax, byte [ebp + 0x2e6b]
mov byte [esi + 1], al
movzx ecx, byte [ebp + 0x2e6a]
add esi, 1
mov byte [esi + 1], cl
movzx edx, byte [ebp + 0x2e69]
add esi, 1
add esi, 1
mov byte [esi], dl
movzx eax, byte [ebp + 0x2e68]
mov byte [esi + 1], al
mov ecx, dword [ebp + 0x2e68]
or ecx, dword [ebp + 0x2e6c]
je 0x40d8cf
mov eax, 1
jmp 0x40d8d1
xor eax, eax
mov dword [ebp + 0x2e58], eax
lea edi, [ebx + 0x100]
mov ecx, 0x40
mov esi, 0x471810
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp]
lea ebx, [ebp + 8]
mov ecx, 8
mov esi, 0x471910
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x28]
push 0x471930
push edx
mov eax, edi
call fcn.00408a50
add esp, 8
test eax, eax
jne 0x40db65
mov esi, ebp
call fcn.00408b90
test eax, eax
je 0x40d595
mov eax, dword [esp + 0x10]
push ebp
push 0
push 0x1c0
push eax
call fcn.00409a40
mov ecx, dword [ebp]
push 0x471830
push ecx
mov eax, edi
call fcn.00408a50
add esp, 0x18
test eax, eax
jne 0x40db65
lea edi, [ebp + 0x2d00]
mov ecx, 0x38
mov esi, 0x471830
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, 0x471810
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, ebp
call fcn.00408b90
test eax, eax
je 0x40d595
xor ebx, ebx
cmp dword [0x463e10], ebx
je 0x40dafa
mov edx, dword [esp + 0x94]
mov dword [esp + 0x10], ebx
call fcn.00408bf0
cmp eax, 0x10
mov dword [esp + 0x38], eax
jle 0x40d9be
mov dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 1
test eax, eax
mov byte [esp + 0x40], bl
jle 0x40da35
movzx edx, byte [ebx + 0x471830]
xor eax, eax
push edx
mov dword [esp + 0x35], eax
mov word [esp + 0x39], ax
mov byte [esp + 0x3b], al
lea eax, [esp + 0x34]
push str._02X
push eax
mov byte [esp + 0x3c], 0
call fcn.00443f9c
lea eax, [esp + 0x3c]
add esp, 0xc
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40da00
lea edi, [esp + 0x40]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40da14
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add ebx, 1
cmp ebx, dword [esp + 0x38]
rep movsb byte es:[edi], byte [esi]
jl 0x40d9c6
cmp dword [esp + 0x10], 0
je 0x40da55
lea edi, [esp + 0x40]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40da43
mov ecx, dword [0x4557a0]
mov dword [edi], ecx
mov eax, dword [0x471a68]
lea edx, [esp + 0x40]
push edx
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0x40], 0
xor ebx, ebx
movzx ecx, byte [ebx + 0x471930]
push ecx
lea edx, [esp + 0x3c]
push str._02X
push edx
call fcn.00443f9c
lea eax, [esp + 0x44]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40da91
lea edi, [esp + 0x40]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40daa5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add ebx, 1
cmp ebx, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x40da71
cmp dword [esp + 0x10], 0
je 0x40dae4
lea edi, [esp + 0x40]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40dad3
mov eax, dword [0x4557a0]
mov dword [edi], eax
mov edx, dword [0x471a6c]
lea ecx, [esp + 0x40]
push ecx
push 0
push 0xc
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, 0x471910
mov ecx, 0x100
mov esi, ecx
mov eax, edx
jmp 0x40db10
mov byte [eax], 0
add eax, 1
sub esi, 1
jne 0x40db10
jmp 0x40db20
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40db20
mov edx, 0x471788
mov ecx, 0x188
mov esi, ecx
mov eax, edx
jmp 0x40db40
mov byte [eax], 0
add eax, 1
sub esi, 1
jne 0x40db40
jmp 0x40db50
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40db50
mov eax, dword [esp + 0x1c]
mov dword [eax], ebp
xor eax, eax
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004231f4
add esp, 0x7c
ret