Function at 0x40b254
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 0x40b277
mov ebx, 0x41af14
mov ecx, 0x40
mov eax, ebx
call fcn.004107f0
jmp 0x40b279
mov ebx, edx
cmp byte [0x4156a8], 0
jne 0x40b301
xor esi, esi
xor ecx, ecx
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x41af54], ecx
lea eax, [ecx + 1]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x41af58], edx
lea eax, [ecx + 2]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x41af5c], edx
lea eax, [ecx + 3]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x41af60], edx
lea eax, [ecx + 4]
cdq
idiv edi
lea eax, [esi + esi*4]
mov dword [eax*4 + 0x41af64], edx
inc esi
test ecx, ecx
je 0x40b2ee
lea edx, [ecx - 1]
jmp 0x40b2f3
mov edx, 4
mov ecx, edx
cmp esi, 0x50
jl 0x40b286
mov byte [0x4156a8], 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 0x40b303
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 + 0x41af5c]
mov esi, dword [esi*4 + 0x41af60]
mov edx, dword [ebp + edx*4 - 0x18]
xor edx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41af58]
and edx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41af60]
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 + 0x41af54]
mov edx, dword [edx*4 + 0x41af54]
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 + 0x41af64]
add dword [ebp + edx*4 - 0x18], ecx
lea ecx, [eax + eax*4]
mov edx, dword [ecx*4 + 0x41af58]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x41af58]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af58]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x10
jl 0x40b315
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 + 0x41af60]
mov ecx, dword [ecx*4 + 0x41af5c]
mov ecx, dword [ebp + ecx*4 - 0x18]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41af58]
and ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41af60]
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 + 0x41af54]
mov ecx, dword [ecx*4 + 0x41af54]
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 + 0x41af64]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af58]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x41af58]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af58]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x14
jl 0x40b3f7
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 + 0x41af5c]
mov ecx, dword [ecx*4 + 0x41af58]
mov ecx, dword [ebp + ecx*4 - 0x18]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41af60]
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 + 0x41af54]
mov ecx, dword [ecx*4 + 0x41af54]
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 + 0x41af64]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af58]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x41af58]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af58]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x28
jl 0x40b501
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 + 0x41af58]
mov esi, dword [esi*4 + 0x41af5c]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af5c]
or ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af60]
and ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af58]
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 + 0x41af54]
mov esi, dword [esi*4 + 0x41af54]
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 + 0x41af64]
add dword [ebp + edx*4 - 0x18], ecx
lea ecx, [eax + eax*4]
mov edx, dword [ecx*4 + 0x41af58]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x41af58]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af58]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x3c
jl 0x40b5fd
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 + 0x41af5c]
mov ecx, dword [ecx*4 + 0x41af58]
mov ecx, dword [ebp + ecx*4 - 0x18]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x41af60]
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 + 0x41af54]
mov ecx, dword [ecx*4 + 0x41af54]
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 + 0x41af64]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af58]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x41af58]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x41af58]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x50
jl 0x40b717
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 0x40b810
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret