Function at 0x4a8945
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
mov edi, edx
mov edx, ecx
je 0x4a8b69
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0x14], esi
movzx eax, byte [esi + 1]
movzx ebx, byte [esi]
movzx ecx, byte [esi + 4]
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or ebx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or ebx, eax
movzx eax, byte [esi + 5]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
or ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
js 0x4a8a6e
add eax, 8
mov esi, edx
shr eax, 3
mov dword [ebp + 8], eax
imul eax, eax, 0xfffffff8
add dword [ebp - 8], eax
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
movzx ecx, byte [esi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 5]
shl eax, 8
xor edx, ebx
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [esi + 6]
mov edx, dword [ebp + 0xc]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
add esi, 8
or ecx, eax
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.004a8dcd
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [ebp - 0x18]
shr eax, 8
mov byte [edi], bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, ecx
shr eax, 8
mov byte [edi + 4], cl
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 7], al
add edi, 8
dec dword [ebp + 8]
mov dword [ebp - 0xc], ecx
jne 0x4a89c2
mov eax, dword [ebp - 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
cmp eax, 0xfffffff8
je 0x4a8b33
mov esi, dword [ebp - 8]
lea ecx, [eax + 8]
add ecx, edx
add esi, 7
xor edx, edx
mov dword [ebp - 0x10], esi
mov eax, edx
mov dword [ebp + 8], eax
cmp esi, 7
ja case.default.0x4a8a91
jmp dword [esi*4 + 0x4a8d8d]
dec ecx
movzx edx, byte [ecx]
shl edx, 0x18
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or edx, eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or edx, eax
dec ecx
movzx eax, byte [ecx]
or edx, eax
dec ecx
movzx eax, byte [ecx]
shl eax, 0x18
mov dword [ebp + 8], eax
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or dword [ebp + 8], eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
xor edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
xor eax, ebx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
call fcn.004a8dcd
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [ebp - 0x18]
shr eax, 8
mov byte [edi], bl
mov byte [edi + 1], al
mov eax, ebx
mov esi, dword [ebp + 0x14]
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, ecx
shr eax, 8
mov byte [edi + 4], cl
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 7], al
mov byte [esi], bl
mov eax, ebx
shr eax, 8
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ecx
shr ebx, 0x18
mov byte [esi + 3], bl
shr eax, 8
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 6], al
mov byte [esi + 7], cl
jmp 0x4a8d83
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ebx
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
mov dword [ebp + 0x14], ecx
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
mov dword [ebp - 8], esi
mov dword [ebp + 8], eax
js 0x4a8c86
add eax, 8
mov ebx, edi
shr eax, 3
mov dword [ebp - 0x10], eax
imul eax, eax, 0xfffffff8
add dword [ebp + 8], eax
movzx eax, byte [edx + 1]
lea ecx, [ebp - 0x1c]
movzx edi, byte [edx]
movzx esi, byte [edx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [edx + 5]
shl eax, 8
or esi, eax
mov dword [ebp - 0x1c], edi
movzx eax, byte [edx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [edx + 7]
shl eax, 0x18
add edx, 8
or esi, eax
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
call fcn.004a8ffd
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov eax, ecx
xor edx, dword [ebp - 8]
mov byte [ebx], cl
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 3], cl
mov ecx, edi
mov byte [ebx + 4], dl
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add ebx, 8
dec dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [ebp + 0x14], ecx
mov dword [ebp - 8], esi
jne 0x4a8bd2
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
cmp eax, 0xfffffff8
je 0x4a8d4f
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 7]
mov edx, dword [ebp + 0xc]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0xc]
shl ecx, 0x10
or eax, ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
call fcn.004a8ffd
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
xor eax, esi
mov esi, dword [ebp + 8]
xor edx, dword [ebp + 0x14]
mov dword [ebp + 0x14], eax
lea ecx, [esi + 8]
add esi, 7
add ecx, edi
cmp esi, 7
ja case.default.0x4a8d07
jmp dword [esi*4 + 0x4a8dad]
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [ebp + 0x14]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 0x14]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 0x14]
dec ecx
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], dl
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
jmp 0x4a8d52
mov edx, dword [ebp - 8]
mov byte [ebx], cl
mov eax, ecx
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 3], cl
shr eax, 8
mov byte [ebx + 4], dl
mov byte [ebx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret