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

Disassembly:
sub esp, 0x18
cmp byte [esp + 0x28], 0
push ebx
push ebp
push esi
push edi
je 0x40dc31
mov ebp, dword [esp + 0x30]
push 0x40
push dword [esp + 0x38]
push ebp
call fcn.0041eeb0
add esp, 0xc
jmp 0x40dc39
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x30], ebp
cmp byte [0x442490], 0
push 5
pop ebx
jne 0x40dc8e
xor ecx, ecx
mov esi, 0x441e54
lea eax, [ecx + 1]
mov dword [esi - 4], ecx
cdq
idiv ebx
lea eax, [ecx + 2]
mov dword [esi], edx
cdq
idiv ebx
lea eax, [ecx + 3]
mov dword [esi + 4], edx
cdq
idiv ebx
lea eax, [ecx + 4]
mov dword [esi + 8], edx
cdq
idiv ebx
mov dword [esi + 0xc], edx
add esi, 0x14
test ecx, ecx
je 0x40dc7c
dec ecx
jmp 0x40dc7f
push 4
pop ecx
cmp esi, 0x442494
jl 0x40dc4c
mov byte [0x442490], 1
mov esi, dword [esp + 0x2c]
lea edi, [esp + 0x14]
mov ecx, ebx
mov eax, 0x441f9c
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov ebp, 0x441e5c
mov eax, dword [ecx]
mov ebx, eax
mov edi, dword [ebp - 8]
rol eax, 8
and eax, 0xff00ff
mov esi, dword [ebp + 4]
ror ebx, 8
and ebx, 0xff00ff00
or ebx, eax
mov eax, dword [ebp]
mov dword [ecx], ebx
mov edx, dword [esp + eax*4 + 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [esp + eax*4 + 0x14]
mov eax, dword [ebp - 4]
add ebp, 0x14
rol ecx, 5
add ecx, 0x5a827999
add ecx, ebx
mov eax, dword [esp + eax*4 + 0x14]
xor eax, edx
and eax, dword [esp + edi*4 + 0x14]
xor eax, edx
add eax, ecx
mov ecx, dword [esp + 0x34]
add dword [esp + esi*4 + 0x14], eax
add ecx, 4
ror dword [esp + edi*4 + 0x14], 2
mov edi, 0x441f9c
mov dword [esp + 0x34], ecx
cmp ebp, edi
jl 0x40dcae
mov ebp, dword [esp + 0x30]
push 0x10
pop eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], 0x441fec
lea edx, [eax - 3]
mov esi, eax
lea ecx, [edx - 5]
and esi, 0xf
and ecx, 0xf
lea eax, [edx + 5]
and eax, 0xf
and edx, 0xf
mov ebx, dword [ebp + ecx*4]
xor ebx, dword [ebp + eax*4]
mov eax, dword [edi]
xor ebx, dword [ebp + edx*4]
xor ebx, dword [ebp + esi*4]
mov edi, dword [edi - 8]
mov edx, dword [esp + eax*4 + 0x14]
mov eax, dword [esp + 0x38]
rol ebx, 1
mov dword [ebp + esi*4], ebx
mov esi, dword [eax + 4]
mov eax, dword [eax - 0xc]
mov ecx, dword [esp + eax*4 + 0x14]
mov eax, dword [esp + 0x38]
rol ecx, 5
add ecx, 0x5a827999
add ecx, ebx
mov eax, dword [eax - 4]
mov eax, dword [esp + eax*4 + 0x14]
xor eax, edx
and eax, dword [esp + edi*4 + 0x14]
xor eax, edx
add eax, ecx
add dword [esp + esi*4 + 0x14], eax
ror dword [esp + edi*4 + 0x14], 2
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
add edi, 0x14
inc eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], eax
cmp edi, 0x441fec
jl 0x40dd2a
push 0x14
pop ecx
mov dword [esp + 0x38], ecx
lea edx, [ecx - 3]
mov esi, ecx
lea ecx, [edx - 5]
push 0xf
pop edi
and ecx, edi
lea eax, [edx + 5]
and eax, edi
and edx, edi
and esi, edi
mov ebx, dword [ebp + ecx*4]
xor ebx, dword [ebp + eax*4]
mov ecx, dword [esp + 0x34]
xor ebx, dword [ebp + edx*4]
xor ebx, dword [ebp + esi*4]
rol ebx, 1
mov eax, dword [ecx - 0xc]
mov edi, dword [ecx - 8]
mov dword [ebp + esi*4], ebx
mov esi, dword [ecx + 4]
mov edx, dword [esp + eax*4 + 0x14]
mov eax, dword [ecx - 4]
mov ecx, dword [ecx]
rol edx, 5
add edx, ebx
mov eax, dword [esp + eax*4 + 0x14]
xor eax, dword [esp + ecx*4 + 0x14]
xor eax, dword [esp + edi*4 + 0x14]
mov ecx, dword [esp + 0x38]
add eax, 0x6ed9eba1
add eax, edx
add dword [esp + esi*4 + 0x14], eax
mov eax, dword [esp + 0x34]
ror dword [esp + edi*4 + 0x14], 2
add eax, 0x14
inc ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
cmp eax, 0x44217c
jl 0x40ddbe
push 0x28
pop eax
mov ebx, 0x442178
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
lea edx, [eax - 3]
mov esi, eax
lea ecx, [edx - 5]
lea eax, [edx + 5]
push 0xf
pop edi
and ecx, edi
and eax, edi
and edx, edi
and esi, edi
mov ecx, dword [ebp + ecx*4]
xor ecx, dword [ebp + eax*4]
xor ecx, dword [ebp + edx*4]
xor ecx, dword [ebp + esi*4]
mov eax, dword [ebx]
rol ecx, 1
mov dword [ebp + esi*4], ecx
mov ebp, dword [ebx - 4]
mov esi, dword [esp + eax*4 + 0x14]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + ebp*4 + 0x14]
mov eax, dword [ecx - 8]
mov edx, dword [esp + eax*4 + 0x14]
mov eax, dword [ecx + 4]
mov ecx, edi
rol edx, 5
or ecx, esi
and edi, esi
add edx, 0x8f1bbcdc
add edx, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x14]
and eax, ecx
or eax, edi
add eax, edx
add dword [esp + ebx*4 + 0x14], eax
mov ebx, dword [esp + 0x38]
ror dword [esp + ebp*4 + 0x14], 2
add ebx, 0x14
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
inc eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
cmp ebx, 0x442308
jl 0x40de4c
push 0x3c
pop ecx
mov eax, 0x44230c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
lea edx, [ecx - 3]
mov esi, ecx
lea ecx, [edx - 5]
push 0xf
pop edi
and ecx, edi
lea eax, [edx + 5]
and eax, edi
and edx, edi
and esi, edi
mov ebx, dword [ebp + ecx*4]
xor ebx, dword [ebp + eax*4]
mov ecx, dword [esp + 0x38]
xor ebx, dword [ebp + edx*4]
xor ebx, dword [ebp + esi*4]
rol ebx, 1
mov eax, dword [ecx - 0xc]
mov edi, dword [ecx - 8]
mov dword [ebp + esi*4], ebx
mov esi, dword [ecx + 4]
mov edx, dword [esp + eax*4 + 0x14]
mov eax, dword [ecx - 4]
mov ecx, dword [ecx]
rol edx, 5
add edx, ebx
mov eax, dword [esp + eax*4 + 0x14]
xor eax, dword [esp + ecx*4 + 0x14]
xor eax, dword [esp + edi*4 + 0x14]
mov ecx, dword [esp + 0x34]
add eax, 0xca62c1d6
add eax, edx
add dword [esp + esi*4 + 0x14], eax
mov eax, dword [esp + 0x38]
ror dword [esp + edi*4 + 0x14], 2
add eax, 0x14
inc ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
cmp eax, 0x44249c
jl 0x40def4
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push 5
sub edx, ecx
pop esi
mov eax, dword [edx + ecx]
add dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x40df7f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10