Function at 0x403778
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 0x40379b
mov ebx, 0x412c98
mov ecx, 0x40
mov eax, ebx
call fcn.00401340
jmp 0x40379d
mov ebx, edx
cmp byte [0x412074], 0
jne 0x403825
xor esi, esi
xor ecx, ecx
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x412cd8], ecx
lea eax, [ecx + 1]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x412cdc], edx
lea eax, [ecx + 2]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x412ce0], edx
lea eax, [ecx + 3]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x412ce4], edx
lea eax, [ecx + 4]
cdq
idiv edi
lea eax, [esi + esi*4]
mov dword [eax*4 + 0x412ce8], edx
inc esi
test ecx, ecx
je 0x403812
lea edx, [ecx - 1]
jmp 0x403817
mov edx, 4
mov ecx, edx
cmp esi, 0x50
jl 0x4037aa
mov byte [0x412074], 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 0x403827
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 + 0x412ce0]
mov esi, dword [esi*4 + 0x412ce4]
mov edx, dword [ebp + edx*4 - 0x18]
xor edx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x412cdc]
and edx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x412ce4]
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 + 0x412cd8]
mov edx, dword [edx*4 + 0x412cd8]
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 + 0x412ce8]
add dword [ebp + edx*4 - 0x18], ecx
lea ecx, [eax + eax*4]
mov edx, dword [ecx*4 + 0x412cdc]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x412cdc]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412cdc]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x10
jl 0x403839
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 + 0x412ce4]
mov ecx, dword [ecx*4 + 0x412ce0]
mov ecx, dword [ebp + ecx*4 - 0x18]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x412cdc]
and ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x412ce4]
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 + 0x412cd8]
mov ecx, dword [ecx*4 + 0x412cd8]
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 + 0x412ce8]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412cdc]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x412cdc]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412cdc]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x14
jl 0x40391b
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 + 0x412ce0]
mov ecx, dword [ecx*4 + 0x412cdc]
mov ecx, dword [ebp + ecx*4 - 0x18]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x412ce4]
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 + 0x412cd8]
mov ecx, dword [ecx*4 + 0x412cd8]
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 + 0x412ce8]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412cdc]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x412cdc]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412cdc]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x28
jl 0x403a25
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 + 0x412cdc]
mov esi, dword [esi*4 + 0x412ce0]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce0]
or ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce4]
and ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412cdc]
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 + 0x412cd8]
mov esi, dword [esi*4 + 0x412cd8]
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 + 0x412ce8]
add dword [ebp + edx*4 - 0x18], ecx
lea ecx, [eax + eax*4]
mov edx, dword [ecx*4 + 0x412cdc]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x412cdc]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412cdc]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x3c
jl 0x403b21
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 + 0x412ce0]
mov ecx, dword [ecx*4 + 0x412cdc]
mov ecx, dword [ebp + ecx*4 - 0x18]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x412ce4]
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 + 0x412cd8]
mov ecx, dword [ecx*4 + 0x412cd8]
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 + 0x412ce8]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412cdc]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x412cdc]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412cdc]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x50
jl 0x403c3b
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 0x403d34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret