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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x443008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x154], ebx
mov eax, dword [edx]
mov dword [ebp - 0x144], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x140], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x13c], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x138], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x134], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x130], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x12c], eax
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x128], eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x124], eax
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x120], eax
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x11c], eax
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x118], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x114], eax
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x110], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x10c], eax
mov eax, dword [edx + 0x3c]
mov edx, 0x40
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x13c]
jmp 0x40f510
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x40f510
mov eax, dword [ebx]
mov edx, eax
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], 0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x150], eax
jmp 0x40f560
mov ecx, edi
rol edx, 5
not ecx
mov eax, esi
and ecx, ebx
and eax, edi
or ecx, eax
mov eax, dword [ebp - 0x150]
add edx, ecx
mov dword [ebp - 0x150], ebx
mov ecx, dword [ebp - 0x14c]
mov ebx, esi
add eax, 0x5a827999
mov esi, edi
mov edi, dword [ebp - 0x148]
ror esi, 2
add edx, dword [ebp + ecx*4 - 0x144]
inc ecx
add edx, eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x148], edx
cmp ecx, 0x14
jb 0x40f560
mov dword [ebp - 0x148], 0x14
lea ebx, [ebx]
mov eax, ebx
mov ecx, edx
xor eax, esi
rol ecx, 5
xor eax, edi
add ecx, eax
mov eax, dword [ebp - 0x148]
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x150], ebx
mov ebx, esi
mov esi, edi
mov edi, edx
ror esi, 2
lea edx, [eax + 0x6ed9eba1]
mov eax, dword [ebp - 0x148]
inc eax
add edx, ecx
mov dword [ebp - 0x148], eax
cmp eax, 0x28
jb 0x40f5c0
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], 0x28
lea esp, [esp]
mov ecx, esi
rol edx, 5
or ecx, edi
mov eax, esi
and eax, edi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 0x14c]
add edx, dword [ebp - 0x150]
mov dword [ebp - 0x150], ebx
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0x148]
add ecx, dword [ebp + eax*4 - 0x144]
inc eax
add edx, ecx
ror esi, 2
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], eax
cmp eax, 0x3c
jb 0x40f620
mov dword [ebp - 0x14c], 0x3c
lea esp, [esp]
mov ecx, edx
mov eax, ebx
mov edx, dword [ebp - 0x14c]
xor eax, esi
rol ecx, 5
xor eax, edi
add ecx, 0xca62c1d6
add ecx, dword [ebp - 0x150]
add eax, dword [ebp + edx*4 - 0x144]
add eax, ecx
mov ecx, ebx
mov ebx, esi
mov dword [ebp - 0x158], eax
mov esi, edi
mov dword [ebp - 0x150], ecx
mov edi, dword [ebp - 0x148]
mov edx, eax
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x14c]
inc eax
ror esi, 2
mov dword [ebp - 0x14c], eax
cmp eax, 0x50
jb 0x40f680
mov eax, edx
mov edx, dword [ebp - 0x154]
add eax, dword [ebp - 0x15c]
add dword [edx + 4], edi
add dword [edx + 0x10], ecx
add dword [edx + 8], esi
mov ecx, dword [ebp - 4]
add dword [edx + 0xc], ebx
xor ecx, ebp
pop edi
pop esi
mov dword [edx], eax
pop ebx
call fcn.0041ada6
mov esp, ebp
pop ebp
ret