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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
mov dword [ebp - 4], eax
push 0x4f
lea ecx, [ebp - 0x164]
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x3f
call fcn.00417cac
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp + eax*4 - 0x164]
call fcn.0041a088
mov edx, dword [ebp - 0x20]
mov dword [ebp + edx*4 - 0x164], eax
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x10
jne 0x41a19a
mov dword [ebp - 0x20], 0x10
push ebp
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp + eax*4 - 0x170]
mov edx, dword [ebp - 0x20]
xor eax, dword [ebp + edx*4 - 0x184]
mov edx, dword [ebp - 0x20]
xor eax, dword [ebp + edx*4 - 0x19c]
mov edx, dword [ebp - 0x20]
xor eax, dword [ebp + edx*4 - 0x1a4]
mov edx, 1
call fcn.0041a140
pop ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp + edx*4 - 0x164], eax
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x50
jne 0x41a1c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push ebp
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0041a0c8
pop ecx
mov ebx, eax
push ebp
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.0041a140
pop ecx
add ebx, eax
add ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add ebx, dword [ebp + eax*4 - 0x164]
add ebx, 0x5a827999
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ebp
mov edx, 0x1e
mov eax, dword [ebp - 0xc]
call fcn.0041a140
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x14
jne 0x41a23c
mov dword [ebp - 0x20], 0x14
push ebp
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0041a0f0
pop ecx
mov ebx, eax
push ebp
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.0041a140
pop ecx
add ebx, eax
add ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add ebx, dword [ebp + eax*4 - 0x164]
add ebx, 0x6ed9eba1
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ebp
mov edx, 0x1e
mov eax, dword [ebp - 0xc]
call fcn.0041a140
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x28
jne 0x41a2af
mov dword [ebp - 0x20], 0x28
push ebp
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0041a114
pop ecx
mov ebx, eax
push ebp
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.0041a140
pop ecx
add ebx, eax
add ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add ebx, dword [ebp + eax*4 - 0x164]
add ebx, 0x8f1bbcdc
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ebp
mov edx, 0x1e
mov eax, dword [ebp - 0xc]
call fcn.0041a140
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x3c
jne 0x41a322
mov dword [ebp - 0x20], 0x3c
push ebp
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0041a0f0
pop ecx
mov ebx, eax
push ebp
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.0041a140
pop ecx
add ebx, eax
add ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add ebx, dword [ebp + eax*4 - 0x164]
add ebx, 0xca62c1d6
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ebp
mov edx, 0x1e
mov eax, dword [ebp - 0xc]
call fcn.0041a140
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x50
jne 0x41a395
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add dword [eax + 0x4c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add dword [eax + 0x50], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add dword [eax + 0x54], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
add dword [eax + 0x58], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
add dword [eax + 0x5c], edx
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp + eax*4 - 0x164], edx
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x50
jne 0x41a433
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov byte [eax + edx + 8], 0
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x40
jne 0x41a44d
pop ebx
mov esp, ebp
pop ebp
ret