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

Disassembly:
sub esp, 0x2c
cmp byte [esp + 0x34], 0
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], esi
je 0x41512f
mov edi, dword [esp + 0x40]
mov dword [esp + 0x24], edi
jmp 0x41513e
push 0x40
push dword [esp + 0x44]
push edi
call fcn.00424830
add esp, 0xc
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
mov ebp, dword [esi]
mov ecx, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
call fcn.00415c1b
mov ecx, dword [esp + 0x20]
mov edx, ebp
xor ecx, dword [esp + 0x1c]
add esi, 0x5a827999
and ebx, ecx
rol edx, 5
xor ebx, dword [esp + 0x20]
lea ecx, [edi + 0xc]
add edx, eax
mov dword [edi], eax
add ebx, edx
mov eax, edi
add ebx, esi
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x18]
ror esi, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 4]
call fcn.00415c1b
mov ecx, dword [esp + 0x28]
mov edx, ebx
rol edx, 5
add edx, eax
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor ecx, esi
and ecx, ebp
add eax, 0x5a827999
xor ecx, dword [esp + 0x1c]
add ecx, edx
ror ebp, 2
add eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 4]
call fcn.00415c1b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
rol edx, 5
add edx, eax
mov dword [ecx - 4], eax
mov ecx, esi
mov eax, dword [esp + 0x1c]
xor ecx, ebp
and ecx, ebx
add eax, 0x5a827999
xor ecx, esi
ror ebx, 2
add ecx, edx
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
call fcn.00415c1b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
rol edx, 5
add edx, 0x5a827999
mov dword [ecx], eax
add edx, eax
mov eax, dword [esp + 0x18]
mov ecx, ebx
xor ecx, ebp
and ecx, dword [esp + 0x20]
ror dword [esp + 0x20], 2
xor ecx, ebp
add ecx, edx
add esi, ecx
mov ecx, dword [eax + 4]
call fcn.00415c1b
mov ecx, dword [esp + 0x18]
mov edx, esi
add dword [esp + 0x18], 0x14
rol edx, 5
mov dword [ecx + 4], eax
add eax, 0x5a827999
add edx, eax
mov ecx, ebx
xor ecx, dword [esp + 0x20]
and ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
xor ecx, ebx
ror dword [esp + 0x1c], 2
add eax, 5
add ecx, edx
mov dword [esp + 0x14], eax
add ebp, ecx
lea eax, [edi + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0x28], eax
call fcn.00415c1b
mov ecx, dword [esp + 0x28]
mov edx, ebp
rol edx, 5
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
xor ecx, dword [esp + 0x1c]
and ecx, esi
add edx, eax
xor ecx, dword [esp + 0x20]
add ebx, 0x5a827999
mov eax, dword [esp + 0x28]
add ecx, edx
add ebx, ecx
ror esi, 2
cmp dword [esp + 0x14], 0xf
jne 0x41519a
mov eax, dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [edi + 0x38]
xor edx, dword [edi + 0x24]
xor edx, dword [edi + 4]
xor edx, dword [edi + 0xc]
mov dword [esp + 0x18], esi
xor eax, dword [esp + 0x18]
mov esi, dword [edi + 0x34]
and eax, ebp
xor eax, dword [esp + 0x1c]
xor esi, dword [edi + 0x20]
xor esi, dword [edi]
xor esi, dword [edi + 8]
rol ecx, 5
rol esi, 1
add ecx, esi
rol edx, 1
add eax, ecx
ror ebp, 2
mov ecx, dword [esp + 0x20]
add ecx, 0x5a827999
mov dword [edi + 4], edx
add eax, ecx
mov dword [edi], esi
mov dword [esp + 0x10], eax
mov ecx, eax
mov eax, dword [esp + 0x18]
xor eax, ebp
rol ecx, 5
add ecx, edx
and eax, ebx
xor eax, dword [esp + 0x18]
mov edx, dword [edi + 0x3c]
add eax, ecx
xor edx, dword [edi + 0x28]
mov ecx, dword [esp + 0x1c]
xor edx, dword [edi + 0x10]
add ecx, 0x5a827999
xor edx, dword [edi + 8]
add eax, ecx
mov dword [esp + 0x14], eax
mov ecx, eax
ror ebx, 2
rol edx, 1
mov eax, ebx
xor eax, ebp
rol ecx, 5
and eax, dword [esp + 0x10]
add ecx, edx
ror dword [esp + 0x10], 2
xor eax, ebp
add eax, ecx
mov dword [edi + 8], edx
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x2c]
add ecx, 0x5a827999
xor edx, dword [edi + 0x14]
add eax, ecx
mov ecx, eax
mov dword [esp + 0x18], eax
xor edx, esi
rol ecx, 5
xor edx, dword [edi + 0xc]
mov eax, ebx
mov esi, dword [esp + 0x10]
add ecx, 0x5a827999
xor eax, esi
rol edx, 1
and eax, dword [esp + 0x14]
add ecx, edx
xor eax, ebx
mov dword [edi + 0xc], edx
add eax, ecx
mov dword [esp + 0x20], ebx
push 0x11
add eax, ebp
ror dword [esp + 0x18], 2
pop edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edx
xor esi, dword [esp + 0x14]
lea eax, [edx + 5]
lea ecx, [edx - 5]
mov dword [esp + 0x30], eax
and ecx, 0xf
lea ebp, [edx + 3]
mov ebx, eax
and ebp, 0xf
mov eax, edx
mov dword [esp + 0x2c], ebp
and eax, 0xf
and ebx, 0xf
mov edx, dword [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
rol ecx, 5
xor edx, dword [edi + eax*4]
xor edx, dword [edi + ebx*4]
xor edx, dword [edi + ebp*4]
mov eax, dword [esp + 0x28]
rol edx, 1
add ecx, edx
mov dword [edi + ebp*4], edx
mov ebp, dword [esp + 0x18]
xor esi, ebp
add esi, ecx
ror ebp, 2
mov ecx, dword [esp + 0x20]
lea edi, [eax + 6]
add ecx, 0x6ed9eba1
mov dword [esp + 0x18], ebp
add ecx, esi
lea ebp, [eax + 4]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
lea ecx, [eax - 4]
push 0xf
pop edx
and ecx, edx
and ebp, edx
and edi, edx
inc eax
and eax, edx
mov edx, dword [esi + ecx*4]
mov ecx, dword [esp + 0x20]
xor edx, dword [esi + eax*4]
xor edx, dword [esi + ebp*4]
xor edx, dword [esi + edi*4]
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x18]
rol edx, 1
mov dword [esi + ebp*4], edx
mov esi, dword [esp + 0x1c]
xor eax, esi
rol ecx, 5
add ecx, edx
ror esi, 2
mov edx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x10]
add ecx, 0x6ed9eba1
mov dword [esp + 0x1c], esi
add ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
lea ecx, [eax - 3]
and ecx, 0xf
lea esi, [eax + 7]
add eax, 2
and esi, 0xf
and eax, 0xf
mov edx, dword [edx + ecx*4]
mov ecx, dword [esp + 0x24]
xor edx, dword [ecx + eax*4]
xor edx, dword [ecx + ebx*4]
xor edx, dword [ecx + esi*4]
rol edx, 1
mov dword [ecx + ebx*4], edx
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
invalid