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

Disassembly:
sub esp, 0x15c
push ebx
mov ebx, dword [esp + 0x164]
push ebp
push esi
push edi
mov eax, dword [ebx]
mov edi, ecx
mov ecx, eax
mov esi, edx
and ecx, 0x3f
mov ebp, 0x40
add eax, esi
sub ebp, ecx
mov dword [ebx], eax
cmp eax, esi
jae 0x4215ce
inc dword [ebx + 4]
cmp esi, ebp
jb 0x42179c
push ebp
lea eax, [ecx + 0x1c]
add eax, ebx
push edi
push eax
call fcn.00423de0
sub esi, ebp
mov dword [esp + 0x34], 0x40
add edi, ebp
mov dword [esp + 0x30], esi
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0
lea esi, [ebx + 0x1c]
xor edx, edx
mov ecx, dword [esi]
lea esi, [esi + 4]
mov eax, ecx
rol ecx, 8
ror eax, 8
and ecx, 0xff00ff
and eax, 0xff00ff00
or eax, ecx
mov dword [esp + edx*4 + 0x2c], eax
inc edx
cmp edx, 0x10
jb 0x421607
lea eax, [esp + 0x34]
mov edx, 0x40
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 0x421634
mov eax, dword [ebx + 8]
mov esi, eax
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x10], edx
mov edi, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
mov ecx, ebx
mov eax, edi
not ecx
and eax, ebx
and ecx, ebp
mov edx, esi
xor ecx, eax
rol esi, 5
mov eax, dword [esp + 0x10]
add esi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ebp
add ecx, 0x5a827999
mov ebp, edi
mov edi, ebx
add esi, dword [esp + eax*4 + 0x2c]
mov ebx, edx
inc eax
ror edi, 2
add esi, ecx
mov dword [esp + 0x10], eax
cmp eax, 0x14
jb 0x421671
mov edx, 0x14
mov ecx, esi
mov eax, ebp
xor eax, edi
rol esi, 5
xor eax, ebx
add esi, eax
mov eax, dword [esp + 0x14]
add esi, dword [esp + edx*4 + 0x2c]
add eax, 0x6ed9eba1
mov dword [esp + 0x14], ebp
inc edx
mov ebp, edi
add esi, eax
mov edi, ebx
mov ebx, ecx
ror edi, 2
cmp edx, 0x28
jb 0x4216b4
mov dword [esp + 0x10], 0x28
nop dword [eax + eax]
mov ecx, edi
mov edx, esi
xor ecx, ebx
rol esi, 5
mov eax, edi
and ecx, ebp
and eax, ebx
add esi, 0x8f1bbcdc
add esi, dword [esp + 0x14]
xor ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
mov ebp, edi
mov edi, ebx
mov ebx, edx
ror edi, 2
add ecx, dword [esp + eax*4 + 0x2c]
inc eax
add esi, ecx
mov dword [esp + 0x10], eax
cmp eax, 0x3c
jb 0x4216f0
mov edx, dword [esp + 0x14]
mov ecx, 0x3c
mov dword [esp + 0x10], esi
mov eax, ebp
xor eax, edi
rol esi, 5
add edx, 0xca62c1d6
xor eax, ebx
add eax, dword [esp + ecx*4 + 0x2c]
add esi, edx
mov edx, ebp
inc ecx
mov ebp, edi
add esi, eax
mov edi, ebx
mov ebx, dword [esp + 0x10]
ror edi, 2
cmp ecx, 0x50
jb 0x421735
mov ebx, dword [esp + 0x170]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add eax, esi
mov esi, dword [esp + 0x24]
add dword [ebx + 0x10], edi
add dword [ebx + 0x14], ebp
add dword [ebx + 0x18], edx
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x10]
add dword [ebx + 0xc], eax
cmp esi, 0x40
jae 0x4215d6
push esi
lea eax, [ebx + 0x1c]
add eax, ecx
push edi
push eax
call fcn.00423de0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret