Function at 0x498660
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x58]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov ebp, dword [ecx + 0xc]
push edi
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, 0x10
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x64]
xor edx, edx
xor ebx, ebx
mov dh, byte [ecx]
mov bl, byte [ecx + 2]
mov dl, byte [ecx + 1]
add ecx, 4
shl edx, 8
or edx, ebx
xor ebx, ebx
mov bl, byte [ecx - 1]
mov dword [esp + 0x64], ecx
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x18]
mov ecx, eax
mov dword [ebx], edx
mov edx, edi
not ecx
and ecx, ebp
and edx, eax
or ecx, edx
mov edx, esi
mov ebx, esi
shr edx, 0x1b
shl ebx, 5
or edx, ebx
add ecx, edx
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
add edx, 4
add ecx, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], ebp
mov ebp, edi
mov edi, eax
lea ecx, [ecx + ebx + 0x5a827999]
shl edi, 0x1e
shr eax, 2
or edi, eax
mov eax, esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jne 0x498692
mov ecx, dword [esp + 0x14]
and ecx, 0xf
lea edx, [esp + ecx*4 + 0x20]
lea ebx, [ecx - 3]
mov dword [esp + 0x64], edx
lea edx, [ecx - 8]
and edx, 0xf
add ecx, 2
and ebx, 0xf
and ecx, 0xf
mov edx, dword [esp + edx*4 + 0x20]
xor edx, dword [esp + ebx*4 + 0x20]
mov ebx, dword [esp + ecx*4 + 0x20]
xor edx, ebx
mov ebx, dword [esp + 0x64]
xor edx, dword [ebx]
mov ecx, edx
add edx, edx
shr ecx, 0x1f
or ecx, edx
mov edx, eax
mov dword [esp + 0x64], ecx
mov dword [ebx], ecx
not edx
mov ecx, edi
and edx, ebp
and ecx, eax
mov ebx, esi
or edx, ecx
mov ecx, esi
shr ebx, 0x1b
shl ecx, 5
or ebx, ecx
mov ecx, dword [esp + 0x64]
add ecx, edx
mov edx, dword [esp + 0x10]
add ebx, ecx
mov ecx, eax
shl ecx, 0x1e
shr eax, 2
lea edx, [ebx + edx + 0x5a827999]
mov ebx, ebp
or ecx, eax
mov ebp, edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
inc ecx
mov eax, esi
cmp ecx, 0x14
mov dword [esp + 0x10], ebx
mov esi, edx
mov dword [esp + 0x14], ecx
jl 0x498715
cmp ecx, 0x28
jge 0x49883a
and ecx, 0xf
lea edx, [esp + ecx*4 + 0x20]
lea ebx, [ecx - 3]
mov dword [esp + 0x64], edx
lea edx, [ecx - 8]
and edx, 0xf
add ecx, 2
and ebx, 0xf
and ecx, 0xf
mov edx, dword [esp + edx*4 + 0x20]
xor edx, dword [esp + ebx*4 + 0x20]
mov ebx, dword [esp + ecx*4 + 0x20]
xor edx, ebx
mov ebx, dword [esp + 0x64]
xor edx, dword [ebx]
mov ecx, edx
add edx, edx
shr ecx, 0x1f
or ecx, edx
mov edx, esi
mov dword [ebx], ecx
mov ebx, esi
shr edx, 0x1b
shl ebx, 5
or edx, ebx
mov ebx, ebp
xor ebx, edi
add ecx, edx
xor ebx, eax
add ebx, ecx
mov ecx, dword [esp + 0x10]
lea edx, [ebx + ecx + 0x6ed9eba1]
mov ecx, eax
shl ecx, 0x1e
shr eax, 2
mov ebx, ebp
or ecx, eax
mov ebp, edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
mov eax, esi
inc ecx
mov dword [esp + 0x10], ebx
cmp ecx, 0x28
mov esi, edx
mov dword [esp + 0x14], ecx
jl 0x4987b3
cmp ecx, 0x3c
jge 0x4988d8
and ecx, 0xf
lea edx, [esp + ecx*4 + 0x20]
lea ebx, [ecx - 3]
mov dword [esp + 0x64], edx
lea edx, [ecx - 8]
and edx, 0xf
add ecx, 2
and ebx, 0xf
and ecx, 0xf
mov edx, dword [esp + edx*4 + 0x20]
xor edx, dword [esp + ebx*4 + 0x20]
mov ebx, dword [esp + ecx*4 + 0x20]
xor edx, ebx
mov ebx, dword [esp + 0x64]
xor edx, dword [ebx]
mov ecx, edx
add edx, edx
shr ecx, 0x1f
or ecx, edx
mov edx, edi
mov dword [esp + 0x64], ecx
mov dword [ebx], ecx
or edx, eax
mov ecx, edi
and edx, ebp
and ecx, eax
or edx, ecx
mov ebx, esi
mov ecx, esi
shr ebx, 0x1b
shl ecx, 5
or ebx, ecx
mov ecx, dword [esp + 0x64]
add ecx, edx
mov edx, dword [esp + 0x10]
add ebx, ecx
mov ecx, eax
shl ecx, 0x1e
shr eax, 2
lea edx, [ebx + edx - 0x70e44324]
mov ebx, ebp
or ecx, eax
mov ebp, edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
inc ecx
mov eax, esi
cmp ecx, 0x3c
mov dword [esp + 0x10], ebx
mov esi, edx
mov dword [esp + 0x14], ecx
jl 0x498843
cmp ecx, 0x50
jge 0x498968
and ecx, 0xf
lea edx, [esp + ecx*4 + 0x20]
lea ebx, [ecx - 3]
mov dword [esp + 0x64], edx
lea edx, [ecx - 8]
and edx, 0xf
add ecx, 2
and ebx, 0xf
and ecx, 0xf
mov edx, dword [esp + edx*4 + 0x20]
xor edx, dword [esp + ebx*4 + 0x20]
mov ebx, dword [esp + ecx*4 + 0x20]
xor edx, ebx
mov ebx, dword [esp + 0x64]
xor edx, dword [ebx]
mov ecx, edx
add edx, edx
shr ecx, 0x1f
or ecx, edx
mov edx, esi
mov dword [ebx], ecx
mov ebx, esi
shr edx, 0x1b
shl ebx, 5
or edx, ebx
mov ebx, ebp
xor ebx, edi
add ecx, edx
xor ebx, eax
add ebx, ecx
mov ecx, dword [esp + 0x10]
lea edx, [ebx + ecx - 0x359d3e2a]
mov ecx, eax
shl ecx, 0x1e
shr eax, 2
mov ebx, ebp
or ecx, eax
mov ebp, edi
mov edi, ecx
mov ecx, dword [esp + 0x14]
mov eax, esi
inc ecx
mov dword [esp + 0x10], ebx
cmp ecx, 0x50
mov esi, edx
mov dword [esp + 0x14], ecx
jl 0x4988e1
mov ecx, dword [esp + 0x68]
mov esi, dword [ecx]
add esi, edx
mov edx, dword [ecx + 4]
add edx, eax
mov eax, dword [ecx + 8]
add eax, edi
mov dword [ecx], esi
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0xc]
add eax, ebp
pop edi
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x10]
add eax, ebx
pop esi
pop ebp
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], eax
pop ebx
add esp, 0x50
ret