Function at 0x4ce270
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.00525ec0
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x38]
mov edi, ecx
mov esi, dword [esp + 0x34]
movzx ebx, byte [eax + 1]
inc eax
inc eax
shl ebx, 8
movzx ecx, byte [eax - 2]
or ecx, ebx
movzx ebx, byte [eax]
inc eax
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [eax]
inc eax
shl ebx, 0x18
or ecx, ebx
movzx ebx, byte [eax + 1]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax]
inc eax
inc eax
shl ebx, 8
or ecx, ebx
movzx ebx, byte [eax + 1]
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
lea eax, [edx + 1]
shl ebx, 0x10
or ecx, ebx
mov dword [esp + 0x1c], ecx
movzx ecx, byte [edx]
movzx edx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x18
or ecx, edx
inc eax
movzx edx, byte [eax + 1]
mov dword [esp + 0x10], ecx
movzx ecx, byte [eax]
inc eax
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl edx, 8
or edx, eax
shl edx, 0x10
or ecx, edx
cmp dword [esp + 0x48], 0
mov dword [esp + 0x14], ecx
je 0x4ce567
mov ecx, dword [esp + 0x40]
movzx eax, byte [ecx]
lea edx, [ecx + 1]
movzx ecx, byte [edx]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edx + 1]
mov dword [esp + 0x20], edx
inc edx
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edx + 1]
inc edx
shl ecx, 0x18
inc edx
movzx ebx, byte [edx + 1]
or eax, ecx
movzx ecx, byte [edx]
inc edx
shl ebx, 8
or ecx, ebx
movzx ebx, byte [edx + 2]
inc edx
movzx edx, byte [edx]
shl ebx, 8
or ebx, edx
shl ebx, 0x10
or ecx, ebx
add ebp, 0xfffffff8
js 0x4ce454
lea edx, [ebp + 8]
shr edx, 3
mov dword [esp + 0x44], edx
neg edx
lea edx, [ebp + edx*8]
mov dword [esp + 0x38], edx
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
inc esi
shl ebx, 8
or edx, ebx
movzx ebx, byte [esi + 1]
inc esi
shl ebx, 0x10
or edx, ebx
movzx ebx, byte [esi + 1]
inc esi
shl ebx, 0x18
or edx, ebx
movzx ebx, byte [esi + 1]
inc esi
movzx ebp, byte [esi + 1]
inc esi
shl ebp, 8
or ebx, ebp
movzx ebp, byte [esi + 1]
inc esi
shl ebp, 0x10
or ebx, ebp
movzx ebp, byte [esi + 1]
inc esi
shl ebp, 0x18
or ebx, ebp
xor edx, eax
mov eax, dword [esp + 0x3c]
xor edx, dword [esp + 0x18]
xor ebx, ecx
xor ebx, dword [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x30]
push ecx
inc esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
call fcn.004dc040
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x1c]
inc edi
mov byte [edi - 1], al
inc edi
mov edx, eax
shr edx, 8
mov byte [edi - 1], dl
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
mov ecx, dword [esp + 0x38]
xor ecx, dword [esp + 0x20]
inc edi
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
inc edi
mov byte [edi], cl
inc edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
mov edx, ecx
shr edx, 0x18
mov byte [edi], dl
add esp, 0xc
inc edi
sub dword [esp + 0x44], 1
jne 0x4ce390
mov ebp, dword [esp + 0x38]
cmp ebp, 0xfffffff8
je 0x4ce527
lea esi, [esi + ebp + 8]
add ebp, 7
xor ebx, ebx
xor edx, edx
cmp ebp, 7
ja case.default.0x4ce46d
jmp dword [ebp*4 + 0x4ce7cc]
movzx ebx, byte [esi - 1]
dec esi
shl ebx, 0x18
movzx edx, byte [esi - 1]
dec esi
shl edx, 0x10
or ebx, edx
movzx edx, byte [esi - 1]
dec esi
shl edx, 8
or ebx, edx
movzx edx, byte [esi - 1]
dec esi
or ebx, edx
movzx edx, byte [esi - 1]
dec esi
shl edx, 0x18
movzx ebp, byte [esi - 1]
dec esi
shl ebp, 0x10
or edx, ebp
movzx ebp, byte [esi - 1]
dec esi
shl ebp, 8
or edx, ebp
movzx esi, byte [esi - 1]
or edx, esi
xor edx, eax
mov eax, dword [esp + 0x3c]
xor edx, dword [esp + 0x18]
xor ebx, ecx
xor ebx, dword [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
call fcn.004dc040
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x1c]
inc edi
mov byte [edi - 1], al
mov edx, eax
shr edx, 8
mov byte [edi], dl
inc edi
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
mov ecx, dword [esp + 0x38]
xor ecx, dword [esp + 0x20]
inc edi
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
inc edi
mov byte [edi], cl
inc edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
mov edx, ecx
add esp, 0xc
shr edx, 0x18
mov byte [edi + 1], dl
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
mov byte [edx], al
mov edx, eax
shr edx, 8
mov byte [esi], dl
inc esi
mov edx, eax
shr edx, 0x10
mov byte [esi], dl
inc esi
shr eax, 0x18
mov byte [esi], al
inc esi
mov byte [esi], cl
inc esi
mov eax, ecx
shr eax, 8
mov byte [esi], al
inc esi
mov edx, ecx
shr edx, 0x10
pop edi
mov byte [esi], dl
shr ecx, 0x18
mov byte [esi + 1], cl
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x40]
movzx ebx, byte [eax]
movzx ecx, byte [eax + 1]
inc eax
movzx edx, byte [eax + 1]
mov dword [esp + 0x20], eax
inc eax
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
inc eax
shl edx, 0x10
or ebx, edx
shl ecx, 0x18
inc eax
movzx edx, byte [eax + 1]
or ebx, ecx
movzx ecx, byte [eax]
inc eax
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl edx, 8
or edx, eax
shl edx, 0x10
lea eax, [ebp - 8]
or ecx, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], eax
test eax, eax
jle 0x4ce6a9
lea ecx, [eax - 1]
shr ecx, 3
inc ecx
mov dword [esp + 0x24], ecx
neg ecx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x38], ecx
movzx ebp, byte [esi]
movzx edx, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
shl edx, 8
or ebp, edx
shl eax, 0x10
or ebp, eax
movzx eax, byte [esi + 1]
shl ecx, 0x18
or ebp, ecx
inc esi
movzx ecx, byte [esi + 1]
inc esi
mov edx, ebp
xor edx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x28], edx
movzx edx, byte [esi]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov edx, dword [esp + 0x3c]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x48], eax
xor eax, dword [esp + 0x14]
push 0
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0x30]
push eax
inc esi
call fcn.004dc040
mov ecx, dword [esp + 0x50]
xor ecx, dword [esp + 0x38]
mov eax, ebx
xor eax, dword [esp + 0x34]
xor ecx, dword [esp + 0x28]
xor eax, dword [esp + 0x24]
inc edi
mov byte [edi - 1], al
mov edx, eax
shr edx, 8
mov byte [edi], dl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
inc edi
shr eax, 0x18
mov byte [edi], al
inc edi
mov byte [edi], cl
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x54]
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
shr ecx, 0x18
mov byte [edi], cl
add esp, 0xc
inc edi
sub dword [esp + 0x24], 1
mov ebx, ebp
mov dword [esp + 0x44], eax
jne 0x4ce5d7
mov ecx, eax
mov eax, dword [esp + 0x38]
cmp eax, 0xfffffff8
je 0x4ce78c
movzx ebp, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
shl ecx, 8
or ebp, ecx
inc esi
shl edx, 0x10
shl eax, 0x18
or ebp, edx
or ebp, eax
movzx eax, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
mov ecx, ebp
xor ecx, dword [esp + 0x10]
shl edx, 8
mov dword [esp + 0x28], ecx
movzx ecx, byte [esi + 2]
or eax, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or ecx, edx
shl ecx, 0x10
or eax, ecx
mov dword [esp + 0x48], eax
xor eax, dword [esp + 0x14]
push 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004dc040
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
xor ebx, dword [esp + 0x34]
xor eax, dword [esp + 0x38]
xor ebx, dword [esp + 0x24]
xor eax, dword [esp + 0x28]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0xc
cmp ecx, 7
ja case.default.0x4ce743
jmp dword [ecx*4 + 0x4ce7ec]
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 [esp + 0x48]
mov ebx, ebp
mov dword [esp + 0x44], eax
mov ecx, eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov byte [edx], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ebx, 0x18
mov byte [eax], bl
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
pop edi
mov edx, ecx
inc eax
pop esi
shr edx, 0x10
shr ecx, 0x18
pop ebp
mov byte [eax], dl
mov byte [eax + 1], cl
pop ebx
add esp, 0x20
ret