Function at 0x40d770
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.00424a35
add esp, 4
push 0x2e78
mov ebp, eax
push 0
push ebp
call fcn.00423160
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualLock]
add esp, 0xc
push 0x2e78
push ebp
call ebx
test ebp, ebp
je 0x40d835
mov edx, dword [esp + 0x10]
push 0x200
push 0
push edx
mov dword [ebp], 0xffffffff
call fcn.00423160
add esp, 0xc
push 0x188
push 0x471770
call ebx
push 0x100
push 0x4718f8
call ebx
push edi
add esi, 4
push esi
push 0x471778
call fcn.00423b90
mov ecx, dword [esp + 0xa8]
mov eax, ecx
add esp, 0xc
sub eax, 1
mov dword [0x471774], edi
je 0x40d859
sub eax, 1
je 0x40d859
sub eax, 1
je 0x40d84d
mov dword [0x471770], 0
jmp 0x40d863
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00423893
add esp, 0x7c
ret
mov dword [0x471770], 0x3e8
jmp 0x40d863
mov dword [0x471770], 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 0x40d8ea
sub eax, 1
je 0x40d8bb
sub eax, 1
jne 0x40d91a
call fcn.00409030
mov edx, dword [0x471770]
push 0x4718f8
push edx
mov ecx, eax
mov eax, dword [0x471774]
push 0x40
push eax
add ecx, 0x20
push 0x471778
mov edx, 0x4717b8
call fcn.0040e990
jmp 0x40d917
call fcn.00409030
mov edx, dword [0x471770]
push edx
push 0x40
mov ecx, eax
mov eax, dword [0x471774]
push 0x4717b8
push eax
add ecx, 0x20
push 0x471778
mov edx, 0x4718f8
call fcn.0040e250
jmp 0x40d917
call fcn.00409030
mov edx, dword [0x471770]
push 0x4718f8
push edx
mov ecx, eax
mov eax, dword [0x471774]
push 0x40
push 0x4717b8
add ecx, 0x20
push eax
mov edx, 0x471778
call fcn.0040e5b0
add esp, 0x14
shl esi, 5
mov edx, dword [esi + 0x463bb0]
call fcn.00408c30
push eax
push 0x4718f8
call fcn.00409140
add esp, 8
test eax, eax
je 0x40d952
mov eax, 0x13
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00423893
add esp, 0x7c
ret
mov ebx, dword [esp + 0x10]
mov ecx, 0x10
mov esi, 0x4717b8
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, 0x4717f8
or eax, 0xffffffff
movzx edx, byte [edi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461668]
sub ecx, 1
add edi, 1
test ecx, ecx
jne 0x40d9ab
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 0x40da2a
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 0x40da32
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 0x40db6f
mov eax, 1
jmp 0x40db71
xor eax, eax
mov dword [ebp + 0x2e58], eax
lea edi, [ebx + 0x100]
mov ecx, 0x40
mov esi, 0x4717f8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp]
lea ebx, [ebp + 8]
mov ecx, 8
mov esi, 0x4718f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x28]
push 0x471918
push edx
mov eax, edi
call fcn.00408cf0
add esp, 8
test eax, eax
jne 0x40de05
mov esi, ebp
call fcn.00408e30
test eax, eax
je 0x40d835
mov eax, dword [esp + 0x10]
push ebp
push 0
push 0x1c0
push eax
call fcn.00409ce0
mov ecx, dword [ebp]
push 0x471818
push ecx
mov eax, edi
call fcn.00408cf0
add esp, 0x18
test eax, eax
jne 0x40de05
lea edi, [ebp + 0x2d00]
mov ecx, 0x38
mov esi, 0x471818
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, 0x4717f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, ebp
call fcn.00408e30
test eax, eax
je 0x40d835
xor ebx, ebx
cmp dword [0x463e00], ebx
je 0x40dd9a
mov edx, dword [esp + 0x94]
mov dword [esp + 0x10], ebx
call fcn.00408e90
cmp eax, 0x10
mov dword [esp + 0x38], eax
jle 0x40dc5e
mov dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 1
test eax, eax
mov byte [esp + 0x40], bl
jle 0x40dcd5
movzx edx, byte [ebx + 0x471818]
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.00425524
lea eax, [esp + 0x3c]
add esp, 0xc
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40dca0
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 0x40dcb4
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 0x40dc66
cmp dword [esp + 0x10], 0
je 0x40dcf5
lea edi, [esp + 0x40]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40dce3
mov ecx, dword [0x4557d0]
mov dword [edi], ecx
mov eax, dword [0x471a50]
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 + 0x471918]
push ecx
lea edx, [esp + 0x3c]
push str._02X
push edx
call fcn.00425524
lea eax, [esp + 0x44]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40dd31
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 0x40dd45
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 0x40dd11
cmp dword [esp + 0x10], 0
je 0x40dd84
lea edi, [esp + 0x40]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40dd73
mov eax, dword [0x4557d0]
mov dword [edi], eax
mov edx, dword [0x471a54]
lea ecx, [esp + 0x40]
push ecx
push 0
push 0xc
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, 0x4718f8
mov ecx, 0x100
mov esi, ecx
mov eax, edx
jmp 0x40ddb0
mov byte [eax], 0
add eax, 1
sub esi, 1
jne 0x40ddb0
jmp 0x40ddc0
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40ddc0
mov edx, 0x471770
mov ecx, 0x188
mov esi, ecx
mov eax, edx
jmp 0x40dde0
mov byte [eax], 0
add eax, 1
sub esi, 1
jne 0x40dde0
jmp 0x40ddf0
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x40ddf0
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.00423893
add esp, 0x7c
ret