Function at 0x4fb218
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x4fb233
cmp dword [ebp - 4], 0
jne 0x4fb23d
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4fb43f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
test eax, eax
jns 0x4fb24d
add eax, 3
sar eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
and eax, 0x80000003
jns 0x4fb262
dec eax
or eax, 0xfffffffc
inc eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x24], 0xac
mov byte [ebp - 0x25], 0x3c
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x4fb349
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
shl eax, 2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
add eax, 3
mov al, byte [eax]
sub al, byte [ebp - 0x25]
mov byte [ebp - 0x22], al
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
mov al, byte [eax]
sub al, byte [ebp - 0x25]
mov byte [ebp - 0x21], al
mov al, byte [ebp - 0x21]
shl eax, 2
and al, 0xf0
mov dl, byte [ebp - 0x22]
and dl, 0xc
or al, dl
mov dl, byte [ebp - 0x21]
and dl, 3
or al, dl
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x23]
xor al, byte [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
inc eax
mov al, byte [eax]
sub al, byte [ebp - 0x25]
mov byte [ebp - 0x21], al
mov al, byte [ebp - 0x21]
shl eax, 2
and al, 0xf0
mov dl, byte [ebp - 0x22]
shl edx, 2
and dl, 0xc
or al, dl
mov dl, byte [ebp - 0x21]
and dl, 3
or al, dl
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x23]
xor al, byte [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
add eax, 2
mov al, byte [eax]
sub al, byte [ebp - 0x25]
mov byte [ebp - 0x21], al
mov al, byte [ebp - 0x22]
shl eax, 2
and al, 0xc0
or al, byte [ebp - 0x21]
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x23]
xor al, byte [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
inc dword [ebp - 0xc]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x30]
jne 0x4fb284
cmp dword [ebp - 0x18], 2
jne 0x4fb3a0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
dec eax
mov al, byte [eax]
sub al, byte [ebp - 0x25]
mov byte [ebp - 0x22], al
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
sub eax, 2
mov al, byte [eax]
sub al, byte [ebp - 0x25]
mov byte [ebp - 0x21], al
mov al, byte [ebp - 0x21]
shl eax, 2
and al, 0xf0
mov dl, byte [ebp - 0x22]
shl edx, 2
and dl, 0xc
or al, dl
mov dl, byte [ebp - 0x21]
and dl, 3
or al, dl
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x23]
xor al, byte [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
inc dword [ebp - 0xc]
jmp 0x4fb430
cmp dword [ebp - 0x18], 3
jne 0x4fb430
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
dec eax
mov al, byte [eax]
sub al, byte [ebp - 0x25]
mov byte [ebp - 0x22], al
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
sub eax, 3
mov al, byte [eax]
sub al, byte [ebp - 0x25]
mov byte [ebp - 0x21], al
mov al, byte [ebp - 0x21]
shl eax, 2
and al, 0xf0
mov dl, byte [ebp - 0x22]
and dl, 0xc
or al, dl
mov dl, byte [ebp - 0x21]
and dl, 3
or al, dl
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x23]
xor al, byte [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
sub eax, 2
mov al, byte [eax]
sub al, byte [ebp - 0x25]
mov byte [ebp - 0x21], al
mov al, byte [ebp - 0x21]
shl eax, 2
and al, 0xf0
mov dl, byte [ebp - 0x22]
shl edx, 2
and dl, 0xc
or al, dl
mov dl, byte [ebp - 0x21]
and dl, 3
or al, dl
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x23]
xor al, byte [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov byte [edx], al
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret