Function at 0x4b4814
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
xor eax, eax
push ebp
push 0x4b4b8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x29], 0
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [0x4ceb38]
call fcn.004cedc4
test al, al
je 0x4b4b63
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [0x4ceb38]
call fcn.004cede0
test eax, eax
jns 0x4b4885
add eax, 7
sar eax, 3
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x24]
jne 0x4b4b63
lea eax, [ebp - 0x40]
call fcn.00495488
lea eax, [ebp - 0x40]
mov ecx, ebx
mov edx, edi
call fcn.00497c4c
mov eax, dword [ebp - 0x40]
call fcn.00495120
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
call fcn.004954ec
cmp dword [ebp - 0x34], 0
je 0x4b4b63
dec dword [ebp - 0x34]
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x496de0]
call fcn.00406c9c
add esp, 4
push ebx
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call fcn.004b42b4
test al, al
je 0x4b4b63
mov eax, dword [ebp - 0x30]
add eax, esi
add eax, 2
cmp eax, dword [ebp - 0x38]
jg 0x4b4b63
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x38]
cmp byte [eax + edx - 1], 0xbc
jne 0x4b4b63
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x30]
dec eax
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x496de0]
call fcn.00406c9c
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x496de0]
call fcn.00406c9c
add esp, 4
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x30]
dec ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040312c
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
lea eax, [edx + eax - 1]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
call fcn.0040312c
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x30]
dec ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
call fcn.004b33bc
mov eax, dword [ebp - 0x38]
add eax, eax
add eax, eax
add eax, eax
sub eax, dword [ebp - 0x34]
test eax, eax
jle 0x4b49e1
mov edx, 1
mov ecx, 8
sub ecx, edx
mov ebx, 1
shl ebx, cl
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx]
and ebx, ecx
jne 0x4b4b63
inc edx
dec eax
jne 0x4b49c1
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x30]
sub eax, 2
test eax, eax
jl 0x4b4a02
inc eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + edx]
mov ebx, dword [ebp - 8]
xor byte [ebx + edx], cl
inc edx
dec eax
jne 0x4b49f1
mov eax, dword [ebp - 0x38]
add eax, eax
add eax, eax
add eax, eax
sub eax, dword [ebp - 0x34]
test eax, eax
jle 0x4b4a2d
mov edx, 1
mov ecx, 8
sub ecx, edx
mov bl, 1
shl bl, cl
not bl
mov ecx, dword [ebp - 8]
and byte [ecx], bl
inc edx
dec eax
jne 0x4b4a17
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x30]
sub eax, esi
sub eax, 3
test eax, eax
jl 0x4b4a50
inc eax
xor edx, edx
mov ecx, dword [ebp - 8]
cmp byte [ecx + edx], 0
jne 0x4b4b63
inc edx
dec eax
jne 0x4b4a3f
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x30]
sub eax, esi
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 2], 1
jne 0x4b4b63
push esi
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x496de0]
call fcn.00406c9c
add esp, 4
mov ebx, dword [ebp - 0x30]
add ebx, 8
mov eax, ebx
add eax, esi
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x496de0]
call fcn.00406c9c
add esp, 4
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x30]
sub eax, esi
mov edx, dword [ebp - 8]
lea eax, [edx + eax - 1]
mov edx, dword [ebp - 0x14]
mov ecx, esi
call fcn.0040312c
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, 8
call fcn.00403a34
mov eax, dword [ebp - 0x18]
lea edx, [eax + 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
call fcn.0040312c
test esi, esi
jle 0x4b4aeb
mov eax, dword [ebp - 0x18]
lea edx, [eax + ebx]
mov eax, dword [ebp - 0x14]
mov ecx, esi
call fcn.0040312c
push 0
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x4ceb38]
call fcn.004cec64
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x4b4b3f
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [esi + 8]
add ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
call fcn.004ceeb4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
call fcn.004ceebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4b46
mov eax, dword [ebp - 0x3c]
call fcn.00404468
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4b93
lea eax, [ebp - 0x1c]
call fcn.004053e8
lea eax, [ebp - 0x18]
mov edx, dword [0x496de0]
mov ecx, 6
call fcn.00406130
ret