Function at 0x4bebec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4bebf5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405294
xor eax, eax
push ebp
push 0x4bee2a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404eac
mov eax, dword [ebp - 8]
test eax, eax
je 0x4bec37
sub eax, 4
mov eax, dword [eax]
and eax, 0x80000001
jns 0x4bec43
dec eax
or eax, 0xfffffffe
inc eax
dec eax
je 0x4bedfa
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004be7b4
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00404eac
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404eac
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4bec77
sub eax, 4
mov eax, dword [eax]
mov esi, eax
sar esi, 1
jns 0x4bec80
adc esi, 0
cmp esi, 1
jl 0x4bedef
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4bec95
sub eax, 4
mov eax, dword [eax]
sar eax, 1
jns 0x4bec9c
adc eax, 0
cmp esi, eax
je 0x4becab
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00404eac
lea eax, [ebp - 0x14]
call fcn.00404e14
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4becbf
sub eax, 4
mov eax, dword [eax]
mov edi, eax
sar edi, 1
jns 0x4becc8
adc edi, 0
test edi, edi
jle 0x4bede6
mov ebx, 1
mov edx, 0x4bee38
lea eax, [ebp - 0x24]
call fcn.004036c4
lea eax, [ebp - 0x28]
mov edx, ebx
add edx, edx
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
mov cl, 2
call fcn.00403694
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x2c]
call fcn.004036c4
lea eax, [ebp - 0x28]
mov edx, ebx
add edx, edx
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov cl, 3
call fcn.00403694
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x20]
call fcn.00405078
mov eax, dword [ebp - 0x20]
call fcn.00409e34
mov byte [ebp - 0x19], al
mov edx, 0x4bee38
lea eax, [ebp - 0x24]
call fcn.004036c4
lea eax, [ebp - 0x28]
mov edx, esi
add edx, edx
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
mov cl, 2
call fcn.00403694
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x2c]
call fcn.004036c4
lea eax, [ebp - 0x28]
mov edx, esi
add edx, edx
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov cl, 3
call fcn.00403694
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
call fcn.00405078
mov eax, dword [ebp - 0x30]
call fcn.00409e34
xor al, byte [ebp - 0x19]
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0x38]
movzx edx, byte [ebp - 0x1a]
call fcn.00404ffc
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.004be7b4
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
call fcn.004050e0
inc ebx
dec edi
jne 0x4becd5
dec esi
test esi, esi
jne 0x4bec89
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004be860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bee31
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404e38
lea eax, [ebp - 0x20]
call fcn.00404e14
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404e38
ret