Function at 0xb8984
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, esi
and ebp, 0xff00
shl ebp, 8
or edi, ebp
mov ebp, esi
and ebp, 0xff0000
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 0xb899d
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 0xb89da
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 0xb8a29
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, dword [esp + 8]
xor edi, edx
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 0xb8a83
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, dword [esp + 8]
and edi, edx
mov ebp, eax
and ebp, edx
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 0xb8ade
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, dword [esp + 8]
xor edi, edx
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 0xb8b45
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