Function at 0x40b7c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ecx, 8
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x30]
push ebx
mov edi, eax
sub esp, 0x5c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], 0
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp + 0xc]
mov dword [eax + ebx*8], edx
mov edx, dword [ebp - 0x44]
mov dword [eax + ebx*8 + 4], ecx
mov eax, dword [ebp - 0x48]
mov ecx, eax
shrd eax, edx, 8
shrd edx, ecx, 8
add eax, dword [ebp - 0x40]
mov ecx, ebx
adc edx, dword [ebp - 0x3c]
xor ecx, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], ecx
xor eax, edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov ecx, eax
shld eax, edx, 3
shld edx, ecx, 3
mov ecx, dword [ebp - 0x48]
xor ecx, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], ecx
xor eax, edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov dword [edi + ebx*8 + 8], eax
mov eax, dword [ebp - 0x58]
mov dword [edi + ebx*8 + 0xc], edx
mov edx, dword [ebp - 0x54]
mov ecx, eax
shrd eax, edx, 8
shrd edx, ecx, 8
add eax, dword [ebp - 0x50]
adc edx, dword [ebp - 0x4c]
mov esi, eax
mov eax, dword [ebp - 0x38]
mov edi, edx
mov edx, dword [ebp - 0x34]
add eax, 1
adc edx, 0
xor eax, esi
mov dword [ebp - 0x58], eax
mov eax, edi
mov esi, dword [ebp + 0xc]
xor eax, edx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov ecx, eax
shld eax, edx, 3
shld edx, ecx, 3
mov ecx, dword [ebp - 0x58]
xor ecx, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], ecx
xor eax, edx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov dword [esi + ebx*8 + 0x10], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + ebx*8 + 0x14], edx
mov edx, dword [ebp - 0x64]
mov ecx, eax
mov ebx, dword [ebp - 0x34]
shrd eax, edx, 8
shrd edx, ecx, 8
mov ecx, dword [ebp - 0x38]
add eax, dword [ebp - 0x60]
adc edx, dword [ebp - 0x5c]
mov edi, eax
add ecx, 2
mov eax, edx
mov edx, dword [ebp - 0x5c]
adc ebx, 0
xor edi, ecx
xor eax, ebx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
mov ecx, eax
shld eax, edx, 3
xor edi, eax
mov eax, dword [ebp - 0x64]
shld edx, ecx, 3
mov dword [ebp - 0x40], edi
xor eax, edx
add dword [ebp - 0x38], 3
mov dword [ebp - 0x3c], eax
adc dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x38]
xor eax, 0x21
or eax, dword [ebp - 0x34]
jne 0x40b81e
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov edi, esi
mov ebx, dword [ebp - 0x40]
mov dword [esi + 0xf8], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0xfc], edx
mov edx, dword [ebp - 0x5c]
mov dword [esi + 0x100], eax
mov eax, 1
mov dword [esi + 0x104], edx
mov esi, dword [ebp - 0x3c]
mov dword [edi + 0x108], ebx
mov dword [edi + 0x10c], esi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret