Function at 0x40a2f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
push edi
mov ecx, 0x10
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 0xa
mov edi, edi
add ebx, ecx
mov eax, esi
xor eax, ebx
rol eax, 0x10
add ebp, eax
mov edx, dword [esp + 0x38]
mov edi, ebp
xor edi, ecx
rol edi, 0xc
add ebx, edi
xor eax, ebx
rol eax, 8
mov ecx, dword [esp + 0x48]
add ebp, eax
mov dword [esp + 0x44], eax
mov eax, ebp
xor eax, edi
rol eax, 7
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
xor ecx, eax
rol ecx, 0x10
add edx, ecx
mov edi, edx
xor edi, dword [esp + 0x28]
rol edi, 0xc
add eax, edi
xor ecx, eax
rol ecx, 8
add edx, ecx
mov dword [esp + 0x48], ecx
mov ecx, edx
xor ecx, edi
mov edi, dword [esp + 0x3c]
rol ecx, 7
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
add ecx, esi
xor edx, ecx
rol edx, 0x10
add edi, edx
mov dword [esp + 0x3c], edi
xor edi, esi
mov esi, dword [esp + 0x3c]
rol edi, 0xc
add ecx, edi
xor edx, ecx
rol edx, 8
add esi, edx
mov dword [esp + 0x4c], edx
mov edx, esi
xor edx, edi
mov edi, dword [esp + 0x30]
rol edx, 7
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edx, edi
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x50]
xor esi, edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x40]
rol esi, 0x10
add edx, esi
mov dword [esp + 0x40], edx
xor edx, edi
mov edi, dword [esp + 0x20]
rol edx, 0xc
add edi, edx
xor esi, edi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x40]
rol esi, 8
add edi, esi
mov dword [esp + 0x40], edi
xor edi, edx
rol edi, 7
add ebx, dword [esp + 0x28]
add eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
xor esi, ebx
rol esi, 0x10
add edx, esi
mov dword [esp + 0x3c], edx
xor edx, dword [esp + 0x28]
mov dword [esp + 0x50], esi
rol edx, 0xc
add ebx, edx
mov dword [esp + 0x28], edx
mov edx, esi
mov esi, dword [esp + 0x3c]
xor edx, ebx
rol edx, 8
add esi, edx
mov dword [esp + 0x50], edx
mov edx, eax
xor edx, dword [esp + 0x44]
mov dword [esp + 0x3c], esi
xor esi, dword [esp + 0x28]
add ecx, edi
rol esi, 7
rol edx, 0x10
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x40]
add esi, edx
mov edx, esi
xor edx, dword [esp + 0x2c]
mov dword [esp + 0x40], esi
rol edx, 0xc
add eax, edx
mov dword [esp + 0x18], eax
xor eax, dword [esp + 0x44]
rol eax, 8
mov esi, eax
mov eax, dword [esp + 0x40]
add eax, esi
mov dword [esp + 0x40], eax
xor eax, edx
rol eax, 7
mov edx, ecx
xor edx, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
rol edx, 0x10
add ebp, edx
xor edi, ebp
rol edi, 0xc
add ecx, edi
mov dword [esp + 0x1c], ecx
xor ecx, edx
rol ecx, 8
mov eax, ecx
mov ecx, dword [esp + 0x38]
add ebp, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x24]
xor edi, ebp
mov edx, eax
xor edx, dword [esp + 0x4c]
rol edi, 7
rol edx, 0x10
add ecx, edx
mov dword [esp + 0x30], edi
mov edi, ecx
xor edi, dword [esp + 0x24]
mov dword [esp + 0x44], esi
rol edi, 0xc
add eax, edi
mov dword [esp + 0x20], eax
xor eax, edx
rol eax, 8
add ecx, eax
mov dword [esp + 0x38], ecx
xor ecx, edi
rol ecx, 7
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], ecx
sub dword [esp + 0x10], 1
jne 0x40a320
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x34], ebp
lea ebp, [esp + 0x18]
sub ebp, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x5c], ebp
lea ebx, [esp + 0x14]
lea ecx, [edi + 0xc]
lea ebp, [esp + 0x1c]
xor edx, edx
sub edi, esi
sub ebx, esi
lea eax, [esi + 4]
sub ebp, esi
mov esi, dword [esp + edx*4 + 0x14]
add esi, dword [ecx - 0xc]
add edx, 4
mov dword [eax - 4], esi
mov esi, dword [eax + edi]
add esi, dword [eax + ebx]
add eax, 0x10
mov dword [eax - 0x10], esi
mov esi, dword [esp + 0x5c]
mov esi, dword [eax + esi - 0x10]
add esi, dword [ecx - 4]
add ecx, 0x10
mov dword [eax - 0xc], esi
mov esi, dword [eax + ebp - 0x10]
add esi, dword [ecx - 0x10]
cmp edx, 0x10
mov dword [eax - 8], esi
jl 0x40a541
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret