Function at 0x4a5b67
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov ecx, 0x5798fc
mov dword [ebp + 0xc], 0x5798f8
lea edi, [eax + 8]
sub dword [ebp + 0xc], eax
mov dword [ebp - 0x10], ecx
sub dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 8]
mov edi, esi
not edi
and edi, dword [ebp - 4]
and ecx, esi
mov ebx, dword [ebp - 0xc]
or ecx, edi
mov edi, dword [ebp - 0xc]
add dword [ebp - 0xc], 0x10
add ecx, dword [edi - 4]
mov edi, dword [ebp - 0x14]
add ecx, dword [edi - 8]
add ecx, edx
mov edx, ecx
shr edx, 0x19
shl ecx, 7
or edx, ecx
mov ecx, esi
add edx, esi
mov edi, edx
and ecx, edx
not edi
and edi, dword [ebp - 8]
or ecx, edi
mov edi, dword [ebp - 0x14]
add ecx, dword [edi - 4]
add ecx, dword [ebx]
add ecx, dword [ebp - 4]
mov ebx, ecx
shr ebx, 0x14
shl ecx, 0xc
or ebx, ecx
add ebx, edx
mov dword [ebp - 4], ebx
mov ecx, ebx
not ebx
and ecx, edx
and ebx, esi
or ecx, ebx
mov ebx, dword [ebp + 0xc]
add ecx, dword [ebx + edi]
add ecx, dword [edi]
add ecx, dword [ebp - 8]
mov ebx, ecx
shl ebx, 0x11
shr ecx, 0xf
or ebx, ecx
mov ecx, dword [ebp - 4]
add ebx, ecx
mov dword [ebp - 8], ebx
and ecx, ebx
not ebx
and ebx, edx
or ecx, ebx
mov ebx, dword [ebp - 0x10]
add ecx, dword [ebx + edi]
add edi, 0x10
mov dword [ebp - 0x14], edi
add ecx, dword [edi - 0xc]
add ecx, esi
mov esi, ecx
shl esi, 0x16
shr ecx, 0xa
or esi, ecx
add esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 0x57993c
jl 0x4a5ba5
xor ebx, ebx
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 4]
not ecx
and ecx, dword [ebp - 8]
and edi, esi
add ebx, 0x10
or edi, ecx
mov ecx, dword [ebx + 0x579928]
add edi, dword [eax + ecx*4]
add edi, dword [ebx + 0x579968]
add edi, edx
mov ecx, edi
shr ecx, 0x1b
shl edi, 5
or ecx, edi
mov edi, dword [ebp - 8]
add ecx, esi
mov edx, ecx
mov ecx, dword [ebp - 8]
not edi
and ecx, edx
and edi, esi
or ecx, edi
mov edi, dword [ebx + 0x57992c]
add ecx, dword [eax + edi*4]
add ecx, dword [ebx + 0x57996c]
add ecx, dword [ebp - 4]
mov edi, ecx
shr edi, 0x17
shl ecx, 9
or edi, ecx
add edi, edx
mov ecx, edi
mov edi, esi
not edi
mov dword [ebp - 4], ecx
and ecx, esi
and edi, edx
or ecx, edi
mov edi, dword [ebx + 0x579930]
add ecx, dword [eax + edi*4]
add ecx, dword [ebx + 0x579970]
add ecx, dword [ebp - 8]
mov edi, ecx
shr edi, 0x12
shl ecx, 0xe
or edi, ecx
add edi, dword [ebp - 4]
mov ecx, edi
mov edi, edx
not edi
and edi, dword [ebp - 4]
mov dword [ebp - 8], ecx
and ecx, edx
or ecx, edi
mov edi, dword [ebx + 0x579934]
add ecx, dword [eax + edi*4]
add ecx, dword [ebx + 0x579974]
add ecx, esi
mov esi, ecx
shl esi, 0x14
shr ecx, 0xc
or esi, ecx
add esi, dword [ebp - 8]
cmp ebx, 0x40
jl 0x4a5c57
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 8]
xor ecx, ecx
jmp 0x4a5d26
mov edi, dword [ebp + 0xc]
mov ebx, dword [ecx + 0x5799b8]
xor edi, esi
add ecx, 0x10
mov ebx, dword [eax + ebx*4]
add ebx, dword [ecx + 0x5799e8]
add edx, ebx
mov ebx, dword [ebp - 8]
add edi, edx
xor ebx, esi
mov edx, edi
shr edx, 0x1c
shl edi, 4
or edx, edi
mov edi, dword [ecx + 0x5799ac]
add edx, esi
mov edi, dword [eax + edi*4]
xor ebx, edx
add edi, ebx
add edi, dword [ecx + 0x5799ec]
add edi, dword [ebp - 4]
mov ebx, edi
shr ebx, 0x15
shl edi, 0xb
or ebx, edi
mov edi, dword [ecx + 0x5799b0]
add ebx, edx
mov edi, dword [eax + edi*4]
mov dword [ebp - 4], ebx
xor ebx, esi
xor ebx, edx
add edi, ebx
add edi, dword [ecx + 0x5799f0]
add edi, dword [ebp - 8]
mov ebx, edi
shl ebx, 0x10
shr edi, 0x10
or ebx, edi
mov edi, dword [ebp - 4]
add ebx, edi
mov dword [ebp - 8], ebx
xor edi, ebx
mov ebx, dword [ecx + 0x5799b4]
mov dword [ebp + 0xc], edi
xor edi, edx
mov ebx, dword [eax + ebx*4]
add ebx, dword [ecx + 0x5799f4]
add esi, ebx
mov ebx, dword [ebp - 8]
add edi, esi
mov esi, edi
shl esi, 0x17
shr edi, 9
or esi, edi
add esi, ebx
cmp ecx, 0x40
jl 0x4a5d23
and dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
not edi
mov ecx, dword [ecx + 0x579a38]
or edi, esi
xor edi, ebx
mov ecx, dword [eax + ecx*4]
add ecx, edi
mov edi, dword [ebp + 0xc]
not ebx
add ecx, dword [edi + 0x579a78]
add ecx, edx
mov edx, ecx
shr edx, 0x1a
shl ecx, 6
or edx, ecx
mov ecx, dword [edi + 0x579a3c]
add edx, esi
mov ecx, dword [eax + ecx*4]
or ebx, edx
xor ebx, esi
add ecx, ebx
add ecx, dword [edi + 0x579a7c]
add ecx, dword [ebp - 4]
mov ebx, ecx
shr ebx, 0x16
shl ecx, 0xa
or ebx, ecx
mov ecx, dword [edi + 0x579a40]
mov edi, esi
add ebx, edx
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 4], ebx
not edi
or edi, ebx
xor edi, edx
add ecx, edi
mov edi, dword [ebp + 0xc]
add ecx, dword [edi + 0x579a80]
add ecx, dword [ebp - 8]
mov ebx, ecx
shr ebx, 0x11
shl ecx, 0xf
or ebx, ecx
mov ecx, dword [edi + 0x579a44]
add ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 8], ebx
mov ebx, edx
not ebx
or ebx, dword [ebp - 8]
xor ebx, edi
add ecx, ebx
mov ebx, dword [ebp + 0xc]
add dword [ebp + 0xc], 0x10
add ecx, dword [ebx + 0x579a84]
mov ebx, dword [ebp - 8]
add ecx, esi
mov esi, ecx
shl esi, 0x15
shr ecx, 0xb
or esi, ecx
add esi, ebx
cmp dword [ebp + 0xc], 0x40
jl 0x4a5dd4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, edx
mov dword [eax], ecx
mov ecx, dword [eax + 4]
add ecx, esi
mov dword [eax + 4], ecx
mov ecx, dword [eax + 8]
add ecx, ebx
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, edi
pop edi
pop esi
mov dword [eax + 0xc], ecx
pop ebx
leave
ret