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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
cdq
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
push 0x40
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406308
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
cdq
add eax, dword [ebp - 8]
adc edx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
push 8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406308
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 8]
mov eax, dword [ebp - 0xc]
add ebx, dword [eax + 0xc]
mov byte [ebx], 0x80
inc ebx
mov eax, dword [ebp - 0xc]
inc dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
push dword [eax + 0xc]
mov eax, 0x40
pop edx
sub eax, edx
mov esi, eax
sub esi, 8
test esi, esi
jge 0x5f67ec
mov edx, eax
mov eax, ebx
xor ecx, ecx
call fcn.00403924
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov ecx, 0x40
call fcn.0040310c
mov ecx, 0x10
lea edx, [ebp - 0x170]
mov eax, edx
movzx esi, byte [eax]
mov bl, byte [eax + 3]
mov byte [eax], bl
mov ebx, esi
mov byte [eax + 3], bl
movzx esi, byte [eax + 1]
mov bl, byte [eax + 2]
mov byte [eax + 1], bl
mov ebx, esi
mov byte [eax + 2], bl
add edx, 4
dec ecx
jne 0x5f65d6
mov ecx, 0x40
lea eax, [ebp - 0x13c]
mov edx, dword [eax]
xor edx, dword [eax - 0x14]
xor edx, dword [eax - 0x2c]
xor edx, dword [eax - 0x34]
mov ebx, edx
add ebx, ebx
shr edx, 0x1f
or ebx, edx
mov dword [eax + 0xc], ebx
add eax, 4
dec ecx
jne 0x5f6605
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x14], ebx
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, 0x14
lea ebx, [ebp - 0x170]
mov dword [ebp - 0x1c], ebx
mov esi, edx
shl esi, 5
mov ebx, edx
shr ebx, 0x1b
or esi, ebx
mov ebx, dword [ebp - 0x10]
and ebx, eax
mov edi, eax
not edi
and edi, dword [ebp - 0x14]
or ebx, edi
add esi, ebx
add esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
add esi, dword [ebx]
add esi, 0x5a827999
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, eax
shl ebx, 0x1e
shr eax, 2
or ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, edx
mov edx, esi
add dword [ebp - 0x1c], 4
dec ecx
jne 0x5f664d
mov ecx, 0x14
lea ebx, [ebp - 0x120]
mov dword [ebp - 0x20], ebx
mov esi, edx
shl esi, 5
mov ebx, edx
shr ebx, 0x1b
or esi, ebx
mov ebx, dword [ebp - 0x10]
xor ebx, eax
xor ebx, dword [ebp - 0x14]
add esi, ebx
add esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
add esi, dword [ebx]
add esi, 0x6ed9eba1
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, eax
shl ebx, 0x1e
shr eax, 2
or ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, edx
mov edx, esi
add dword [ebp - 0x20], 4
dec ecx
jne 0x5f66a9
mov ecx, 0x14
lea ebx, [ebp - 0xd0]
mov dword [ebp - 0x24], ebx
mov esi, edx
shl esi, 5
mov ebx, edx
shr ebx, 0x1b
or esi, ebx
mov ebx, dword [ebp - 0x10]
and ebx, eax
mov edi, dword [ebp - 0x14]
and edi, eax
or ebx, edi
mov edi, dword [ebp - 0x10]
and edi, dword [ebp - 0x14]
or ebx, edi
add esi, ebx
add esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
add esi, dword [ebx]
add esi, 0x8f1bbcdc
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, eax
shl ebx, 0x1e
shr eax, 2
or ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, edx
mov edx, esi
add dword [ebp - 0x24], 4
dec ecx
jne 0x5f66ff
mov ecx, 0x14
lea ebx, [ebp - 0x80]
mov dword [ebp - 0x28], ebx
mov esi, edx
shl esi, 5
mov ebx, edx
shr ebx, 0x1b
or esi, ebx
mov ebx, dword [ebp - 0x10]
xor ebx, eax
xor ebx, dword [ebp - 0x14]
add esi, ebx
add esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
add esi, dword [ebx]
add esi, 0xca62c1d6
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, eax
shl ebx, 0x1e
shr eax, 2
or ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, edx
mov edx, esi
add dword [ebp - 0x28], 4
dec ecx
jne 0x5f675e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x18]
add dword [ecx], edx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x18]
add dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x10]
add dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x14]
add dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x18]
add dword [eax + 0x10], edx
mov eax, dword [ebp - 0xc]
inc dword [eax + 0x10]
mov esi, 0x38
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 8]
mov eax, ebx
xor ecx, ecx
mov edx, esi
call fcn.00403924
add ebx, esi
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x1c], 0
je 0x5f6846
xor edx, edx
mov dl, byte [ebp - 8]
mov al, byte [ebp - 5]
mov byte [ebp - 8], al
mov byte [ebp - 5], dl
xor edx, edx
mov dl, byte [ebp - 7]
mov al, byte [ebp - 6]
mov byte [ebp - 7], al
mov byte [ebp - 6], dl
xor edx, edx
mov dl, byte [ebp - 4]
mov al, byte [ebp - 1]
mov byte [ebp - 4], al
mov byte [ebp - 1], dl
xor edx, edx
mov dl, byte [ebp - 3]
mov al, byte [ebp - 2]
mov byte [ebp - 3], al
mov byte [ebp - 2], dl
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov edx, ebx
lea eax, [ebp - 8]
mov ecx, 8
call fcn.0040310c
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov ecx, 0x40
call fcn.0040310c
mov ecx, 0x10
lea edx, [ebp - 0x170]
mov eax, edx
movzx esi, byte [eax]
mov bl, byte [eax + 3]
mov byte [eax], bl
mov ebx, esi
mov byte [eax + 3], bl
movzx esi, byte [eax + 1]
mov bl, byte [eax + 2]
mov byte [eax + 1], bl
mov ebx, esi
mov byte [eax + 2], bl
add edx, 4
dec ecx
jne 0x5f6876
mov ecx, 0x40
lea eax, [ebp - 0x13c]
mov edx, dword [eax]
xor edx, dword [eax - 0x14]
xor edx, dword [eax - 0x2c]
xor edx, dword [eax - 0x34]
mov ebx, edx
add ebx, ebx
shr edx, 0x1f
or ebx, edx
mov dword [eax + 0xc], ebx
add eax, 4
dec ecx
jne 0x5f68a5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x14], ebx
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, 0x14
lea ebx, [ebp - 0x170]
mov dword [ebp - 0x2c], ebx
mov esi, edx
shl esi, 5
mov ebx, edx
shr ebx, 0x1b
or esi, ebx
mov ebx, dword [ebp - 0x10]
and ebx, eax
mov edi, eax
not edi
and edi, dword [ebp - 0x14]
or ebx, edi
add esi, ebx
add esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
add esi, dword [ebx]
add esi, 0x5a827999
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, eax
shl ebx, 0x1e
shr eax, 2
or ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, edx
mov edx, esi
add dword [ebp - 0x2c], 4
dec ecx
jne 0x5f68ed
mov ecx, 0x14
lea ebx, [ebp - 0x120]
mov dword [ebp - 0x30], ebx
mov esi, edx
shl esi, 5
mov ebx, edx
shr ebx, 0x1b
or esi, ebx
mov ebx, dword [ebp - 0x10]
xor ebx, eax
xor ebx, dword [ebp - 0x14]
add esi, ebx
add esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
add esi, dword [ebx]
add esi, 0x6ed9eba1
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, eax
shl ebx, 0x1e
shr eax, 2
or ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, edx
mov edx, esi
add dword [ebp - 0x30], 4
dec ecx
jne 0x5f6949
mov ecx, 0x14
lea ebx, [ebp - 0xd0]
mov dword [ebp - 0x30], ebx
mov esi, edx
shl esi, 5
mov ebx, edx
shr ebx, 0x1b
or esi, ebx
mov ebx, dword [ebp - 0x10]
and ebx, eax
mov edi, dword [ebp - 0x14]
and edi, eax
or ebx, edi
mov edi, dword [ebp - 0x10]
and edi, dword [ebp - 0x14]
or ebx, edi
add esi, ebx
add esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
add esi, dword [ebx]
add esi, 0x8f1bbcdc
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, eax
shl ebx, 0x1e
shr eax, 2
or ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, edx
mov edx, esi
add dword [ebp - 0x30], 4
dec ecx
jne 0x5f699f
mov ecx, 0x14
lea ebx, [ebp - 0x80]
mov dword [ebp - 0x30], ebx
mov esi, edx
shl esi, 5
mov ebx, edx
shr ebx, 0x1b
or esi, ebx
mov ebx, dword [ebp - 0x10]
xor ebx, eax
xor ebx, dword [ebp - 0x14]
add esi, ebx
add esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
add esi, dword [ebx]
add esi, 0xca62c1d6
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, eax
shl ebx, 0x1e
shr eax, 2
or ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, edx
mov edx, esi
add dword [ebp - 0x30], 4
dec ecx
jne 0x5f69fe
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x18]
add dword [ecx], edx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x18]
add dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x10]
add dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x14]
add dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x18]
add dword [eax + 0x10], edx
mov eax, dword [ebp - 0xc]
inc dword [eax + 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov ecx, 0x14
call fcn.0040310c
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x1c], 0
je 0x5f6acd
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 4]
mov ecx, 5
mov eax, esi
xor edx, edx
mov dl, byte [eax]
mov bl, byte [eax + 3]
mov byte [eax], bl
mov byte [eax + 3], dl
xor edx, edx
mov dl, byte [eax + 1]
mov bl, byte [eax + 2]
mov byte [eax + 1], bl
mov byte [eax + 2], dl
add esi, 4
dec ecx
jne 0x5f6aab
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret