Function at 0x415117
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 0x41513b
mov edi, dword [esp + 0x40]
mov dword [esp + 0x24], edi
jmp 0x41514a
push 0x40
push dword [esp + 0x44]
push edi
call fcn.00424810
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.00415c27
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.00415c27
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.00415c27
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.00415c27
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.00415c27
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.00415c27
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 0x4151a6
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
invalid
invalid