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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
test cl, cl
je 0x40aa5f
mov ebx, 0x41b71c
mov ecx, 0x40
mov eax, ebx
call fcn.0041013c
jmp 0x40aa61
mov ebx, edx
cmp byte [0x4156b4], 0
jne 0x40aae9
xor esi, esi
xor ecx, ecx
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x41b75c], ecx
lea eax, [ecx + 1]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x41b760], edx
lea eax, [ecx + 2]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x41b764], edx
lea eax, [ecx + 3]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x41b768], edx
lea eax, [ecx + 4]
cdq
idiv edi
lea eax, [esi + esi*4]
mov dword [eax*4 + 0x41b76c], edx
inc esi
test ecx, ecx
je 0x40aad6
lea edx, [ecx - 1]
jmp 0x40aadb
mov edx, 4
mov ecx, edx
cmp esi, 0x50
jl 0x40aa6e
mov byte [0x4156b4], 1
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4]
mov dword [ebp + eax*4 - 0x18], edx
inc eax
cmp eax, 5
jl 0x40aaeb
xor eax, eax
mov ecx, dword [ebx + eax*4]
mov edx, dword [ebx + eax*4]
shr edx, 8
mov esi, dword [ebx + eax*4]
shl ecx, 0x18
or ecx, edx
mov edx, dword [ebx + eax*4]
shl edx, 8
and ecx, 0xff00ff00
shr esi, 0x18
or edx, esi
lea esi, [eax + eax*4]
and edx, 0xff00ff
or ecx, edx
lea edx, [eax + eax*4]
mov dword [ebx + eax*4], ecx
mov edx, dword [edx*4 + 0x41b764]
mov esi, dword [esi*4 + 0x41b768]
mov edx, dword [ebp + edx*4 - 0x18]
xor edx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b760]
and edx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b768]
xor edx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
add ecx, edx
lea edx, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b75c]
mov edx, dword [edx*4 + 0x41b75c]
mov edx, dword [ebp + edx*4 - 0x18]
mov esi, dword [ebp + esi*4 - 0x18]
shr esi, 0x1b
shl edx, 5
or edx, esi
add ecx, edx
lea edx, [eax + eax*4]
add ecx, 0x5a827999
mov edx, dword [edx*4 + 0x41b76c]
add dword [ebp + edx*4 - 0x18], ecx
lea ecx, [eax + eax*4]
mov edx, dword [ecx*4 + 0x41b760]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x41b760]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b760]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x10
jl 0x40aafd
mov eax, 0x10
lea ecx, [eax + 0xd]
lea esi, [eax + 8]
and ecx, 0xf
and esi, 0xf
mov edx, dword [ebx + ecx*4]
lea ecx, [eax + 8]
and ecx, 0xf
xor edx, dword [ebx + ecx*4]
lea ecx, [eax + 2]
and ecx, 0xf
xor edx, dword [ebx + ecx*4]
mov ecx, eax
and ecx, 0xf
xor edx, dword [ebx + ecx*4]
lea ecx, [eax + 0xd]
and ecx, 0xf
add edx, edx
mov ecx, dword [ebx + ecx*4]
xor ecx, dword [ebx + esi*4]
lea esi, [eax + 2]
and esi, 0xf
xor ecx, dword [ebx + esi*4]
mov esi, eax
and esi, 0xf
xor ecx, dword [ebx + esi*4]
lea esi, [eax + eax*4]
shr ecx, 0x1f
or edx, ecx
mov ecx, eax
and ecx, 0xf
mov dword [ebx + ecx*4], edx
lea ecx, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b768]
mov ecx, dword [ecx*4 + 0x41b764]
mov ecx, dword [ebp + ecx*4 - 0x18]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b760]
and ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b768]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
add edx, ecx
lea ecx, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b75c]
mov ecx, dword [ecx*4 + 0x41b75c]
mov ecx, dword [ebp + ecx*4 - 0x18]
mov esi, dword [ebp + esi*4 - 0x18]
shr esi, 0x1b
shl ecx, 5
or ecx, esi
add edx, ecx
lea ecx, [eax + eax*4]
add edx, 0x5a827999
mov ecx, dword [ecx*4 + 0x41b76c]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b760]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x41b760]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b760]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x14
jl 0x40abdf
mov eax, 0x14
lea ecx, [eax + 0xd]
lea esi, [eax + 8]
and ecx, 0xf
and esi, 0xf
mov edx, dword [ebx + ecx*4]
lea ecx, [eax + 8]
and ecx, 0xf
xor edx, dword [ebx + ecx*4]
lea ecx, [eax + 2]
and ecx, 0xf
xor edx, dword [ebx + ecx*4]
mov ecx, eax
and ecx, 0xf
xor edx, dword [ebx + ecx*4]
lea ecx, [eax + 0xd]
and ecx, 0xf
add edx, edx
mov ecx, dword [ebx + ecx*4]
xor ecx, dword [ebx + esi*4]
lea esi, [eax + 2]
and esi, 0xf
xor ecx, dword [ebx + esi*4]
mov esi, eax
and esi, 0xf
xor ecx, dword [ebx + esi*4]
lea esi, [eax + eax*4]
shr ecx, 0x1f
or edx, ecx
mov ecx, eax
and ecx, 0xf
mov dword [ebx + ecx*4], edx
lea ecx, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b764]
mov ecx, dword [ecx*4 + 0x41b760]
mov ecx, dword [ebp + ecx*4 - 0x18]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b768]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
add edx, ecx
lea ecx, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b75c]
mov ecx, dword [ecx*4 + 0x41b75c]
mov ecx, dword [ebp + ecx*4 - 0x18]
mov esi, dword [ebp + esi*4 - 0x18]
shr esi, 0x1b
shl ecx, 5
or ecx, esi
add edx, ecx
lea ecx, [eax + eax*4]
add edx, 0x6ed9eba1
mov ecx, dword [ecx*4 + 0x41b76c]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b760]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x41b760]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b760]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x28
jl 0x40ace9
mov eax, 0x28
lea ecx, [eax + eax*4]
lea esi, [eax + eax*4]
lea edi, [eax + 8]
and edi, 0xf
mov edx, dword [ecx*4 + 0x41b760]
mov esi, dword [esi*4 + 0x41b764]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b764]
or ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b768]
and ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b760]
mov edx, dword [ebp + edx*4 - 0x18]
and edx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + 8]
or ecx, edx
lea edx, [eax + 0xd]
and edx, 0xf
and esi, 0xf
mov edx, dword [ebx + edx*4]
xor edx, dword [ebx + esi*4]
lea esi, [eax + 2]
and esi, 0xf
xor edx, dword [ebx + esi*4]
mov esi, eax
and esi, 0xf
xor edx, dword [ebx + esi*4]
lea esi, [eax + 0xd]
and esi, 0xf
add edx, edx
mov esi, dword [ebx + esi*4]
xor esi, dword [ebx + edi*4]
lea edi, [eax + 2]
and edi, 0xf
xor esi, dword [ebx + edi*4]
mov edi, eax
and edi, 0xf
xor esi, dword [ebx + edi*4]
shr esi, 0x1f
or edx, esi
mov esi, eax
and esi, 0xf
add ecx, edx
mov dword [ebx + esi*4], edx
lea edx, [eax + eax*4]
lea esi, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b75c]
mov esi, dword [esi*4 + 0x41b75c]
mov edx, dword [ebp + edx*4 - 0x18]
shl edx, 5
mov esi, dword [ebp + esi*4 - 0x18]
shr esi, 0x1b
or edx, esi
add ecx, edx
lea edx, [eax + eax*4]
add ecx, 0x8f1bbcdc
mov edx, dword [edx*4 + 0x41b76c]
add dword [ebp + edx*4 - 0x18], ecx
lea ecx, [eax + eax*4]
mov edx, dword [ecx*4 + 0x41b760]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x41b760]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b760]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x3c
jl 0x40ade5
mov eax, 0x3c
lea ecx, [eax + 0xd]
lea esi, [eax + 8]
and ecx, 0xf
and esi, 0xf
mov edx, dword [ebx + ecx*4]
lea ecx, [eax + 8]
and ecx, 0xf
xor edx, dword [ebx + ecx*4]
lea ecx, [eax + 2]
and ecx, 0xf
xor edx, dword [ebx + ecx*4]
mov ecx, eax
and ecx, 0xf
xor edx, dword [ebx + ecx*4]
lea ecx, [eax + 0xd]
and ecx, 0xf
add edx, edx
mov ecx, dword [ebx + ecx*4]
xor ecx, dword [ebx + esi*4]
lea esi, [eax + 2]
and esi, 0xf
xor ecx, dword [ebx + esi*4]
mov esi, eax
and esi, 0xf
xor ecx, dword [ebx + esi*4]
lea esi, [eax + eax*4]
shr ecx, 0x1f
or edx, ecx
mov ecx, eax
and ecx, 0xf
mov dword [ebx + ecx*4], edx
lea ecx, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b764]
mov ecx, dword [ecx*4 + 0x41b760]
mov ecx, dword [ebp + ecx*4 - 0x18]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b768]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
add edx, ecx
lea ecx, [eax + eax*4]
mov esi, dword [esi*4 + 0x41b75c]
mov ecx, dword [ecx*4 + 0x41b75c]
mov ecx, dword [ebp + ecx*4 - 0x18]
mov esi, dword [ebp + esi*4 - 0x18]
shr esi, 0x1b
shl ecx, 5
or ecx, esi
add edx, ecx
lea ecx, [eax + eax*4]
add edx, 0xca62c1d6
mov ecx, dword [ecx*4 + 0x41b76c]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b760]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x41b760]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41b760]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x50
jl 0x40aeff
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + eax*4 - 0x18]
add dword [ecx + eax*4], edx
inc eax
cmp eax, 5
jl 0x40aff8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret