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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffea0
mov ebx, edx
mov dword [esp], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x50ed21
cmp eax, 0x40
je 0x50ed37
mov ecx, 0xfb
mov edx, 0x50ef6c
mov eax, 0x50f048
call fcn.0040a1e8
mov eax, dword [esp]
add dword [eax + 0x28], 0x200
adc dword [eax + 0x2c], 0
lea edx, [esp + 0x20]
mov eax, dword [ebx + 4]
mov ecx, 0x40
call fcn.00407380
mov edi, 0x10
lea ebx, [esp + 0x20]
mov eax, dword [ebx]
call fcn.0050e3f4
mov dword [ebx], eax
add ebx, 4
dec edi
jne 0x50ed5f
mov edi, 0x40
lea ebx, [esp + 0x54]
mov eax, dword [ebx]
xor eax, dword [ebx - 0x14]
xor eax, dword [ebx - 0x2c]
xor eax, dword [ebx - 0x34]
call fcn.0050e474
mov dword [ebx + 0xc], eax
add ebx, 4
dec edi
jne 0x50ed77
mov eax, dword [esp]
mov edx, dword [eax + 0xc]
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [esp]
mov ebx, dword [ebx + 0x18]
mov esi, dword [esp]
mov esi, dword [esi + 0x1c]
mov dword [esp + 0xc], esi
mov edi, 0x14
lea esi, [esp + 0x20]
mov dword [esp + 0x10], esi
mov esi, edx
shl esi, 5
mov ebp, edx
shr ebp, 0x1b
or esi, ebp
mov dword [esp + 8], esi
mov esi, eax
and esi, ecx
mov ebp, eax
not ebp
and ebp, ebx
or esi, ebp
add esi, dword [esp + 8]
add esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
add esi, dword [ebp]
add esi, 0x5a827999
mov dword [esp + 4], esi
mov dword [esp + 0xc], ebx
mov ebx, ecx
mov ecx, eax
shl ecx, 0x1e
shr eax, 2
or ecx, eax
mov eax, edx
mov edx, dword [esp + 4]
add dword [esp + 0x10], 4
dec edi
jne 0x50edbf
mov edi, 0x14
lea esi, [esp + 0x70]
mov dword [esp + 0x14], esi
mov esi, edx
shl esi, 5
mov ebp, edx
shr ebp, 0x1b
or esi, ebp
mov dword [esp + 8], esi
mov esi, eax
xor esi, ecx
xor esi, ebx
add esi, dword [esp + 8]
add esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x14]
add esi, dword [ebp]
add esi, 0x6ed9eba1
mov dword [esp + 4], esi
mov dword [esp + 0xc], ebx
mov ebx, ecx
mov ecx, eax
shl ecx, 0x1e
shr eax, 2
or ecx, eax
mov eax, edx
mov edx, dword [esp + 4]
add dword [esp + 0x14], 4
dec edi
jne 0x50ee1f
mov edi, 0x14
lea esi, [esp + 0xc0]
mov dword [esp + 0x18], esi
mov esi, edx
shl esi, 5
mov ebp, edx
shr ebp, 0x1b
or esi, ebp
mov dword [esp + 8], esi
mov esi, eax
and esi, ecx
mov ebp, eax
and ebp, ebx
or esi, ebp
mov ebp, ecx
and ebp, ebx
or esi, ebp
add esi, dword [esp + 8]
add esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
add esi, dword [ebp]
add esi, 0x8f1bbcdc
mov dword [esp + 4], esi
mov dword [esp + 0xc], ebx
mov ebx, ecx
mov ecx, eax
shl ecx, 0x1e
shr eax, 2
or ecx, eax
mov eax, edx
mov edx, dword [esp + 4]
add dword [esp + 0x18], 4
dec edi
jne 0x50ee7c
mov edi, 0x14
lea esi, [esp + 0x110]
mov dword [esp + 0x1c], esi
mov esi, edx
shl esi, 5
mov ebp, edx
shr ebp, 0x1b
or esi, ebp
mov dword [esp + 8], esi
mov esi, eax
xor esi, ecx
xor esi, ebx
add esi, dword [esp + 8]
add esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x1c]
add esi, dword [ebp]
add esi, 0xca62c1d6
mov dword [esp + 4], esi
mov dword [esp + 0xc], ebx
mov ebx, ecx
mov ecx, eax
shl ecx, 0x1e
shr eax, 2
or ecx, eax
mov eax, edx
mov edx, dword [esp + 4]
add dword [esp + 0x1c], 4
dec edi
jne 0x50eee3
mov esi, dword [esp]
add dword [esi + 0xc], edx
mov edx, dword [esp]
add dword [edx + 0x10], eax
mov eax, dword [esp]
add dword [eax + 0x14], ecx
mov eax, dword [esp]
add dword [eax + 0x18], ebx
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
add dword [eax + 0x1c], edx
add esp, 0x160
pop ebp
pop edi
pop esi
pop ebx
ret