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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x154], ebx
xor esi, esi
lea edx, [ebx + 0x88]
movzx ecx, byte [edx]
lea edx, [edx + 4]
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x144], ecx
inc esi
cmp esi, 0x10
jl 0x5487a6
lea eax, [ebp - 0x13c]
mov edx, 0x40
nop
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
ror ecx, 0x1f
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x5487e0
mov eax, dword [ebx + 0xc]
mov ecx, eax
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], edx
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x14c], eax
nop dword [eax]
mov edx, ecx
mov eax, esi
and eax, edi
ror edx, 0x1b
mov ecx, edi
not ecx
and ecx, ebx
or ecx, eax
mov eax, dword [ebp - 0x148]
add edx, ecx
add edx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x14c]
add eax, 0x5a827999
mov dword [ebp - 0x14c], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 0x148]
mov esi, edi
shr edi, 2
inc eax
shl esi, 0x1e
mov ecx, edx
or esi, edi
mov dword [ebp - 0x148], eax
mov edi, dword [ebp - 0x150]
mov dword [ebp - 0x150], edx
cmp eax, 0x14
jl 0x548830
mov dword [ebp - 0x148], 0x14
nop dword [eax]
mov eax, ebx
ror edx, 0x1b
xor eax, esi
xor eax, edi
add edx, eax
mov eax, dword [ebp - 0x148]
add edx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x14c]
add eax, 0x6ed9eba1
mov dword [ebp - 0x14c], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 0x148]
mov esi, edi
shr edi, 2
inc eax
shl esi, 0x1e
or esi, edi
mov dword [ebp - 0x148], eax
mov edi, ecx
mov ecx, edx
cmp eax, 0x28
jl 0x5488a0
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], 0x28
nop dword [eax]
mov ecx, esi
ror edx, 0x1b
or ecx, edi
mov eax, esi
and eax, edi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 0x148]
add edx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], ebx
mov ebx, esi
mov esi, edi
shr edi, 2
add ecx, dword [ebp + eax*4 - 0x144]
inc eax
shl esi, 0x1e
add edx, ecx
or esi, edi
mov dword [ebp - 0x148], eax
mov edi, dword [ebp - 0x150]
mov dword [ebp - 0x150], edx
cmp eax, 0x3c
jl 0x548900
mov dword [ebp - 0x148], 0x3c
nop
mov ecx, dword [ebp - 0x148]
mov eax, ebx
xor eax, esi
ror edx, 0x1b
add edx, dword [ebp - 0x14c]
xor eax, edi
add eax, 0xca62c1d6
mov dword [ebp - 0x14c], ebx
add eax, dword [ebp + ecx*4 - 0x144]
mov ebx, esi
add edx, eax
mov esi, edi
shr edi, 2
mov eax, ecx
shl esi, 0x1e
inc eax
or esi, edi
mov dword [ebp - 0x148], eax
mov edi, dword [ebp - 0x150]
mov dword [ebp - 0x150], edx
cmp eax, 0x50
jl 0x548960
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x158]
add eax, edx
add dword [ecx + 0x10], edi
add dword [ecx + 0x14], esi
add dword [ecx + 0x18], ebx
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x14c]
add dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret