Function at 0x40da40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
movzx ebx, byte [edx + 3]
shl ebx, 8
push ebp
push esi
movzx esi, byte [edx + 2]
or ebx, esi
movzx esi, byte [edx + 1]
shl ebx, 8
push edi
mov edi, ecx
or ebx, esi
movzx ecx, byte [edx]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 7]
mov eax, dword [edi + 8]
shl ecx, 8
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx + 6]
or dword [esp + 0x14], ecx
shl dword [esp + 0x14], 8
movzx ecx, byte [edx + 5]
or dword [esp + 0x14], ecx
movzx ecx, byte [edx + 4]
shl dword [esp + 0x14], 8
or dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
xor ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
mov dword [esp + 0x10], ecx
movzx ecx, byte [edx + 0xa]
or dword [esp + 0x10], ecx
shl dword [esp + 0x10], 8
movzx ecx, byte [edx + 9]
or dword [esp + 0x10], ecx
movzx ecx, byte [edx + 8]
shl dword [esp + 0x10], 8
or dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
xor ecx, dword [eax + 8]
mov edi, dword [edi + 4]
xor ebx, dword [eax]
mov dword [esp + 0x10], ecx
movzx ecx, byte [edx + 0xf]
shl ecx, 8
mov dword [esp + 0x18], ecx
movzx ecx, byte [edx + 0xe]
or dword [esp + 0x18], ecx
movzx ecx, byte [edx + 0xd]
shl dword [esp + 0x18], 8
or dword [esp + 0x18], ecx
shl dword [esp + 0x18], 8
movzx ecx, byte [edx + 0xc]
mov edx, dword [esp + 0x18]
or edx, ecx
sar edi, 1
xor edx, dword [eax + 0xc]
dec edi
add eax, 0x10
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edx
test edi, edi
jle 0x40dd55
nop word [eax + eax]
mov ecx, dword [esp + 0x10]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x4dcbd8]
mov esi, dword [esp + 0x18]
xor edx, dword [ecx*4 + 0x4dcfd8]
mov ecx, esi
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4dc7d0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x4dd3d8]
mov ecx, esi
xor edx, dword [eax]
shr ecx, 0x10
mov dword [esp + 0x1c], edx
movzx edx, cl
mov ecx, dword [esp + 0x10]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x4dcbd8]
xor edx, dword [ecx*4 + 0x4dcfd8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4dc7d0]
mov ecx, dword [esp + 0x14]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4dd3d8]
mov ecx, esi
xor edx, dword [eax + 4]
shr ecx, 8
mov dword [esp + 0x24], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 8
mov edx, dword [edx*4 + 0x4dcfd8]
xor edx, dword [ecx*4 + 0x4dcbd8]
mov ecx, dword [esp + 0x14]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4dc7d0]
mov ecx, dword [esp + 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4dd3d8]
xor edx, dword [eax + 8]
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
mov dword [esp + 0x28], edx
movzx edx, cl
movzx ecx, bl
mov ebx, dword [edx*4 + 0x4dcbd8]
xor ebx, dword [ecx*4 + 0x4dcfd8]
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x4dc7d0]
mov ecx, esi
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x4dd3d8]
mov ecx, dword [esp + 0x28]
xor ebx, dword [eax + 0xc]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [esp + 0x24]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x4dcbd8]
xor edx, dword [ecx*4 + 0x4dcfd8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4dc7d0]
mov ecx, dword [esp + 0x1c]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4dd3d8]
mov ecx, ebx
xor edx, dword [eax + 0x10]
shr ecx, 0x10
mov dword [esp + 0x20], edx
movzx edx, cl
mov edx, dword [edx*4 + 0x4dcbd8]
dec edi
mov ecx, dword [esp + 0x28]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4dcfd8]
mov ecx, dword [esp + 0x1c]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4dc7d0]
mov ecx, dword [esp + 0x24]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4dd3d8]
mov ecx, ebx
xor edx, dword [eax + 0x14]
shr ecx, 8
mov dword [esp + 0x14], edx
movzx edx, cl
mov ecx, dword [esp + 0x1c]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x4dcfd8]
xor edx, dword [ecx*4 + 0x4dcbd8]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x24]
mov ecx, edx
mov ebp, dword [esp + 0x10]
shr ecx, 0x18
shr edx, 0x10
movzx edx, dl
xor ebp, dword [ecx*4 + 0x4dc7d0]
mov ecx, dword [esp + 0x28]
mov edx, dword [edx*4 + 0x4dcbd8]
movzx ecx, cl
xor ebp, dword [ecx*4 + 0x4dd3d8]
mov ecx, ebp
mov dword [esp + 0x10], ebp
xor ecx, dword [eax + 0x18]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4dcfd8]
mov ecx, dword [esp + 0x28]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4dc7d0]
movzx ecx, bl
mov ebx, dword [esp + 0x20]
xor edx, dword [ecx*4 + 0x4dd3d8]
xor edx, dword [eax + 0x1c]
add eax, 0x20
mov dword [esp + 0x18], edx
test edi, edi
jg 0x40db30
mov ecx, dword [esp + 0x10]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x4dcbd8]
xor edx, dword [ecx*4 + 0x4dcfd8]
mov ecx, dword [esp + 0x18]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4dc7d0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x4dd3d8]
xor edx, dword [eax]
mov ecx, dword [esp + 0x18]
shr ecx, 0x10
mov dword [esp + 0x1c], edx
movzx edx, cl
mov ecx, dword [esp + 0x10]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x4dcbd8]
xor edx, dword [ecx*4 + 0x4dcfd8]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4dc7d0]
mov ecx, dword [esp + 0x14]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4dd3d8]
xor edx, dword [eax + 4]
mov ecx, dword [esp + 0x18]
shr ecx, 8
mov dword [esp + 0x28], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [edx*4 + 0x4dcfd8]
mov edx, dword [esp + 0x14]
xor ebx, dword [ecx*4 + 0x4dcbd8]
mov ecx, edx
shr ecx, 0x18
shr edx, 0x10
movzx edx, dl
xor ebx, dword [ecx*4 + 0x4dc7d0]
mov ecx, dword [esp + 0x10]
mov edx, dword [edx*4 + 0x4dcbd8]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x4dd3d8]
mov ecx, dword [esp + 0x20]
shr ecx, 8
xor ebx, dword [eax + 8]
movzx ecx, cl
mov dword [esp + 0x24], ebx
xor edx, dword [ecx*4 + 0x4dcfd8]
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4dc7d0]
mov ecx, dword [esp + 0x18]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4dd3d8]
mov ecx, ebx
xor edx, dword [eax + 0xc]
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x14], edx
movzx ebx, byte [ecx + 0x4dc6a8]
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4dc6a8]
shl ecx, 8
xor ebx, ecx
mov ecx, dword [esp + 0x28]
shr ecx, 8
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x4dc6a8]
xor ebx, ecx
mov ecx, dword [esp + 0x1c]
shl ebx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x4dc6a8]
xor ebx, ecx
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [eax + 0x10]
mov dword [esp + 0x20], ebx
movzx edx, byte [ecx + 0x4dc6a8]
mov ecx, dword [esp + 0x1c]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4dc6a8]
shl ecx, 8
xor edx, ecx
mov ecx, dword [esp + 0x24]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4dc6a8]
xor edx, ecx
mov ecx, dword [esp + 0x28]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4dc6a8]
xor edx, ecx
mov ecx, dword [esp + 0x1c]
xor edx, dword [eax + 0x14]
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x28]
movzx ebx, byte [ecx + 0x4dc6a8]
mov ecx, edx
shr ecx, 0x18
shr edx, 0x10
movzx ecx, byte [ecx + 0x4dc6a8]
shl ecx, 8
xor ebx, ecx
mov ecx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x4dc6a8]
xor ebx, ecx
mov ecx, dword [esp + 0x24]
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x4dc6a8]
xor ebx, ecx
movzx ecx, dl
xor ebx, dword [eax + 0x18]
movzx edx, byte [ecx + 0x4dc6a8]
mov ecx, dword [esp + 0x24]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x4dc6a8]
shl ecx, 8
xor edx, ecx
mov ecx, dword [esp + 0x1c]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4dc6a8]
xor edx, ecx
mov ecx, dword [esp + 0x14]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x4dc6a8]
xor edx, ecx
mov ecx, dword [esp + 0x30]
xor edx, dword [eax + 0x1c]
mov eax, dword [esp + 0x20]
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [esp + 0x20]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x20]
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, dword [esp + 0x18]
mov byte [ecx + 4], al
shr eax, 8
mov byte [ecx + 5], al
mov eax, dword [esp + 0x18]
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, dword [esp + 0x18]
shr eax, 0x18
mov byte [ecx + 7], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 9], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 0xa], al
mov eax, edx
shr eax, 8
mov byte [ecx + 0xd], al
mov eax, edx
pop edi
mov byte [ecx + 8], bl
shr ebx, 0x18
pop esi
shr eax, 0x10
mov byte [ecx + 0xc], dl
shr edx, 0x18
pop ebp
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
xor eax, eax
mov byte [ecx + 0xf], dl
pop ebx
add esp, 0x1c
ret