Function at 0x4e61b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x516ad4]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, ecx
lea eax, [edi + 0xb4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004e5fc6
movzx eax, byte [ebp - 0x14]
mov eax, dword [eax*4 + 0x51ea48]
movzx ecx, byte [ebp - 7]
xor eax, dword [ecx*4 + 0x51d148]
movzx ecx, byte [ebp - 0xa]
xor eax, dword [ecx*4 + 0x51c928]
movzx ecx, byte [ebp - 0xd]
xor eax, dword [ecx*4 + 0x51de48]
mov esi, dword [ebp + 0xc]
movzx ecx, byte [ebp - 0x13]
mov dword [esi], eax
movzx eax, byte [ebp - 0x10]
mov eax, dword [eax*4 + 0x51ea48]
xor eax, dword [ecx*4 + 0x51d148]
movzx ecx, byte [ebp - 6]
xor eax, dword [ecx*4 + 0x51c928]
movzx ecx, byte [ebp - 9]
xor eax, dword [ecx*4 + 0x51de48]
movzx ecx, byte [ebp - 0xf]
mov dword [esi + 4], eax
movzx eax, byte [ebp - 0xc]
mov eax, dword [eax*4 + 0x51ea48]
xor eax, dword [ecx*4 + 0x51d148]
movzx ecx, byte [ebp - 0x12]
xor eax, dword [ecx*4 + 0x51c928]
movzx ecx, byte [ebp - 5]
xor eax, dword [ecx*4 + 0x51de48]
movzx ecx, byte [ebp - 0xb]
mov dword [esi + 8], eax
movzx eax, byte [ebp - 8]
mov eax, dword [eax*4 + 0x51ea48]
xor eax, dword [ecx*4 + 0x51d148]
movzx ecx, byte [ebp - 0xe]
xor eax, dword [ecx*4 + 0x51c928]
movzx ecx, byte [ebp - 0x11]
add esp, 0xc
xor eax, dword [ecx*4 + 0x51de48]
lea ebx, [edi + 0xa4]
mov dword [esi + 0xc], eax
mov dword [ebp + 8], 8
push ebx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004e5fc6
movzx eax, byte [ebp - 0x14]
mov eax, dword [eax*4 + 0x51ea48]
movzx ecx, byte [ebp - 7]
xor eax, dword [ecx*4 + 0x51d148]
movzx ecx, byte [ebp - 0xa]
xor eax, dword [ecx*4 + 0x51c928]
movzx ecx, byte [ebp - 0xd]
xor eax, dword [ecx*4 + 0x51de48]
movzx ecx, byte [ebp - 0x13]
mov dword [esi], eax
movzx eax, byte [ebp - 0x10]
mov eax, dword [eax*4 + 0x51ea48]
xor eax, dword [ecx*4 + 0x51d148]
movzx ecx, byte [ebp - 6]
xor eax, dword [ecx*4 + 0x51c928]
movzx ecx, byte [ebp - 9]
xor eax, dword [ecx*4 + 0x51de48]
movzx ecx, byte [ebp - 0xf]
mov dword [esi + 4], eax
movzx eax, byte [ebp - 0xc]
mov eax, dword [eax*4 + 0x51ea48]
xor eax, dword [ecx*4 + 0x51d148]
movzx ecx, byte [ebp - 0x12]
xor eax, dword [ecx*4 + 0x51c928]
movzx ecx, byte [ebp - 5]
xor eax, dword [ecx*4 + 0x51de48]
movzx ecx, byte [ebp - 0xb]
mov dword [esi + 8], eax
movzx eax, byte [ebp - 8]
mov eax, dword [eax*4 + 0x51ea48]
xor eax, dword [ecx*4 + 0x51d148]
movzx ecx, byte [ebp - 0xe]
xor eax, dword [ecx*4 + 0x51c928]
movzx ecx, byte [ebp - 0x11]
xor eax, dword [ecx*4 + 0x51de48]
add esp, 0xc
sub ebx, 0x10
dec dword [ebp + 8]
mov dword [esi + 0xc], eax
jne 0x4e62a4
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004e5fc6
movzx eax, byte [ebp - 0x14]
mov al, byte [eax + 0x51d548]
mov byte [esi], al
movzx eax, byte [ebp - 7]
mov al, byte [eax + 0x51d548]
mov byte [esi + 1], al
movzx eax, byte [ebp - 0xa]
mov al, byte [eax + 0x51d548]
mov byte [esi + 2], al
movzx eax, byte [ebp - 0xd]
mov al, byte [eax + 0x51d548]
mov byte [esi + 3], al
movzx eax, byte [ebp - 0x10]
mov al, byte [eax + 0x51d548]
mov byte [esi + 4], al
movzx eax, byte [ebp - 0x13]
mov al, byte [eax + 0x51d548]
mov byte [esi + 5], al
movzx eax, byte [ebp - 6]
mov al, byte [eax + 0x51d548]
mov byte [esi + 6], al
movzx eax, byte [ebp - 9]
mov al, byte [eax + 0x51d548]
mov byte [esi + 7], al
movzx eax, byte [ebp - 0xc]
mov al, byte [eax + 0x51d548]
mov byte [esi + 8], al
movzx eax, byte [ebp - 0xf]
mov al, byte [eax + 0x51d548]
mov byte [esi + 9], al
movzx eax, byte [ebp - 0x12]
mov al, byte [eax + 0x51d548]
mov byte [esi + 0xa], al
movzx eax, byte [ebp - 5]
mov al, byte [eax + 0x51d548]
mov byte [esi + 0xb], al
movzx eax, byte [ebp - 8]
mov al, byte [eax + 0x51d548]
mov byte [esi + 0xc], al
movzx eax, byte [ebp - 0xb]
mov al, byte [eax + 0x51d548]
mov byte [esi + 0xd], al
movzx eax, byte [ebp - 0xe]
mov al, byte [eax + 0x51d548]
mov byte [esi + 0xe], al
movzx eax, byte [ebp - 0x11]
mov al, byte [eax + 0x51d548]
add edi, 0x14
push edi
push esi
push esi
mov byte [esi + 0xf], al
call fcn.004e5fc6
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
pop esi
pop ebx
call fcn.004eae3c
leave
ret 8