Function at 0x4c7c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.005e28b0
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov edi, ecx
mov esi, dword [ebp + 8]
movzx ebx, byte [eax + 1]
shl ebx, 8
movzx ecx, byte [eax]
or ecx, ebx
movzx ebx, byte [eax + 2]
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [eax + 3]
shl ebx, 0x18
or ecx, ebx
movzx ebx, byte [eax + 5]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [eax + 4]
shl ebx, 8
or ecx, ebx
movzx ebx, byte [eax + 7]
movzx eax, byte [eax + 6]
shl ebx, 8
or ebx, eax
lea eax, [edx + 1]
shl ebx, 0x10
or ecx, ebx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx]
movzx edx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 4]
mov dword [ebp - 4], ecx
movzx ecx, byte [eax + 3]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 6]
movzx eax, byte [eax + 5]
shl edx, 8
or edx, eax
shl edx, 0x10
or ecx, edx
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 8], ecx
je 0x4c7f49
mov ecx, dword [ebp + 0x14]
movzx eax, byte [ecx]
lea edx, [ecx + 1]
movzx ecx, byte [edx]
movzx ebx, byte [edx + 4]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edx + 1]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edx + 2]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [edx + 3]
shl ebx, 8
or ecx, ebx
movzx ebx, byte [edx + 6]
mov dword [ebp - 0x18], edx
movzx edx, byte [edx + 5]
shl ebx, 8
or ebx, edx
shl ebx, 0x10
or ecx, ebx
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff8
js 0x4c7dc8
lea edx, [ebx + 8]
shr edx, 3
mov dword [ebp + 0x18], edx
neg edx
lea edx, [ebx + edx*8]
mov dword [ebp + 0xc], edx
lea esp, [esp]
movzx ebx, byte [esi + 1]
movzx edx, byte [esi]
shl ebx, 8
or edx, ebx
movzx ebx, byte [esi + 2]
shl ebx, 0x10
or edx, ebx
movzx ebx, byte [esi + 3]
shl ebx, 0x18
or edx, ebx
movzx ebx, byte [esi + 5]
mov dword [ebp + 0x1c], edx
movzx edx, byte [esi + 4]
shl ebx, 8
or edx, ebx
movzx ebx, byte [esi + 6]
shl ebx, 0x10
or edx, ebx
movzx ebx, byte [esi + 7]
shl ebx, 0x18
or edx, ebx
mov ebx, dword [ebp + 0x1c]
xor ebx, eax
mov eax, dword [ebp + 0x10]
xor ebx, dword [ebp - 0xc]
xor edx, ecx
xor edx, dword [ebp - 0x10]
push 1
push eax
lea ecx, [ebp - 0x24]
push ecx
add esi, 8
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edx
call fcn.00587e00
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 4]
add esp, 0xc
mov byte [edi], al
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], cl
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 8]
mov edx, eax
shr edx, 0x18
mov byte [edi + 3], dl
mov byte [edi + 4], cl
mov edx, ecx
shr edx, 8
mov byte [edi + 5], dl
mov edx, ecx
shr edx, 0x10
mov byte [edi + 6], dl
mov edx, ecx
shr edx, 0x18
mov byte [edi + 7], dl
add edi, 8
dec dword [ebp + 0x18]
jne 0x4c7d10
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xfffffff8
je 0x4c7f0c
lea edx, [esi + ebx + 8]
mov dword [ebp + 8], edx
add ebx, 7
xor esi, esi
xor edx, edx
cmp ebx, 7
ja case.default.0x4c7de8
jmp dword [ebx*4 + 0x4c8180]
mov ebx, dword [ebp + 8]
movzx esi, byte [ebx - 1]
dec ebx
movzx edx, byte [ebx - 1]
dec ebx
shl edx, 0x10
shl esi, 0x18
or esi, edx
movzx edx, byte [ebx - 1]
dec ebx
shl edx, 8
or esi, edx
movzx edx, byte [ebx - 1]
dec ebx
dec ebx
or esi, edx
movzx edx, byte [ebx]
shl edx, 0x18
jmp 0x4c7e85
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx - 1]
dec ebx
shl edx, 0x10
or esi, edx
movzx edx, byte [ebx - 1]
dec ebx
shl edx, 8
or esi, edx
movzx edx, byte [ebx - 1]
dec ebx
dec ebx
or esi, edx
movzx edx, byte [ebx]
shl edx, 0x18
jmp 0x4c7e85
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx - 1]
dec ebx
shl edx, 8
or esi, edx
movzx edx, byte [ebx - 1]
dec ebx
dec ebx
or esi, edx
movzx edx, byte [ebx]
shl edx, 0x18
jmp 0x4c7e85
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx - 1]
dec ebx
dec ebx
or esi, edx
movzx edx, byte [ebx]
shl edx, 0x18
jmp 0x4c7e85
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx - 1]
dec ebx
shl edx, 0x18
jmp 0x4c7e85
mov ebx, dword [ebp + 8]
dec ebx
mov dword [ebp + 8], ebx
movzx ebx, byte [ebx]
shl ebx, 0x10
or edx, ebx
mov ebx, dword [ebp + 8]
dec ebx
mov dword [ebp + 8], ebx
movzx ebx, byte [ebx]
shl ebx, 8
or edx, ebx
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx - 1]
or edx, ebx
xor edx, eax
mov eax, dword [ebp + 0x10]
xor edx, dword [ebp - 0xc]
xor esi, ecx
xor esi, dword [ebp - 0x10]
push 1
push eax
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], esi
call fcn.00587e00
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 4]
add esp, 0xc
mov byte [edi], al
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], cl
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 8]
mov edx, eax
shr edx, 0x18
mov byte [edi + 3], dl
mov edx, ecx
shr edx, 8
mov byte [edi + 4], cl
mov byte [edi + 5], dl
mov edx, ecx
shr edx, 0x10
mov byte [edi + 6], dl
mov edx, ecx
shr edx, 0x18
mov byte [edi + 7], dl
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov byte [edx], al
mov edx, eax
shr edx, 8
mov byte [esi], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 1], dl
shr eax, 0x18
mov byte [esi + 2], al
mov byte [esi + 3], cl
mov eax, ecx
mov edx, ecx
shr eax, 8
mov byte [esi + 4], al
shr edx, 0x10
mov byte [esi + 5], dl
shr ecx, 0x18
pop edi
mov byte [esi + 6], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
movzx ebx, byte [eax]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 2]
inc eax
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl edx, 0x10
or ebx, edx
movzx edx, byte [eax + 4]
shl ecx, 0x18
or ebx, ecx
movzx ecx, byte [eax + 3]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 6]
mov dword [ebp - 0x18], eax
movzx eax, byte [eax + 5]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 0xc]
shl edx, 0x10
add eax, 0xfffffff8
or ecx, edx
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0xc], eax
test eax, eax
jle 0x4c8073
lea ecx, [eax - 1]
shr ecx, 3
inc ecx
mov dword [ebp - 0x1c], ecx
neg ecx
lea ecx, [eax + ecx*8]
mov dword [ebp + 0xc], ecx
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
movzx ecx, byte [esi + 2]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 3]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi + 5]
shl edx, 0x18
or eax, edx
movzx edx, byte [esi + 6]
mov dword [ebp + 0x1c], eax
xor eax, dword [ebp - 4]
shl ecx, 8
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 4]
or eax, ecx
movzx ecx, byte [esi + 7]
shl edx, 0x10
or eax, edx
mov edx, dword [ebp + 0x10]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x14], eax
xor eax, dword [ebp - 8]
push 0
mov dword [ebp - 0x20], eax
push edx
lea eax, [ebp - 0x24]
push eax
add esi, 8
call fcn.00587e00
mov ecx, dword [ebp + 0x18]
xor ecx, dword [ebp - 0x20]
mov eax, ebx
xor eax, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x10]
xor eax, dword [ebp - 0xc]
mov ebx, dword [ebp + 0x1c]
mov byte [edi], al
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 2], dl
shr eax, 0x18
mov byte [edi + 3], al
mov byte [edi + 4], cl
mov eax, ecx
shr eax, 8
mov edx, ecx
mov byte [edi + 5], al
mov eax, dword [ebp - 0x14]
shr edx, 0x10
shr ecx, 0x18
mov byte [edi + 6], dl
mov byte [edi + 7], cl
add esp, 0xc
add edi, 8
dec dword [ebp - 0x1c]
mov dword [ebp + 0x18], eax
jne 0x4c7fb3
mov ecx, eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xfffffff8
je 0x4c8143
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
movzx edx, byte [esi + 2]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 5]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [esi + 7]
mov dword [ebp + 0x1c], eax
xor eax, dword [ebp - 4]
shl edx, 8
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 4]
or eax, edx
movzx edx, byte [esi + 6]
shl ecx, 8
or ecx, edx
shl ecx, 0x10
or eax, ecx
mov dword [ebp - 0x14], eax
xor eax, dword [ebp - 8]
push 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00587e00
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
xor ebx, dword [ebp - 0x24]
xor eax, dword [ebp - 0x20]
xor ebx, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0xc
cmp ecx, 7
ja case.default.0x4c80fb
jmp dword [ecx*4 + 0x4c81a0]
dec edi
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
dec edi
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
dec edi
mov byte [edi], al
dec edi
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 0x10
mov byte [edi], cl
dec edi
mov edx, ebx
shr edx, 8
mov byte [edi], dl
mov byte [edi - 1], bl
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], eax
mov ecx, eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x18]
mov byte [edx], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
mov edx, ebx
shr edx, 0x10
mov byte [eax + 1], dl
shr ebx, 0x18
mov byte [eax + 2], bl
mov edx, ecx
shr edx, 8
mov byte [eax + 3], cl
mov byte [eax + 4], dl
mov edx, ecx
pop edi
shr edx, 0x10
shr ecx, 0x18
pop esi
mov byte [eax + 5], dl
mov byte [eax + 6], cl
pop ebx
mov esp, ebp
pop ebp
ret