Function at 0x1870398
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x10124584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14c], 0
jmp 0x18703cc
mov eax, dword [ebp - 0x14c]
add eax, 1
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0x10
jae 0x187047a
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax*4 + 0x14]
shl edx, 0x18
mov eax, dword [ebp - 0x14c]
mov dword [ebp + eax*4 - 0x148], edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax*4 + 0x15]
shl edx, 0x10
mov eax, dword [ebp - 0x14c]
or edx, dword [ebp + eax*4 - 0x148]
mov ecx, dword [ebp - 0x14c]
mov dword [ebp + ecx*4 - 0x148], edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax*4 + 0x16]
shl edx, 8
mov eax, dword [ebp - 0x14c]
or edx, dword [ebp + eax*4 - 0x148]
mov ecx, dword [ebp - 0x14c]
mov dword [ebp + ecx*4 - 0x148], edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax*4 + 0x17]
mov eax, dword [ebp - 0x14c]
or edx, dword [ebp + eax*4 - 0x148]
mov ecx, dword [ebp - 0x14c]
mov dword [ebp + ecx*4 - 0x148], edx
jmp 0x18703bd
mov dword [ebp - 0x150], 0x10
jmp 0x1870495
mov eax, dword [ebp - 0x150]
add eax, 1
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0x50
jae 0x18704ec
push 1
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp + eax*4 - 0x154]
xor edx, dword [ebp + ecx*4 - 0x168]
mov eax, dword [ebp - 0x150]
xor edx, dword [ebp + eax*4 - 0x180]
mov ecx, dword [ebp - 0x150]
xor edx, dword [ebp + ecx*4 - 0x188]
push edx
call fcn.01870708
add esp, 8
mov edx, dword [ebp - 0x150]
mov dword [ebp + edx*4 - 0x148], eax
jmp 0x1870486
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0x154], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x158], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x15c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x160], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], 0
jmp 0x1870542
mov eax, dword [ebp - 0x168]
add eax, 1
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0x50
jae 0x187069d
cmp dword [ebp - 0x168], 0x14
jae 0x1870589
mov eax, dword [ebp - 0x158]
and eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
not ecx
and ecx, dword [ebp - 0x160]
or eax, ecx
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x170], 0x5a827999
jmp 0x187061b
cmp dword [ebp - 0x168], 0x28
jae 0x18705b6
mov eax, dword [ebp - 0x158]
xor eax, dword [ebp - 0x15c]
xor eax, dword [ebp - 0x160]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x170], 0x6ed9eba1
jmp 0x187061b
cmp dword [ebp - 0x168], 0x3c
jae 0x18705f9
mov eax, dword [ebp - 0x158]
and eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
and ecx, dword [ebp - 0x160]
or eax, ecx
mov edx, dword [ebp - 0x15c]
and edx, dword [ebp - 0x160]
or eax, edx
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x170], 0x8f1bbcdc
jmp 0x187061b
mov eax, dword [ebp - 0x158]
xor eax, dword [ebp - 0x15c]
xor eax, dword [ebp - 0x160]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x170], 0xca62c1d6
push 5
mov eax, dword [ebp - 0x154]
push eax
call fcn.01870708
add esp, 8
add eax, dword [ebp - 0x16c]
add eax, dword [ebp - 0x164]
add eax, dword [ebp - 0x170]
mov ecx, dword [ebp - 0x168]
add eax, dword [ebp + ecx*4 - 0x148]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x160], eax
push 0x1e
mov eax, dword [ebp - 0x158]
push eax
call fcn.01870708
add esp, 8
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x154], eax
jmp 0x1870533
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
add ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
add ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.018bb05e
mov esp, ebp
pop ebp
ret