Function at 0x4e4c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5a9008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x18], ebx
push edi
mov eax, dword [esi + 0xa98]
dec eax
cmp eax, 4
ja case.default.0x4e4c8b
jmp dword [eax*4 + 0x4e4f38]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je case.default.0x4e4c8b
nop dword [eax]
movzx eax, byte [esi + 0x10b6]
lea ebx, [ebx + 1]
add byte [esi + 0x10b5], al
movzx eax, byte [esi + 0x10b5]
add byte [esi + 0x10b4], al
movzx eax, byte [esi + 0x10b4]
sub byte [ebx - 1], al
sub ecx, 1
jne 0x4e4ca0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef615
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
test eax, eax
je case.default.0x4e4c8b
mov edx, 0x1234
nop
add dx, word [esi + 0x10b8]
dec eax
mov dword [ebp - 0x1c], eax
movzx ebx, dx
mov eax, ebx
mov word [esi + 0x10b8], dx
shr eax, 1
movzx eax, al
lea ecx, [esi + eax*4]
movzx eax, word [ecx + 0xba4]
xor word [esi + 0x10ba], ax
movzx eax, word [ecx + 0xba6]
mov ecx, 1
sub word [esi + 0x10bc], ax
movzx eax, word [esi + 0x10be]
movzx edx, word [esi + 0x10ba]
movzx edi, word [esi + 0x10bc]
ror ax, cl
xor ax, dx
mov edx, 0x1234
ror ax, cl
mov ecx, dword [ebp - 0x18]
movzx eax, ax
mov word [esi + 0x10be], ax
xor eax, edi
xor eax, ebx
mov word [esi + 0x10b8], ax
shr eax, 8
xor byte [ecx], al
inc ecx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
test eax, eax
jne 0x4e4cf0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef615
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
test edx, edx
je case.default.0x4e4c8b
dec edx
shr edx, 4
inc edx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebx]
xor eax, dword [esi + 0x10a4]
mov ecx, dword [ebx + 0xc]
movups xmm0, xmmword [ebx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
xor eax, dword [esi + 0x10a8]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x10ac]
xor eax, dword [ebx + 8]
xor ecx, dword [esi + 0x10b0]
mov dword [ebp - 0x30], eax
mov eax, 0x1f
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x2c], eax
and eax, 3
rol ecx, 0xb
add ecx, ebx
mov edx, dword [esi + eax*4 + 0x10a4]
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edi, byte [eax + esi + 0xfa4]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + esi + 0xfa4]
shl eax, 8
or edi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edi, 8
movzx eax, byte [eax + esi + 0xfa4]
or edi, eax
movzx eax, cl
mov ecx, ebx
shl edi, 8
ror ecx, 0xf
xor ecx, dword [ebp - 0x20]
movzx eax, byte [eax + esi + 0xfa4]
add ecx, edx
or edi, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
xor edi, dword [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov ebx, edi
movzx edx, byte [eax + esi + 0xfa4]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + esi + 0xfa4]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + esi + 0xfa4]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax + esi + 0xfa4]
or edx, eax
mov eax, dword [ebp - 0x20]
xor edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, edx
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
jns 0x4e4de6
mov eax, dword [esi + 0x10a4]
mov ecx, esi
mov ebx, dword [ebp - 0x18]
xor eax, edi
mov dword [ebx], eax
mov eax, dword [esi + 0x10a8]
xor eax, edx
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x10ac]
xor eax, dword [ebp - 0x24]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x10b0]
xor eax, dword [ebp - 0x28]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004e3720
add ebx, 0x10
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ebx
jne 0x4e4da5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef615
mov esp, ebp
pop ebp
ret 8
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0xa9c]
push ebx
call fcn.004ea120
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ef615
mov esp, ebp
pop ebp
ret 8