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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp + 4], ecx
mov dword [esp], eax
mov ecx, 0x10
mov eax, edx
mov ebx, dword [esp + 4]
mov esi, dword [eax]
mov edi, esi
shl edi, 0x18
mov ebp, 0xff00
and ebp, esi
shl ebp, 8
or edi, ebp
mov ebp, 0xff0000
and ebp, esi
shr ebp, 8
or edi, ebp
shr esi, 0x18
or edi, esi
mov dword [ebx], edi
add ebx, 4
add eax, 4
dec ecx
jne 0x5a786d
mov ecx, 0x40
mov edx, dword [esp + 4]
add edx, 0x34
mov esi, dword [edx]
xor esi, dword [edx - 0x14]
xor esi, dword [edx - 0x2c]
xor esi, dword [edx - 0x34]
mov eax, esi
add eax, eax
shr esi, 0x1f
or eax, esi
mov dword [edx + 0xc], eax
add edx, 4
dec ecx
jne 0x5a78a8
mov ebx, dword [esp]
mov ebx, dword [ebx]
mov edx, dword [esp]
mov edx, dword [edx + 4]
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, 0x14
mov esi, dword [esp + 4]
mov dword [esp + 0x10], esi
mov esi, ebx
shl esi, 5
mov edi, ebx
shr edi, 0x1b
or esi, edi
mov edi, dword [esp + 8]
xor edi, eax
and edi, edx
xor edi, eax
add esi, edi
add esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
add esi, dword [edi]
add esi, 0x5a827999
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov edi, edx
shl edi, 0x1e
shr edx, 2
or edi, edx
mov dword [esp + 8], edi
mov edx, ebx
mov ebx, esi
add dword [esp + 0x10], 4
dec ecx
jne 0x5a78f7
mov ecx, 0x14
mov esi, dword [esp + 4]
add esi, 0x50
mov dword [esp + 0x14], esi
mov esi, ebx
shl esi, 5
mov edi, ebx
shr edi, 0x1b
or esi, edi
mov edi, edx
xor edi, dword [esp + 8]
xor edi, eax
add esi, edi
add esi, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
add esi, dword [edi]
add esi, 0x6ed9eba1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov edi, edx
shl edi, 0x1e
shr edx, 2
or edi, edx
mov dword [esp + 8], edi
mov edx, ebx
mov ebx, esi
add dword [esp + 0x14], 4
dec ecx
jne 0x5a7951
mov ecx, 0x14
mov esi, dword [esp + 4]
add esi, 0xa0
mov dword [esp + 0x18], esi
mov esi, ebx
shl esi, 5
mov edi, ebx
shr edi, 0x1b
or esi, edi
mov edi, edx
and edi, dword [esp + 8]
mov ebp, edx
and ebp, eax
or edi, ebp
mov ebp, dword [esp + 8]
and ebp, eax
or edi, ebp
add esi, edi
add esi, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
add esi, dword [edi]
add esi, 0x8f1bbcdc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov edi, edx
shl edi, 0x1e
shr edx, 2
or edi, edx
mov dword [esp + 8], edi
mov edx, ebx
mov ebx, esi
add dword [esp + 0x18], 4
dec ecx
jne 0x5a79ac
mov ecx, 0x14
mov esi, dword [esp + 4]
add esi, 0xf0
mov dword [esp + 0x1c], esi
mov esi, ebx
shl esi, 5
mov edi, ebx
shr edi, 0x1b
or esi, edi
mov edi, edx
xor edi, dword [esp + 8]
xor edi, eax
add esi, edi
add esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
add esi, dword [edi]
add esi, 0xca62c1d6
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov edi, edx
shl edi, 0x1e
shr edx, 2
or edi, edx
mov dword [esp + 8], edi
mov edx, ebx
mov ebx, esi
add dword [esp + 0x1c], 4
dec ecx
jne 0x5a7a13
mov ecx, dword [esp]
add dword [ecx], ebx
mov ecx, dword [esp]
add dword [ecx + 4], edx
mov edx, dword [esp]
mov ecx, dword [esp + 8]
add dword [edx + 8], ecx
mov edx, dword [esp]
add dword [edx + 0xc], eax
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
add dword [eax + 0x10], edx
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret