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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [ebp + 8]
push ebx
xor ecx, ecx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x28], 0x67452301
mov dword [ebp - 0x1c], 0xefcdab89
mov dword [ebp - 0x24], 0x98badcfe
mov dword [ebp - 0x14], 0x10325476
mov dword [ebp - 0x20], 0xc3d2e1f0
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
cmp byte [eax], cl
je 0x41810b
inc esi
add dword [ebp - 8], 8
adc dword [ebp - 4], ecx
cmp byte [esi + eax], cl
jne 0x4180fe
push 0x38
pop ecx
xor edx, edx
mov eax, esi
div ecx
lea edi, [esi + 8]
shr edi, 6
shl edi, 3
sub edi, edx
add edi, 0x37
lea eax, [edi + esi + 9]
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], eax
call fcn.0041f777
mov ebx, eax
pop ecx
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x418395
push esi
push dword [ebp + 8]
push ebx
call fcn.0041e0c0
lea eax, [ebx + esi]
push edi
mov byte [eax], 0x80
inc eax
push 0
push eax
call fcn.0041e4c0
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 4]
shrd edx, edi, 0x10
mov ebx, dword [ebp - 4]
xor eax, eax
or eax, edx
and ecx, 0xff0000
shr edi, 0x10
or ecx, edi
shrd eax, ecx, 0x10
mov edx, eax
xor edi, edi
or edx, edi
shr ecx, 0x10
mov eax, 0xff00
and ebx, eax
or ecx, ebx
movzx ebx, byte [ebp - 4]
shrd edx, ecx, 0x10
or edx, edi
mov edi, dword [ebp - 8]
shr ecx, 0x10
or ecx, ebx
mov ebx, dword [ebp - 4]
shrd edx, ecx, 8
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 8]
and edx, eax
shld ebx, edi, 0x10
xor eax, eax
or eax, ebx
shl edi, 0x10
or edx, edi
mov edi, dword [ebp - 8]
shld eax, edx, 0x10
shl edx, 0x10
and edi, 0xff0000
or edx, edi
xor ebx, ebx
or eax, ebx
shld eax, edx, 0x10
mov edi, eax
mov eax, dword [ebp - 8]
and eax, 0xff000000
shl edx, 0x10
or edx, eax
mov eax, dword [ebp - 0xc]
or edi, ebx
mov ebx, dword [ebp - 0x2c]
shld edi, edx, 8
shl edx, 8
or ebx, edx
mov edx, dword [ebp - 0x34]
add eax, edx
shr ecx, 8
or ecx, edi
mov dword [eax + esi + 1], ebx
mov dword [eax + esi + 5], ecx
mov eax, dword [ebp - 0x10]
shr eax, 6
add esp, 0x18
test eax, eax
jbe 0x41836c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov eax, dword [edx]
mov edi, eax
and edi, 0xff0000
mov ebx, eax
shr ebx, 0x10
or edi, ebx
mov ebx, eax
shl ebx, 0x10
and eax, 0xff00
or ebx, eax
shr edi, 8
shl ebx, 8
or edi, ebx
mov dword [ebp + ecx*4 - 0x174], edi
inc ecx
add edx, 4
cmp ecx, 0x10
jb 0x418222
push 0x100
lea eax, [ebp - 0x134]
push 0
push eax
mov dword [ebp - 4], edx
call fcn.0041e4c0
add esp, 0xc
push 0x40
lea eax, [ebp - 0x16c]
pop ecx
mov edx, dword [eax + 0x2c]
xor edx, dword [eax + 0x18]
xor edx, dword [eax - 8]
xor edx, dword [eax]
add eax, 4
dec ecx
rol edx, 1
mov dword [eax + 0x34], edx
jne 0x418279
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffd8
mov dword [ebp - 0xc], eax
pop eax
lea ebx, [ebp - 0x174]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
jmp 0x4182b8
mov eax, dword [ebp - 0x18]
lea ebx, [eax + 0x28]
cmp ebx, 0x13
ja 0x4182d5
mov esi, ecx
not esi
mov eax, edx
and esi, edi
and eax, ecx
or esi, eax
mov dword [ebp + 8], 0x5a827999
jmp 0x418315
lea ebx, [eax + 0x14]
cmp ebx, 0x13
ja 0x4182e6
mov dword [ebp + 8], 0x6ed9eba1
jmp 0x41830f
cmp eax, 0x13
ja 0x418300
mov esi, edx
or esi, ecx
mov eax, edx
and esi, edi
and eax, ecx
or esi, eax
mov dword [ebp + 8], 0x8f1bbcdc
jmp 0x418315
add eax, 0xffffffec
cmp eax, 0x13
ja 0x418315
mov dword [ebp + 8], 0xca62c1d6
mov esi, edi
xor esi, edx
xor esi, ecx
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x10]
add dword [ebp - 0x10], 4
rol eax, 5
add eax, dword [ebp + 8]
add eax, esi
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], edi
add eax, dword [ebx]
inc dword [ebp - 0x18]
mov ebx, dword [ebp - 0x18]
ror ecx, 2
mov edi, edx
add ebx, 0x28
mov edx, ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
cmp ebx, 0x4f
jbe 0x4182b5
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x24], edx
add dword [ebp - 0x1c], ecx
add dword [ebp - 0x14], edi
add dword [ebp - 0x20], eax
dec dword [ebp - 0x2c]
mov edx, dword [ebp - 4]
jne 0x418220
push dword [ebp - 0x34]
call fcn.0041f76c
mov eax, dword [ebp + 0xc]
pop ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x10], ecx
pop edi
pop esi
pop ebx
leave
ret