Function at 0x403890
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 0x4038b3
mov ebx, 0x412c9c
mov ecx, 0x40
mov eax, ebx
call fcn.00401340
jmp 0x4038b5
mov ebx, edx
cmp byte [0x412074], 0
jne 0x40393d
xor esi, esi
xor ecx, ecx
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x412cdc], ecx
lea eax, [ecx + 1]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x412ce0], edx
lea eax, [ecx + 2]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x412ce4], edx
lea eax, [ecx + 3]
cdq
idiv edi
lea eax, [esi + esi*4]
mov edi, 5
mov dword [eax*4 + 0x412ce8], edx
lea eax, [ecx + 4]
cdq
idiv edi
lea eax, [esi + esi*4]
mov dword [eax*4 + 0x412cec], edx
inc esi
test ecx, ecx
je 0x40392a
lea edx, [ecx - 1]
jmp 0x40392f
mov edx, 4
mov ecx, edx
cmp esi, 0x50
jl 0x4038c2
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 0x40393f
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 + 0x412ce4]
mov esi, dword [esi*4 + 0x412ce8]
mov edx, dword [ebp + edx*4 - 0x18]
xor edx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x412ce0]
and edx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x412ce8]
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 + 0x412cdc]
mov edx, dword [edx*4 + 0x412cdc]
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 + 0x412cec]
add dword [ebp + edx*4 - 0x18], ecx
lea ecx, [eax + eax*4]
mov edx, dword [ecx*4 + 0x412ce0]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x412ce0]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce0]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x10
jl 0x403951
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 + 0x412ce8]
mov ecx, dword [ecx*4 + 0x412ce4]
mov ecx, dword [ebp + ecx*4 - 0x18]
xor ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x412ce0]
and ecx, dword [ebp + esi*4 - 0x18]
lea esi, [eax + eax*4]
mov esi, dword [esi*4 + 0x412ce8]
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 + 0x412cdc]
mov ecx, dword [ecx*4 + 0x412cdc]
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 + 0x412cec]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce0]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x412ce0]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce0]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x14
jl 0x403a33
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 + 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 + 0x412ce8]
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 + 0x412cdc]
mov ecx, dword [ecx*4 + 0x412cdc]
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 + 0x412cec]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce0]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x412ce0]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce0]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x28
jl 0x403b3d
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 + 0x412ce0]
mov esi, dword [esi*4 + 0x412ce4]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce4]
or ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce8]
and ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce0]
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 + 0x412cdc]
mov esi, dword [esi*4 + 0x412cdc]
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 + 0x412cec]
add dword [ebp + edx*4 - 0x18], ecx
lea ecx, [eax + eax*4]
mov edx, dword [ecx*4 + 0x412ce0]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x412ce0]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce0]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x3c
jl 0x403c39
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 + 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 + 0x412ce8]
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 + 0x412cdc]
mov ecx, dword [ecx*4 + 0x412cdc]
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 + 0x412cec]
add dword [ebp + ecx*4 - 0x18], edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce0]
mov ecx, dword [ebp + edx*4 - 0x18]
lea edx, [eax + eax*4]
shl ecx, 0x1e
mov edx, dword [edx*4 + 0x412ce0]
mov edx, dword [ebp + edx*4 - 0x18]
shr edx, 2
or ecx, edx
lea edx, [eax + eax*4]
mov edx, dword [edx*4 + 0x412ce0]
mov dword [ebp + edx*4 - 0x18], ecx
inc eax
cmp eax, 0x50
jl 0x403d53
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 0x403e4c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret