Function at 0x4e3b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [ebp + 0x1c]
lea edx, [eax + 1]
movzx ebx, byte [edx + 3]
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
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x20]
lea edx, [eax + 1]
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
mov dword [ebp - 0xc], ebx
movzx eax, byte [edx + 1]
movzx ebx, byte [edx + 3]
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
mov dword [ebp + 0x20], ecx
movzx ecx, byte [edx + 6]
movzx eax, byte [edx + 5]
mov edi, dword [ebp + 0x18]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
movzx edx, byte [edi + 1]
or ebx, ecx
movzx eax, byte [edi]
movzx ecx, byte [edi + 7]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
mov dword [ebp - 4], ebx
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
cmp dword [ebp + 0x24], 0
mov dword [ebp + 0x1c], edx
je 0x4e3e3a
movzx ebx, byte [edi + 4]
mov esi, dword [ebp + 0xc]
or ebx, eax
movzx eax, byte [edi + 6]
mov edi, dword [ebp + 8]
or ecx, eax
shl ecx, 0x10
or ebx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp + 0x10], ecx
js 0x4e3d36
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 0x24], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp + 0x10], ecx
nop dword [eax]
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]
xor edx, dword [ebp + 0x1c]
xor edx, dword [ebp - 8]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x20], edx
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
add edi, 8
or ecx, eax
lea eax, [ebp - 0x20]
push 1
push dword [ebp + 0x14]
xor ecx, ebx
xor ecx, dword [ebp - 0xc]
push eax
mov dword [ebp - 0x1c], ecx
call fcn.004d45c0
mov edx, dword [ebp - 0x20]
add esp, 0xc
xor edx, dword [ebp + 0x20]
mov ebx, dword [ebp - 0x1c]
mov eax, edx
xor ebx, dword [ebp - 4]
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ebx
shr eax, 8
mov byte [esi + 4], bl
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
sub dword [ebp + 0x24], 1
mov dword [ebp + 0x1c], edx
jne 0x4e3c80
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xfffffff8
je 0x4e4031
mov edx, dword [ebp + 0x10]
add edi, 8
add ecx, edi
add edx, 7
xor eax, eax
mov dword [ebp + 0x10], edx
xor edi, edi
mov dword [ebp + 0x24], eax
cmp edx, 7
ja case.default.0x4e3d59
jmp dword [edx*4 + 0x4e4090]
movzx edi, byte [ecx - 1]
dec ecx
dec ecx
shl edi, 0x18
movzx eax, byte [ecx]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx]
shl eax, 8
or edi, eax
jmp 0x4e3da3
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
dec ecx
xor edi, edi
or edi, eax
movzx eax, byte [ecx]
shl eax, 8
or edi, eax
jmp 0x4e3da3
movzx eax, byte [ecx - 1]
dec ecx
xor edi, edi
shl eax, 8
or edi, eax
jmp 0x4e3da3
xor edi, edi
movzx eax, byte [ecx - 1]
dec ecx
or edi, eax
mov dword [ebp + 0x24], edi
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]
or edi, eax
mov eax, dword [ebp + 0x24]
xor edi, dword [ebp + 0x1c]
xor eax, ebx
xor eax, dword [ebp - 0xc]
xor edi, dword [ebp - 8]
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
call fcn.004d45c0
mov edx, dword [ebp - 0x20]
add esp, 0xc
xor edx, dword [ebp + 0x20]
mov ebx, dword [ebp - 0x1c]
mov eax, edx
xor ebx, dword [ebp - 4]
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ebx
shr eax, 8
mov byte [esi + 4], bl
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 7], al
jmp 0x4e4031
movzx esi, byte [edi + 4]
mov ebx, dword [ebp + 8]
or esi, eax
movzx eax, byte [edi + 6]
or ecx, eax
shl ecx, 0x10
or esi, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp - 0x10], esi
mov dword [ebp + 0x24], ecx
test ecx, ecx
jle 0x4e3f5c
lea eax, [ecx - 1]
shr eax, 3
inc eax
mov dword [ebp - 0x14], eax
neg eax
lea ecx, [ecx + eax*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x10], eax
nop word [eax + eax]
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
shl eax, 8
or edi, eax
movzx esi, byte [ebx + 4]
movzx eax, byte [ebx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
mov eax, edi
mov dword [ebp - 0x18], edi
xor eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or esi, eax
mov eax, esi
xor eax, dword [ebp - 4]
push 0
push dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004d45c0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp + 0x1c]
xor ecx, dword [ebp - 8]
mov byte [eax], cl
inc eax
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x10]
xor edx, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, ecx
mov edi, dword [ebp + 0x10]
inc dword [ebp + 0x10]
shr eax, 8
mov dword [ebp - 0x10], esi
mov byte [edi], al
mov eax, ecx
mov edi, dword [ebp + 0x10]
shr eax, 0x10
shr ecx, 0x18
mov byte [edi], al
mov eax, edi
inc eax
mov dword [ebp + 0x10], eax
mov byte [eax], cl
mov ecx, eax
mov eax, edx
shr eax, 8
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
add ecx, 5
sub dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x1c], edx
jne 0x4e3e80
mov edi, ecx
mov ecx, dword [ebp + 0x24]
jmp 0x4e3f5f
mov edi, dword [ebp + 0xc]
cmp ecx, 0xfffffff8
je 0x4e402e
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
mov dword [ebp + 0x10], ecx
xor ecx, dword [ebp + 0x20]
mov dword [ebp - 0x20], ecx
movzx ecx, byte [ebx + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [ebx + 6]
or ecx, eax
lea eax, [ebp - 0x20]
shl ecx, 0x10
or edx, ecx
push 0
push dword [ebp + 0x14]
mov dword [ebp + 0x20], edx
xor edx, dword [ebp - 4]
push eax
mov dword [ebp - 0x1c], edx
call fcn.004d45c0
mov eax, dword [ebp + 0x24]
add esp, 0xc
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
xor ebx, dword [ebp + 0x1c]
xor edx, esi
xor ebx, dword [ebp - 8]
lea ecx, [eax + 8]
xor edx, dword [ebp - 0xc]
add eax, 7
add ecx, edi
cmp eax, 7
ja case.default.0x4e3fe9
jmp dword [eax*4 + 0x4e40b0]
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
dec ecx
mov byte [ecx], dl
dec ecx
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], bl
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x20]
jmp 0x4e4031
mov ebx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, ebx
shr eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, ebx
shr eax, 8
mov dword [ebp + 0x24], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp + 0x20], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp + 0x1c], eax
mov eax, edx
shr ecx, 0x18
shr eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov byte [eax], dl
mov edx, dword [ebp + 0x10]
mov byte [eax + 1], dl
mov edx, dword [ebp + 0x1c]
mov byte [eax + 2], dl
mov edx, dword [ebp + 0x20]
mov byte [eax + 3], dl
mov edx, dword [ebp + 0x24]
mov byte [eax + 4], bl
mov byte [eax + 5], dl
mov edx, dword [ebp - 0x14]
mov byte [eax + 6], dl
mov byte [eax + 7], cl
pop ebx
mov esp, ebp
pop ebp
ret