Function at 0x40d4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx edx, byte [esi + 3]
movzx ecx, byte [esi + 2]
mov eax, dword [edi + 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 6]
mov dword [ebp - 0x38], edx
mov ebx, dword [eax]
xor ebx, edx
movzx edx, byte [esi + 7]
shl edx, 8
or edx, ecx
mov dword [ebp - 0x38], ebx
movzx ecx, byte [esi + 5]
shl edx, 8
or edx, ecx
mov dword [ebp - 8], ebx
movzx ecx, byte [esi + 4]
shl edx, 8
or edx, ecx
mov dword [ebp - 0x34], edx
mov ecx, dword [eax + 4]
xor ecx, edx
movzx edx, byte [esi + 0xb]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x34], ecx
movzx ecx, byte [esi + 0xa]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 9]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 8]
shl edx, 8
or edx, ecx
mov dword [ebp - 0x30], edx
mov ecx, dword [eax + 8]
xor ecx, edx
movzx edx, byte [esi + 0xf]
mov dword [ebp + 8], ecx
mov dword [ebp - 0x30], ecx
movzx ecx, byte [esi + 0xe]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0xd]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0xc]
shl edx, 8
or edx, ecx
mov dword [ebp - 0x2c], edx
mov ecx, dword [eax + 0xc]
add eax, 0x10
xor ecx, edx
mov edx, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [edi]
sar ecx, 1
dec ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
jle 0x40d7e2
nop dword [eax]
mov ecx, dword [ebp + 8]
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov edx, dword [edx*4 + 0x438948]
xor edx, dword [ecx*4 + 0x438548]
mov ecx, dword [ebp + 0xc]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x438148]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x437d48]
xor edx, dword [eax]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], edx
movzx edx, cl
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x438548]
xor edx, dword [ecx*4 + 0x438148]
mov ecx, ebx
mov ebx, dword [ebp + 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x438948]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x437d48]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x24], edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, 0x18
mov ebx, dword [ecx*4 + 0x438148]
xor ebx, dword [edx*4 + 0x438948]
mov edx, dword [ebp - 8]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shr edx, 8
xor ebx, dword [ecx*4 + 0x438548]
mov ecx, dword [ebp + 8]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x437d48]
xor ebx, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp + 8]
movzx ecx, cl
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x438948]
xor ebx, dword [ecx*4 + 0x438548]
movzx ecx, dl
xor ebx, dword [ecx*4 + 0x438148]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x437d48]
mov ecx, dword [ebp - 0xc]
xor ebx, dword [eax + 0xc]
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x438148]
mov dword [ebp - 0x1c], ebx
xor edx, dword [ecx*4 + 0x438548]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x438948]
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x437d48]
xor edx, dword [eax + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 0x38], edx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x438548]
xor edx, dword [ecx*4 + 0x438148]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x438948]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x437d48]
mov ecx, ebx
xor edx, dword [eax + 0x14]
shr ecx, 8
mov dword [ebp - 0x34], edx
mov dword [ebp + 0xc], edx
movzx edx, cl
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x438148]
xor edx, dword [ecx*4 + 0x438548]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x438948]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
movzx ecx, dl
shr edx, 0x18
xor esi, dword [ecx*4 + 0x437d48]
mov edx, dword [edx*4 + 0x438948]
mov ecx, esi
xor ecx, dword [eax + 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp + 8], esi
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x438548]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x438148]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor edx, dword [ecx*4 + 0x437d48]
xor edx, dword [eax + 0x1c]
add eax, 0x20
mov ecx, dword [ebp - 0x18]
dec ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
jg 0x40d5c0
mov ecx, dword [ebp + 8]
lea edi, [eax + 0xc]
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov edx, dword [edx*4 + 0x438948]
xor edx, dword [ecx*4 + 0x438548]
mov ecx, dword [ebp + 0xc]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x438148]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x437d48]
xor edx, dword [eax]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], edx
movzx edx, cl
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x438548]
xor edx, dword [ecx*4 + 0x438148]
mov ecx, ebx
mov ebx, dword [ebp + 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x438948]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x437d48]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], edx
mov edx, ebx
shr edx, 0x18
mov ebx, dword [ecx*4 + 0x438148]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
xor ebx, dword [edx*4 + 0x438948]
mov edx, dword [ebp + 8]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x438548]
movzx ecx, dl
shr edx, 0x18
xor ebx, dword [ecx*4 + 0x437d48]
mov ecx, dword [ebp + 0xc]
mov edx, dword [edx*4 + 0x438948]
shr ecx, 0x10
xor ebx, dword [eax + 8]
movzx ecx, cl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor edx, dword [ecx*4 + 0x438548]
mov ecx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x438148]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x437d48]
xor edx, dword [eax + 0xc]
mov ecx, edx
mov dword [ebp - 0x14], edx
shr ecx, 0x18
mov dword [ebp - 0x1c], edx
movzx ebx, byte [ecx + 0x437c48]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x437c48]
xor ebx, ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 8
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x437c48]
xor ebx, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x437c48]
xor ebx, ecx
xor ebx, dword [eax + 0x10]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [ebp + 8], ebx
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x437c48]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
movzx eax, byte [eax + 0x437c48]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0x18]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x437c48]
xor ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + 0x437c48]
xor ecx, eax
mov eax, ebx
shr eax, 0x18
xor ecx, dword [edi + 8]
mov dword [ebp - 0x34], ecx
mov dword [ebp + 0xc], ecx
movzx ebx, byte [eax + 0x437c48]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ebp - 0x18]
shl ebx, 8
movzx eax, byte [eax + 0x437c48]
xor ebx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x437c48]
xor ebx, eax
movzx eax, cl
shl ebx, 8
shr ecx, 0x18
movzx eax, byte [eax + 0x437c48]
xor ebx, eax
mov eax, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x437c48]
shr eax, 0x10
movzx eax, al
xor ebx, dword [edi + 0xc]
mov ecx, dword [ebp + 0x10]
shl edx, 8
movzx eax, byte [eax + 0x437c48]
xor edx, eax
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x437c48]
xor edx, eax
mov eax, dword [ebp - 0x14]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x437c48]
xor edx, eax
mov eax, dword [ebp + 8]
xor edx, dword [edi + 0x10]
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], edx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp + 8]
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, dword [ebp + 0xc]
mov byte [ecx + 4], al
shr eax, 8
mov byte [ecx + 5], al
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, dword [ebp + 0xc]
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
shr eax, 0x10
mov byte [ecx + 0xe], al
lea eax, [ebp - 0x38]
mov byte [ecx + 8], bl
mov byte [ecx + 0xc], dl
shr edx, 0x18
push 0x20
shr ebx, 0x18
push eax
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xf], dl
call fcn.00408cc0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret