Function at 0x40f7c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
mov eax, dword [ecx + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov edx, dword [edi]
lea esi, [eax + edx]
mov eax, esi
mov ebx, esi
shr ebx, 8
and ebx, 0xff
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x583830]
xor eax, dword [ebx*4 + 0x583430]
mov ebx, esi
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x583c30]
and esi, 0xff
xor eax, dword [esi*4 + 0x583030]
mov esi, dword [ecx + 0x14]
xor eax, dword [edi + 4]
add esi, eax
mov edi, esi
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x583830]
mov ebx, esi
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x583430]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x583c30]
and esi, 0xff
xor edi, dword [esi*4 + 0x583030]
mov esi, dword [ecx + 0x18]
xor edx, edi
add esi, edx
mov edi, esi
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x583830]
mov ebx, esi
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x583430]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x583c30]
and esi, 0xff
xor edi, dword [esi*4 + 0x583030]
mov esi, dword [ecx + 0x1c]
xor eax, edi
add esi, eax
mov edi, esi
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x583830]
mov ebx, esi
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x583430]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x583c30]
and esi, 0xff
xor edi, dword [esi*4 + 0x583030]
mov esi, dword [ecx + 0x20]
xor edx, edi
add esi, edx
mov edi, esi
shr edi, 0x10
mov ebx, esi
shr ebx, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x583830]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x583430]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x583c30]
and esi, 0xff
xor edi, dword [esi*4 + 0x583030]
mov esi, dword [ecx + 0x24]
xor eax, edi
add esi, eax
mov edi, esi
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x583830]
mov ebx, esi
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x583430]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x583c30]
and esi, 0xff
xor edi, dword [esi*4 + 0x583030]
mov esi, dword [ecx + 0x28]
xor edx, edi
add esi, edx
mov edi, esi
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x583830]
mov ebx, esi
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x583430]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x583c30]
and esi, 0xff
xor edi, dword [esi*4 + 0x583030]
mov esi, dword [ecx + 0x2c]
xor eax, edi
add esi, eax
mov edi, esi
mov ebx, esi
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x583830]
shr ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x583430]
mov ebx, esi
and esi, 0xff
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x583c30]
mov ebx, dword [ecx + 0x2c]
xor edi, dword [esi*4 + 0x583030]
mov esi, dword [ecx + 0x28]
mov dword [esp + 0x2c], esi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0x10], esi
mov esi, dword [ecx + 0x20]
mov dword [esp + 0x14], esi
mov esi, dword [ecx + 0x1c]
mov dword [esp + 0x18], esi
mov esi, dword [ecx + 0x18]
mov dword [esp + 0x1c], esi
mov esi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
xor edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov edi, 3
lea esi, [ebx + edx]
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x583830]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x583430]
mov ebp, esi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x583c30]
and esi, 0xff
xor ecx, dword [esi*4 + 0x583030]
xor eax, ecx
mov ecx, dword [esp + 0x2c]
lea esi, [ecx + eax]
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x583830]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x583430]
mov ebp, esi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x583c30]
and esi, 0xff
xor ecx, dword [esi*4 + 0x583030]
xor edx, ecx
mov ecx, dword [esp + 0x10]
lea esi, [ecx + edx]
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x583830]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x583430]
mov ebp, esi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x583c30]
and esi, 0xff
xor ecx, dword [esi*4 + 0x583030]
xor eax, ecx
mov ecx, dword [esp + 0x14]
lea esi, [ecx + eax]
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x583830]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x583430]
mov ebp, esi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x583c30]
and esi, 0xff
xor ecx, dword [esi*4 + 0x583030]
xor edx, ecx
mov ecx, dword [esp + 0x18]
lea esi, [ecx + edx]
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x583830]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x583430]
mov ebp, esi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x583c30]
and esi, 0xff
xor ecx, dword [esi*4 + 0x583030]
xor eax, ecx
mov ecx, dword [esp + 0x1c]
lea esi, [ecx + eax]
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x583830]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x583430]
mov ebp, esi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x583c30]
and esi, 0xff
xor ecx, dword [esi*4 + 0x583030]
xor edx, ecx
mov ecx, dword [esp + 0x20]
lea esi, [ecx + edx]
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x583830]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x583430]
mov ebp, esi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x583c30]
and esi, 0xff
xor ecx, dword [esi*4 + 0x583030]
xor eax, ecx
mov ecx, dword [esp + 0x24]
lea esi, [ecx + eax]
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x583830]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x583430]
mov ebp, esi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x583c30]
and esi, 0xff
xor ecx, dword [esi*4 + 0x583030]
xor edx, ecx
sub edi, 1
jne 0x40fa27
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov dword [ecx + 4], edx
pop ebx
add esp, 0x18
ret 8