Function at 0x518c48
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x1c]
shl eax, 8
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + ecx*4 + 0x1c]
shr edx, 0x18
or eax, edx
and eax, 0xff00ff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, dword [ecx + edx*4 + 0x1c]
shl ecx, 0x18
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
mov edx, dword [edx + ebx*4 + 0x1c]
shr edx, 8
or ecx, edx
and ecx, 0xff00ff00
or eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x15c], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jb 0x518c57
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x168]
mov edx, dword [ebp - 4]
xor eax, dword [ebp + edx*4 - 0x17c]
mov ecx, dword [ebp - 4]
xor eax, dword [ebp + ecx*4 - 0x194]
mov edx, dword [ebp - 4]
xor eax, dword [ebp + edx*4 - 0x19c]
add eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*4 - 0x168]
mov ecx, dword [ebp - 4]
xor edx, dword [ebp + ecx*4 - 0x17c]
mov ecx, dword [ebp - 4]
xor edx, dword [ebp + ecx*4 - 0x194]
mov ecx, dword [ebp - 4]
xor edx, dword [ebp + ecx*4 - 0x19c]
shr edx, 0x1f
or eax, edx
mov edx, dword [ebp - 4]
mov dword [ebp + edx*4 - 0x15c], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x50
jb 0x518cb6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 8]
shl ecx, 5
mov eax, dword [ebp - 8]
shr eax, 0x1b
or ecx, eax
mov edx, dword [ebp - 0xc]
and edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
not eax
and eax, dword [ebp - 0x14]
xor edx, eax
add ecx, edx
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
add ecx, dword [ebp + edx*4 - 0x15c]
add ecx, 0x5a827999
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
shl edx, 0x1e
mov ecx, dword [ebp - 0xc]
shr ecx, 2
or edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x518d52
mov dword [ebp - 4], 0x14
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 8]
shl ecx, 5
mov eax, dword [ebp - 8]
shr eax, 0x1b
or ecx, eax
mov edx, dword [ebp - 0xc]
xor edx, dword [ebp - 0x10]
xor edx, dword [ebp - 0x14]
add ecx, edx
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x15c]
add ecx, 0x6ed9eba1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
shl eax, 0x1e
mov edx, dword [ebp - 0xc]
shr edx, 2
or eax, edx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x28
jb 0x518dc1
mov dword [ebp - 4], 0x28
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 8]
shl edx, 5
mov ecx, dword [ebp - 8]
shr ecx, 0x1b
or edx, ecx
mov eax, dword [ebp - 0xc]
and eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
and ecx, dword [ebp - 0x14]
xor eax, ecx
mov ecx, dword [ebp - 0x10]
and ecx, dword [ebp - 0x14]
xor eax, ecx
add edx, eax
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x15c]
add edx, 0x8f1bbcdc
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
shl edx, 0x1e
mov ecx, dword [ebp - 0xc]
shr ecx, 2
or edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3c
jb 0x518e29
mov dword [ebp - 4], 0x3c
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 8]
shl ecx, 5
mov eax, dword [ebp - 8]
shr eax, 0x1b
or ecx, eax
mov edx, dword [ebp - 0xc]
xor edx, dword [ebp - 0x10]
xor edx, dword [ebp - 0x14]
add ecx, edx
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x15c]
add ecx, 0xca62c1d6
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
shl eax, 0x1e
mov edx, dword [ebp - 0xc]
shr edx, 2
or eax, edx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x50
jb 0x518e9e
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
add dword [eax + 8], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
add dword [eax + 0x14], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
add dword [ecx + 0x18], eax
pop ebx
mov esp, ebp
pop ebp
ret