Function at 0x4a8330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
sar esi, 0x10
mov edx, dword [eax + 0x80]
mov ecx, dword [eax + 0x70]
imul esi, edx
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edx
lea eax, [eax + esi*4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi]
nop dword [eax + eax]
mov eax, dword [ebx]
xor edx, edx
test eax, eax
cmovns edx, eax
mov eax, ecx
sar eax, 0x10
mov dword [ebp - 0x24], edx
cmp eax, dword [ebp - 0x1c]
jl 0x4a838d
mov ecx, dword [ebp - 0x1c]
shl ecx, 0x10
dec ecx
cmp ecx, edx
jle 0x4a855d
sar edx, 0x10
mov eax, ecx
sar eax, 0x10
mov edi, edx
mov dword [ebp - 0x14], eax
mov eax, 0xa000a001
mov dword [ebp - 0x28], edx
and edx, 1
movzx ecx, cx
add ecx, 0x199a
mov dword [ebp - 8], edx
mul ecx
mov al, byte [ebp - 8]
shl al, 2
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x10]
shr edx, 0xd
mov dword [ebp - 0x2c], edx
sar edi, 1
mov ecx, dword [eax + 0x9c]
mov eax, dword [ebp - 0x24]
add edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
movzx ecx, ax
mov eax, 0xa000a001
add ecx, 0x199a
mov dword [ebp - 0xc], edi
mul ecx
mov eax, dword [ebp - 0x28]
shr edx, 0xd
push 1
mov dword [ebp - 0x24], edx
push edi
cmp eax, dword [ebp - 0x14]
jne 0x4a8417
call dword [ebp - 0x20]
mov cl, byte [ebp - 1]
mov dl, al
shr dl, cl
and dl, 0xf
sub dl, byte [ebp - 0x24]
jmp 0x4a851c
call dword [ebp - 0x20]
mov cl, byte [ebp - 1]
mov dl, al
shr dl, cl
mov ecx, dword [ebp - 8]
and dl, 0xf
sub dl, byte [ebp - 0x24]
add dl, 5
shl ecx, 2
movzx edx, dl
mov edi, edx
movzx eax, al
shr edi, 4
neg edi
or edi, edx
mov edx, 0xf
shl edx, cl
and edi, 0xf
not edx
shl edi, cl
and edx, eax
mov eax, dword [ebp - 0x10]
or edi, edx
push 1
push edi
mov edi, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
push edi
call eax
mov eax, dword [ebp - 8]
add esp, 0x14
mov ecx, dword [ebp - 0x28]
add edi, eax
xor eax, 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
inc ecx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x4a8501
mov ebx, dword [ebp - 8]
sub eax, ecx
mov dword [ebp - 0x14], eax
mov esi, edi
nop dword [eax]
mov eax, dword [ebp - 0x10]
push 1
push esi
mov eax, dword [eax + 0x9c]
call eax
mov dl, al
mov cl, bl
shl cl, 2
shr dl, cl
lea ecx, [ebx*4]
and dl, 0xf
movzx eax, al
add dl, 5
movzx edx, dl
mov edi, edx
shr edi, 4
neg edi
or edi, edx
mov edx, 0xf
shl edx, cl
and edi, 0xf
not edx
shl edi, cl
and edx, eax
mov eax, dword [ebp - 0x10]
push 1
or edi, edx
push edi
mov eax, dword [eax + 0xa0]
push esi
call eax
add esi, ebx
add esp, 0x14
xor ebx, 1
sub dword [ebp - 0x14], 1
jne 0x4a8490
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
push 1
push edi
mov eax, dword [eax + 0x9c]
call eax
mov ecx, dword [ebp - 8]
mov dl, al
shl cl, 2
shr dl, cl
and dl, 0xf
add dl, byte [ebp - 0x2c]
mov ecx, dword [ebp - 8]
movzx edx, dl
mov edi, edx
shl ecx, 2
shr edi, 4
neg edi
movzx eax, al
or edi, edx
mov edx, 0xf
shl edx, cl
and edi, 0xf
not edx
shl edi, cl
and edx, eax
mov eax, dword [ebp - 0x10]
push 1
or edi, edx
push edi
push dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
call eax
mov edi, dword [ebp + 0xc]
add esp, 0x14
cmp edi, dword [ebp + 0x10]
je 0x4a8616
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
cmp di, 0xd555
je 0x4a85be
mov eax, dword [ebx + 0x20]
add ecx, dword [ebx + 0x18]
add eax, edx
mov dword [ebx], ecx
mov dword [ebx + 4], eax
test eax, eax
jle 0x4a8590
sub eax, dword [ebx + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [ebx], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
add dword [esi + 4], eax
add ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esi], ecx
test eax, eax
jle 0x4a85af
sub eax, dword [esi + 0x10]
add ecx, dword [esi + 0xc]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov eax, 0x5555
add edi, eax
mov dword [ebp + 0xc], edi
jmp 0x4a8370
mov eax, dword [ebx + 0x24]
add ecx, dword [ebx + 0x1c]
add eax, edx
mov dword [ebx], ecx
mov dword [ebx + 4], eax
test eax, eax
jle 0x4a85dc
sub eax, dword [ebx + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [ebx], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
add dword [esi + 4], eax
add ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esi], ecx
test eax, eax
jle 0x4a85fb
sub eax, dword [esi + 0x10]
add ecx, dword [esi + 0xc]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
mov eax, 0x5556
add edi, eax
mov dword [ebp + 0xc], edi
jmp 0x4a8370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret