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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x14c
test eax, eax
je 0x442fb1
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x160]
lea ecx, [ecx]
movzx ecx, word [edi + 0x1c]
dec eax
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x164]
mov al, byte [eax]
mov byte [ecx + edi + 0x1e], al
inc word [edi + 0x1c]
add dword [edi + 0x14], 8
jne 0x442de6
inc dword [edi + 0x18]
cmp word [edi + 0x1c], 0x40
jne 0x442f97
xor esi, esi
lea edx, [edi + 0x1f]
movzx ecx, byte [edx - 1]
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
mov dword [esp + esi*4 + 0x1c], ecx
inc esi
lea edx, [edx + 4]
cmp esi, 0x10
jl 0x442df6
lea eax, [esp + 0x24]
mov edx, 0x40
lea ebx, [ebx]
mov ecx, dword [eax + 0x2c]
xor ecx, dword [eax + 0x18]
lea eax, [eax + 4]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
dec edx
jne 0x442e30
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 4]
mov esi, dword [edi + 8]
mov ebp, dword [edi + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov edi, ecx
mov ecx, ebx
not ecx
and ecx, ebp
mov eax, esi
and eax, ebx
or ecx, eax
mov eax, dword [esp + 0x10]
mov edx, edi
rol edx, 5
add edx, ecx
mov ecx, dword [esp + 0x14]
add edx, dword [esp + eax*4 + 0x1c]
mov dword [esp + 0x14], ebp
mov ebp, esi
add ecx, 0x5a827999
mov esi, ebx
inc eax
add edx, ecx
mov ebx, edi
ror esi, 2
mov edi, edx
mov dword [esp + 0x10], eax
cmp eax, 0x14
jl 0x442e63
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0x14
mov ecx, edx
rol edx, 5
mov edi, dword [esp + 0x14]
mov eax, ebp
xor eax, esi
xor eax, ebx
add edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
add edx, dword [esp + eax*4 + 0x1c]
mov ebp, esi
add edi, 0x6ed9eba1
mov esi, ebx
inc eax
add edx, edi
mov ebx, ecx
ror esi, 2
mov ecx, edx
mov dword [esp + 0x10], eax
cmp eax, 0x28
jl 0x442eb1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0x28
mov edi, edx
rol edx, 5
mov ecx, esi
or ecx, ebx
mov eax, esi
and eax, ebx
and ecx, ebp
or ecx, eax
mov eax, dword [esp + 0x10]
add edx, 0x8f1bbcdc
add edx, dword [esp + 0x14]
add ecx, dword [esp + eax*4 + 0x1c]
mov dword [esp + 0x14], ebp
mov ebp, esi
mov esi, ebx
inc eax
ror esi, 2
add edx, ecx
mov ebx, edi
mov edi, edx
mov dword [esp + 0x10], eax
cmp eax, 0x3c
jl 0x442ef7
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0x3c
mov ecx, edx
rol edx, 5
mov edi, dword [esp + 0x10]
add edx, dword [esp + 0x14]
mov eax, ebp
xor eax, esi
xor eax, ebx
add eax, 0xca62c1d6
add eax, dword [esp + edi*4 + 0x1c]
mov dword [esp + 0x14], ebp
add edx, eax
mov ebp, esi
mov eax, edi
mov edi, dword [esp + 0x160]
mov esi, ebx
inc eax
ror esi, 2
mov ebx, ecx
mov ecx, edx
mov dword [esp + 0x10], eax
cmp eax, 0x50
jl 0x442f41
mov eax, dword [esp + 0x14]
add dword [edi], edx
add dword [edi + 4], ebx
add dword [edi + 8], esi
add dword [edi + 0xc], ebp
add dword [edi + 0x10], eax
xor eax, eax
mov word [edi + 0x1c], ax
mov eax, dword [esp + 0x168]
inc dword [esp + 0x164]
test eax, eax
jne 0x442dc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret