Function at 0x4c4420
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], 0
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
je 0x4c4552
mov ebx, eax
cmp edi, 8
jb 0x4c44a4
nop word cs:[eax + eax]
nop dword [eax + eax]
xor ecx, dword [ebx]
xor edx, dword [ebx + 4]
add ebx, 8
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ecx, esp
mov edx, ebp
push 1
call fcn.004c3330
add esp, 4
mov ecx, dword [esp]
add edi, 0xfffffff8
mov dword [esi], ecx
mov edx, dword [esp + 4]
mov dword [esi + 4], edx
add esi, 8
cmp edi, 7
ja 0x4c4470
test edi, edi
je 0x4c466d
mov dword [esp + 0xc], edx
lea edx, [edi - 1]
xor eax, eax
cmp edx, 6
ja case.default.0x4c44d2
mov dword [esp + 0x10], ecx
mov ecx, edx
add ebx, edi
mov dword [esp + 8], 0
xor edi, edi
xor edx, edx
jmp dword [ecx*4 + 0x5328b0]
movzx eax, byte [ebx - 1]
dec ebx
shl eax, 0x10
movzx ecx, byte [ebx - 1]
dec ebx
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebx - 1]
dec ebx
or eax, ecx
mov dword [esp + 8], eax
movzx eax, byte [ebx - 1]
dec ebx
shl eax, 0x18
movzx edx, byte [ebx - 1]
mov edi, dword [esp + 8]
dec ebx
shl edx, 0x10
or eax, edx
movzx ecx, byte [ebx - 1]
dec ebx
mov edx, edi
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebx - 1]
or eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, dword [esp + 0xc]
xor eax, ecx
mov ecx, esp
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, ebp
push 1
call fcn.004c3330
add esp, 4
mov ecx, dword [esp]
mov ebx, dword [esp + 0x3c]
mov dword [esi], ecx
mov edx, dword [esp + 4]
mov dword [esi + 4], edx
jmp 0x4c4671
cmp edi, 8
jb 0x4c45e7
mov ebp, eax
nop dword [eax]
mov eax, dword [ebp]
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov edx, dword [esp + 0x38]
mov ebx, ecx
mov ecx, esp
mov dword [esp], eax
mov dword [esp + 0x10], eax
mov esi, dword [ebp + 4]
add ebp, 8
mov dword [esp + 4], esi
push 0
call fcn.004c3330
mov edx, esi
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
add esp, 4
mov eax, dword [esp + 0xc]
xor ebx, dword [esp]
add edi, 0xfffffff8
xor eax, dword [esp + 4]
mov byte [esi], bl
mov byte [esi + 1], bh
mov dword [esp + 0xc], eax
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
mov byte [esi + 2], al
mov byte [esi + 3], bl
mov ebx, dword [esp + 0xc]
mov eax, ebx
mov byte [esi + 4], bl
mov byte [esi + 5], bh
shr ebx, 0x18
shr eax, 0x10
mov byte [esi + 6], al
mov byte [esi + 7], bl
add esi, 8
cmp edi, 7
ja 0x4c4560
mov eax, ebp
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
test edi, edi
je 0x4c4671
mov dword [esp + 0x10], ecx
mov ecx, dword [eax]
mov dword [esp + 0xc], edx
mov edx, ebp
mov dword [esp], ecx
mov dword [esp + 0x14], ecx
mov ecx, esp
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
push 0
call fcn.004c3330
add esp, 4
lea eax, [edi - 1]
cmp eax, 6
ja case.default.0x4c4632
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add esi, edi
xor ecx, dword [esp]
xor edx, dword [esp + 4]
jmp dword [eax*4 + 0x5328cc]
mov eax, edx
shr eax, 0x10
mov byte [esi - 1], al
dec esi
mov byte [esi - 1], dh
dec esi
mov byte [esi - 1], dl
dec esi
mov eax, ecx
shr eax, 0x18
mov byte [esi - 1], al
dec esi
mov eax, ecx
shr eax, 0x10
mov byte [esi - 1], al
dec esi
mov byte [esi - 1], ch
dec esi
mov byte [esi - 1], cl
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x14]
jmp 0x4c4671
mov ebx, dword [esp + 0x3c]
mov eax, ecx
mov byte [ebx], cl
mov byte [ebx + 1], ch
shr ecx, 0x18
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
mov byte [ebx + 5], dh
shr edx, 0x18
shr eax, 0x10
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
jmp 0x4c4522