Function at 0x4ecaf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x11c
push 0xffffffffffffffff
push 0x640a2b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp + 0x118], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x128]
mov esi, dword [ebp + 0x124]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x18], edx
test dl, 3
jne 0x4ece94
test edx, edx
je 0x4ece94
mov ebx, 0x674620
lea ecx, [ebx + 2]
lea ebx, [ebx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4ecb60
sub ebx, ecx
mov dword [ebp - 0x10], edi
sar ebx, 1
cmp dword [edi + 0x14], 8
jb 0x4ecb7d
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
test edx, edx
je 0x4ecc02
push 0x100
lea eax, [ebp]
push 0
push eax
call fcn.004b40a0
mov ecx, 0x674620
mov dword [ebp - 0x14], 0x100
lea edx, [ebx*2 + 0x674620]
add esp, 0xc
cmp edx, ecx
je 0x4ecbcc
nop
movzx eax, word [ecx]
cmp ax, word [ebp - 0x14]
jae 0x4ecde6
movzx eax, al
add ecx, 2
mov byte [ebp + eax], 1
cmp ecx, edx
jne 0x4ecbb0
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
mov eax, dword [ebp - 0x18]
lea edx, [ebx + eax*2]
cmp ebx, edx
jae 0x4ecbff
jmp 0x4ecbe0
movzx eax, word [ecx]
cmp ax, word [ebp - 0x14]
jae 0x4ece48
cmp byte [ebp + eax], 0
je 0x4ece48
add ecx, 2
cmp ecx, edx
jb 0x4ecbe0
mov edx, dword [ebp - 0x18]
cmp dword [edi + 0x14], 8
jb 0x4ecc0a
mov edi, dword [edi]
lea eax, [edi + edx*2]
mov dword [ebp + 0x110], 0
mov ebx, edx
mov dword [ebp - 0x10], eax
shr ebx, 2
mov dword [ebp + 0x114], 0xf
mov byte [ebp + 0x100], 0
lea eax, [edx + edx*2]
mov dword [ebp - 4], 0
shr eax, 2
lea ecx, [ebp + 0x100]
dec ebx
push eax
mov dword [ebp - 0x1c], ebx
call fcn.004eeab0
test ebx, ebx
je 0x4ecceb
mov esi, ebx
jmp 0x4ecc60
movzx eax, word [edi + 2]
movzx ebx, word [eax*2 + 0x6ef652]
movzx eax, word [edi + 4]
movzx eax, word [eax*2 + 0x6ef652]
mov dword [ebp - 0x14], eax
movzx eax, word [edi]
mov cl, byte [eax*2 + 0x6ef652]
mov al, bl
shr al, 4
shl cl, 2
and al, 3
add cl, al
movzx eax, cl
lea ecx, [ebp + 0x100]
push eax
call fcn.004b1b33
mov al, byte [ebp - 0x14]
lea ecx, [ebp + 0x100]
shr al, 2
and al, 0xf
shl bl, 4
xor al, bl
movzx eax, al
push eax
call fcn.004b1b33
movzx eax, word [edi + 6]
mov ecx, dword [ebp - 0x14]
shl cl, 6
add cl, byte [eax*2 + 0x6ef652]
movzx eax, cl
lea ecx, [ebp + 0x100]
push eax
call fcn.004b1b33
add edi, 8
sub esi, 1
jne 0x4ecc60
mov esi, dword [ebp - 0x20]
movzx eax, word [edi + 2]
movzx edx, word [eax*2 + 0x6ef652]
movzx eax, word [edi]
mov dword [ebp - 0x1c], edx
mov cl, byte [eax*2 + 0x6ef652]
mov al, dl
shr al, 4
shl cl, 2
and al, 3
add cl, al
movzx eax, cl
lea ecx, [ebp + 0x100]
push eax
call fcn.004b1b33
add edi, 4
cmp edi, dword [ebp - 0x10]
je 0x4ecd7e
movzx eax, word [edi]
cmp eax, 0x3d
je 0x4ecd7e
movzx ebx, word [eax*2 + 0x6ef652]
mov ecx, dword [ebp - 0x1c]
mov al, bl
shr al, 2
and al, 0xf
shl cl, 4
xor al, cl
lea ecx, [ebp + 0x100]
movzx eax, al
push eax
call fcn.004b1b33
add edi, 2
cmp edi, dword [ebp - 0x10]
je 0x4ecd7e
movzx eax, word [edi]
cmp eax, 0x3d
je 0x4ecd7e
shl bl, 6
lea ecx, [ebp + 0x100]
add bl, byte [eax*2 + 0x6ef652]
movzx eax, bl
push eax
call fcn.004b1b33
mov eax, dword [ebp + 0x100]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp + 0x104]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x108]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x110]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x114]
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x118]
xor ecx, ebp
call fcn.004b2558
lea esp, [ebp + 0x11c]
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov ecx, edx
mov eax, dword [ebp - 0x18]
lea eax, [edx + eax*2]
mov dword [ebp - 0x1c], eax
cmp edx, eax
jae 0x4ece36
mov dword [ebp - 0x14], 0x41
nop
movzx eax, word [ecx]
mov esi, ebx
mov dword [ebp - 0x24], eax
mov edx, 0x674620
test ebx, ebx
je 0x4ece3e
cmp word [ebp - 0x14], ax
je 0x4ece2e
cmp esi, 1
je 0x4ece3e
movzx eax, word [edx + 2]
add edx, 2
dec esi
cmp ax, word [ebp - 0x24]
jne 0x4ece17
test edx, edx
je 0x4ece3e
add ecx, 2
cmp ecx, dword [ebp - 0x1c]
jb 0x4ece00
mov esi, dword [ebp - 0x20]
or ecx, 0xffffffff
jmp 0x4ece4c
sub ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
sar ecx, 1
jmp 0x4ece4c
sub ecx, ebx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4ecbff
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4ece5f
mov eax, dword [edi]
lea ebx, [ecx + ecx]
cmp word [ebx + eax], 0x3d
jne 0x4ece94
mov edx, dword [ebp - 0x18]
lea eax, [edx - 1]
cmp ecx, eax
je 0x4ecc02
lea eax, [edx - 2]
cmp ecx, eax
jne 0x4ece94
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4ece88
mov eax, dword [edi]
cmp word [ebx + eax + 2], 0x3d
je 0x4ecc02
call fcn.004eceb0
push eax
mov ecx, esi
call fcn.004b211f
jmp 0x4ecdc1