Function at 0x40c725
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
movzx eax, byte [edx + 2]
push ebx
movzx ebx, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx]
push ebp
push esi
push edi
movzx edi, byte [edx + 7]
mov esi, dword [ecx + 8]
shl edi, 8
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 6]
or edi, eax
xor ebx, dword [esi]
movzx eax, byte [edx + 5]
shl edi, 8
or edi, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [edx + 4]
shl edi, 8
or edi, eax
movzx eax, byte [edx + 0xb]
shl eax, 8
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 0xa]
or dword [esp + 0x10], eax
shl dword [esp + 0x10], 8
movzx eax, byte [edx + 9]
or dword [esp + 0x10], eax
movzx eax, byte [edx + 8]
shl dword [esp + 0x10], 8
or dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esi + 8]
xor edi, dword [esi + 4]
add esi, 0xc
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 0xf]
shl eax, 8
mov dword [esp + 0x14], eax
movzx eax, byte [edx + 0xe]
or dword [esp + 0x14], eax
shl dword [esp + 0x14], 8
movzx eax, byte [edx + 0xd]
or dword [esp + 0x14], eax
shl dword [esp + 0x14], 8
movzx eax, byte [edx + 0xc]
mov edx, dword [esp + 0x14]
or edx, eax
mov dword [esp + 0x24], edi
xor edx, dword [esi]
mov eax, dword [ecx + 4]
push 4
pop ebp
sar eax, 1
add esi, ebp
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
test eax, eax
jle 0x40ca24
mov eax, dword [esp + 0x10]
shr eax, 0x10
movzx ecx, al
mov edx, dword [esp + 0x24]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4c6fb8]
mov ebp, dword [esp + 0x14]
push 4
xor ecx, dword [eax*4 + 0x4c73b8]
mov eax, ebp
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4c6bb0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x4c77b8]
mov eax, ebp
xor ecx, dword [esi]
shr eax, 0x10
mov dword [esp + 0x20], ecx
movzx ecx, al
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4c6fb8]
xor ecx, dword [eax*4 + 0x4c73b8]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4c6bb0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x4c77b8]
mov eax, ebp
xor ecx, dword [esi + 4]
add esi, 8
shr eax, 8
mov dword [esp + 0x24], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
pop ebp
mov ebx, dword [ecx*4 + 0x4c73b8]
xor ebx, dword [eax*4 + 0x4c6fb8]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
movzx ecx, dl
xor ebx, dword [eax*4 + 0x4c6bb0]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx*4 + 0x4c6fb8]
movzx eax, al
xor ebx, dword [eax*4 + 0x4c77b8]
mov eax, dword [esp + 0x18]
shr eax, 8
xor ebx, dword [esi]
add esi, ebp
movzx eax, al
xor edx, dword [eax*4 + 0x4c73b8]
mov eax, dword [esp + 0x10]
shr eax, 0x18
xor edx, dword [eax*4 + 0x4c6bb0]
mov eax, dword [esp + 0x14]
movzx eax, al
xor edx, dword [eax*4 + 0x4c77b8]
mov eax, ebx
xor edx, dword [esi]
add esi, ebp
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4c6fb8]
xor ecx, dword [eax*4 + 0x4c73b8]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4c6bb0]
mov eax, dword [esp + 0x1c]
movzx eax, al
xor ecx, dword [eax*4 + 0x4c77b8]
xor ecx, dword [esi]
mov dword [esp + 0x18], ecx
mov eax, edx
shr eax, 0x10
add esi, ebp
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4c6fb8]
xor ecx, dword [eax*4 + 0x4c73b8]
mov eax, dword [esp + 0x1c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4c6bb0]
mov eax, dword [esp + 0x20]
movzx eax, al
xor ecx, dword [eax*4 + 0x4c77b8]
mov eax, edx
xor ecx, dword [esi]
add esi, ebp
shr eax, 8
mov dword [esp + 0x24], ecx
movzx ecx, al
mov eax, dword [esp + 0x1c]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x4c73b8]
xor ecx, dword [eax*4 + 0x4c6fb8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edi, dword [esp + 0x10]
shr eax, 0x18
shr ecx, 0x10
movzx ecx, cl
xor edi, dword [eax*4 + 0x4c6bb0]
movzx eax, bl
mov ecx, dword [ecx*4 + 0x4c6fb8]
shr ebx, 0x18
xor edi, dword [eax*4 + 0x4c77b8]
mov eax, edi
mov dword [esp + 0x10], edi
xor eax, dword [esi]
add esi, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c73b8]
xor ecx, dword [ebx*4 + 0x4c6bb0]
mov ebx, dword [esp + 0x18]
movzx eax, dl
xor ecx, dword [eax*4 + 0x4c77b8]
xor ecx, dword [esi]
add esi, ebp
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
test eax, eax
jg 0x40c800
mov eax, dword [esp + 0x10]
shr eax, 0x10
movzx ecx, al
mov edx, dword [esp + 0x24]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4c6fb8]
xor ecx, dword [eax*4 + 0x4c73b8]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4c6bb0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x4c77b8]
xor ecx, dword [esi]
add esi, ebp
mov eax, dword [esp + 0x14]
shr eax, 0x10
mov dword [esp + 0x20], ecx
movzx ecx, al
mov eax, dword [esp + 0x10]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4c6fb8]
xor ecx, dword [eax*4 + 0x4c73b8]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x4c6bb0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x4c77b8]
xor ecx, dword [esi]
add esi, ebp
mov eax, dword [esp + 0x14]
shr eax, 8
mov dword [esp + 0x1c], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ebx, dword [ecx*4 + 0x4c73b8]
xor ebx, dword [eax*4 + 0x4c6fb8]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
movzx ecx, dl
xor ebx, dword [eax*4 + 0x4c6bb0]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx*4 + 0x4c6fb8]
movzx eax, al
xor ebx, dword [eax*4 + 0x4c77b8]
mov eax, dword [esp + 0x18]
shr eax, 8
xor ebx, dword [esi]
add esi, ebp
movzx eax, al
mov dword [esp + 0x28], ebx
xor edx, dword [eax*4 + 0x4c73b8]
mov eax, dword [esp + 0x10]
shr eax, 0x18
xor edx, dword [eax*4 + 0x4c6bb0]
mov eax, dword [esp + 0x14]
movzx eax, al
xor edx, dword [eax*4 + 0x4c77b8]
mov eax, ebx
xor edx, dword [esi]
add esi, ebp
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x14], edx
movzx ecx, byte [eax + 0x4c6a88]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x4c6a88]
shl eax, 8
xor ecx, eax
mov eax, dword [esp + 0x1c]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c6a88]
xor ecx, eax
mov eax, dword [esp + 0x20]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c6a88]
xor ecx, eax
mov eax, edx
xor ecx, dword [esi]
add esi, ebp
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 0x4c6a88]
mov eax, dword [esp + 0x20]
shr eax, 0x18
movzx eax, byte [eax + 0x4c6a88]
shl eax, 8
xor ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c6a88]
xor ecx, eax
mov eax, dword [esp + 0x1c]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x4c6a88]
xor ecx, eax
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx eax, al
xor ecx, dword [esi]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
movzx ebx, byte [eax + 0x4c6a88]
mov eax, dword [esp + 0x1c]
shr eax, 0x18
movzx eax, byte [eax + 0x4c6a88]
shl eax, 8
xor ebx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x4c6a88]
xor ebx, eax
movzx eax, cl
shl ebx, 8
shr ecx, 0x18
movzx eax, byte [eax + 0x4c6a88]
xor ebx, eax
mov eax, dword [esp + 0x1c]
shr eax, 0x10
movzx eax, al
xor ebx, dword [esi + ebp]
movzx edx, byte [eax + 0x4c6a88]
movzx eax, byte [ecx + 0x4c6a88]
shl eax, 8
xor edx, eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x4c6a88]
xor edx, eax
mov eax, dword [esp + 0x14]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x4c6a88]
xor edx, eax
mov eax, dword [esp + 0x24]
xor edx, dword [esi + ebp + 4]
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [esp + 0x24]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x24]
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