Function at 0x4d2c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x14]
push ebx
movzx ebx, byte [eax + 4]
push esi
mov esi, edx
lea edx, [eax + 1]
push edi
mov edi, ecx
movzx ecx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 5]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x18]
shl ecx, 0x10
lea edx, [eax + 1]
or ebx, ecx
movzx ecx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [ebp - 0xc], ebx
movzx ebx, byte [edx + 3]
mov dword [ebp + 0x18], ecx
movzx ecx, byte [edx + 6]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 0x10
or ebx, ecx
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], ebx
je 0x4d2f5b
movzx ebx, byte [eax]
lea edx, [eax + 1]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + 0x14], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp + 0x14]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff8
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x1c], ecx
js 0x4d2e46
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 8], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp + 0x1c], ecx
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
or ecx, eax
xor ecx, dword [ebp + 0x14]
xor edx, ebx
xor edx, dword [ebp - 8]
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
push 1
lea ecx, [ebp - 0x20]
add edi, 8
call fcn.004b4aa0
mov ebx, dword [ebp - 0x20]
xor ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
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, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi + 4], dl
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
add esp, 4
add esi, 8
dec dword [ebp + 8]
mov dword [ebp + 0x14], edx
jne 0x4d2d92
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xfffffff8
je 0x4d2f20
mov edx, dword [ebp + 0x1c]
add ecx, 8
add ecx, edi
add edx, 7
xor eax, eax
xor edi, edi
mov dword [ebp + 8], eax
mov dword [ebp + 0x1c], edx
cmp edx, 7
ja case.default.0x4d2e69
jmp dword [edx*4 + 0x4d31b0]
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
dec 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 edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
xor edi, dword [ebp - 0xc]
xor eax, ebx
xor eax, dword [ebp - 8]
push 1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.004b4aa0
mov ebx, dword [ebp - 0x20]
xor ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
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, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
add esp, 4
shr eax, 0x18
mov byte [esi + 7], al
mov esi, dword [ebp + 0x10]
mov eax, ebx
mov byte [esi], bl
shr eax, 8
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
shr ebx, 0x18
mov byte [esi + 3], bl
mov byte [esi + 4], dl
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
shr edx, 0x18
pop edi
mov byte [esi + 7], dl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax]
lea ebx, [eax + 1]
mov edx, ebx
mov dword [ebp - 0x18], ebx
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [ebp + 0x1c], ecx
movzx ecx, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + 0x14], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp + 0x14]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff8
mov dword [ebp + 0x14], edx
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x4d309c
lea eax, [ecx - 1]
shr eax, 3
inc eax
mov dword [ebp - 0x14], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x10], ecx
mov edi, edi
movzx eax, byte [edi + 1]
movzx ebx, byte [edi]
shl eax, 8
or ebx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or ebx, eax
add edi, 4
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 8]
movzx edi, byte [edi]
mov eax, ebx
xor eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
movzx eax, byte [ecx + 1]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or edi, eax
add ecx, 4
mov eax, edi
xor eax, dword [ebp - 4]
mov dword [ebp + 8], ecx
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
call fcn.004b4aa0
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 8]
xor edx, dword [ebp + 0x14]
mov byte [esi], cl
xor edx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
shr ecx, 0x18
mov byte [esi + 3], cl
mov byte [esi + 4], dl
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 6], al
mov byte [esi + 7], dl
mov edx, edi
mov edi, dword [ebp + 8]
add esp, 4
add esi, 8
dec dword [ebp - 0x14]
mov ecx, ebx
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x14], edx
jne 0x4d2fd0
mov ebx, dword [ebp - 0x18]
jmp 0x4d309f
mov ecx, dword [ebp + 0x1c]
cmp dword [ebp - 0x10], 0xfffffff8
je 0x4d3173
movzx eax, byte [edi + 1]
movzx ecx, byte [edi]
movzx edx, byte [edi + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edi + 5]
mov dword [ebp - 0x18], ecx
xor ecx, dword [ebp + 0x18]
shl eax, 8
mov dword [ebp - 0x20], ecx
movzx ecx, byte [edi + 7]
or edx, eax
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov dword [ebp + 0x18], edx
xor edx, dword [ebp - 4]
push 0
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
call fcn.004b4aa0
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
xor eax, dword [ebp + 0x14]
xor edx, dword [ebp + 0x1c]
xor eax, dword [ebp - 0xc]
xor edx, dword [ebp - 8]
lea ecx, [edi + 8]
add edi, 7
add esp, 4
add ecx, esi
mov dword [ebp + 8], eax
cmp edi, 7
ja case.default.0x4d312d
jmp dword [edi*4 + 0x4d31d0]
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 8]
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 - 0x18]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
pop edi
mov byte [eax], cl
mov eax, ecx
shr eax, 8
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
shr ecx, 0x18
mov byte [ebx + 2], cl
mov byte [ebx + 3], dl
mov eax, edx
shr eax, 8
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
shr edx, 0x18
pop esi
mov byte [ebx + 6], dl
pop ebx
mov esp, ebp
pop ebp
ret