Function at 0x4a5050
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x154
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov ecx, 0x10
lea esi, [ebx + 0x1c]
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebx
mov eax, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + eax - 0x1c]
mov ebp, dword [esp + eax + 0x18]
mov edi, dword [esp + eax + 4]
mov esi, dword [esp + eax - 0x14]
xor ecx, ebp
add eax, 4
xor ecx, edi
xor ecx, esi
cmp eax, 0x140
mov dword [esp + eax + 0x20], ecx
jl 0x4a5073
mov edi, dword [ebx]
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x10]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0x14
mov ebx, eax
mov ecx, esi
not ebx
and ecx, eax
and ebx, edx
or ecx, ebx
mov ebx, edi
mov ebp, edi
sar ebx, 0x1b
shl ebp, 5
or ebx, ebp
mov ebp, dword [esp + 0x18]
add ebp, ecx
add ebx, ebp
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp]
add ebp, 4
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
lea ecx, [ebx + ecx + 0x5a827999]
mov ebx, edx
mov edx, esi
mov esi, eax
shl esi, 0x1e
sar eax, 2
or esi, eax
dec ebp
mov eax, edi
mov dword [esp + 0x18], ebx
mov edi, ecx
mov dword [esp + 0x10], ebp
jne 0x4a50b9
lea ebp, [esp + 0x74]
mov dword [esp + 0x14], 0x14
mov dword [esp + 0x10], ebp
mov ebp, ecx
shl ebp, 5
sar ecx, 0x1b
or ebp, ecx
mov ecx, edx
xor ecx, esi
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor ecx, eax
add ecx, ebx
mov ebx, dword [ebp]
add ebp, 4
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
lea ecx, [ecx + ebx + 0x6ed9eba1]
mov ebx, edx
mov edx, esi
mov esi, eax
shl esi, 0x1e
sar eax, 2
or esi, eax
dec ebp
mov eax, edi
mov edi, ecx
mov dword [esp + 0x14], ebp
jne 0x4a511f
mov dword [esp + 0x18], ebx
lea ebx, [esp + 0xc4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x14
mov ebx, edx
mov ebp, esi
and ebx, esi
and ebp, eax
or ebx, ebp
mov ebp, edx
and ebp, eax
or ebx, ebp
mov dword [esp + 0x1c], ebx
mov ebx, ecx
mov ebp, dword [esp + 0x1c]
shl ebx, 5
sar ecx, 0x1b
or ebx, ecx
mov ecx, dword [esp + 0x18]
add ecx, ebp
mov ebp, dword [esp + 0x10]
add ebx, ecx
mov ecx, dword [ebp]
add ebp, 4
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
lea ecx, [ebx + ecx - 0x70e44324]
mov ebx, edx
mov edx, esi
mov esi, eax
shl esi, 0x1e
sar eax, 2
or esi, eax
dec ebp
mov eax, edi
mov dword [esp + 0x18], ebx
mov edi, ecx
mov dword [esp + 0x14], ebp
jne 0x4a517c
lea ebp, [esp + 0x114]
mov dword [esp + 0x14], 0x14
mov dword [esp + 0x10], ebp
mov ebp, ecx
shl ebp, 5
sar ecx, 0x1b
or ebp, ecx
mov ecx, edx
xor ecx, esi
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor ecx, eax
add ecx, ebx
mov ebx, dword [ebp]
add ebp, 4
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
lea ecx, [ecx + ebx - 0x359d3e2a]
mov ebx, edx
mov edx, esi
mov esi, eax
shl esi, 0x1e
sar eax, 2
or esi, eax
dec ebp
mov eax, edi
mov edi, ecx
mov dword [esp + 0x14], ebp
jne 0x4a51ef
mov edi, dword [esp + 0x20]
mov ebp, dword [edi]
add ecx, ebp
mov dword [edi], ecx
mov ecx, dword [edi + 4]
add eax, ecx
mov ecx, 0x50
mov dword [edi + 4], eax
mov eax, dword [edi + 8]
add esi, eax
mov eax, dword [edi + 0xc]
add edx, eax
mov eax, dword [edi + 0x10]
add ebx, eax
mov dword [edi + 8], esi
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], ebx
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret