Function at 0x48763c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x487645
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405268
xor eax, eax
push ebp
push 0x4878fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404db8
lea eax, [ebp - 0xc]
call fcn.00404db8
cmp byte [ebp + 0x10], 0
jne 0x487726
mov eax, dword [ebp - 4]
call fcn.00405078
mov ebx, eax
cmp ebx, 1
jl 0x4876ba
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
cmp al, 0x20
je 0x4876a6
cmp al, 0x23
jne 0x4876b5
lea eax, [ebp - 4]
mov ecx, 1
mov edx, ebx
call fcn.00405318
dec ebx
test ebx, ebx
jne 0x487697
mov eax, dword [ebp - 4]
call fcn.00405078
mov esi, eax
sar esi, 1
jns 0x4876cb
adc esi, 0
test esi, esi
jle 0x48771b
mov ebx, 1
lea eax, [ebp - 0x18]
push eax
mov edx, ebx
add edx, edx
dec edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.004052d8
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x487914
call fcn.004050c4
mov eax, dword [ebp - 0x14]
call fcn.00409720
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404fa0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00405080
inc ebx
dec esi
jne 0x4876d4
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404e50
xor edi, edi
cmp byte [ebp - 5], 0
jne 0x48774f
mov eax, dword [ebp - 4]
call fcn.00405078
mov esi, eax
test esi, esi
jle 0x48774f
mov ebx, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
xor edi, eax
inc ebx
dec esi
jne 0x487741
cmp byte [ebp - 5], 1
jne 0x487776
mov eax, dword [ebp - 4]
call fcn.00405078
mov esi, eax
test esi, esi
jle 0x487776
mov ebx, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
add edi, eax
inc ebx
dec esi
jne 0x487768
cmp byte [ebp - 5], 2
jne 0x48779d
mov eax, dword [ebp - 4]
call fcn.00405078
mov esi, eax
test esi, esi
jle 0x48779d
mov ebx, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
sub edi, eax
inc ebx
dec esi
jne 0x48778f
cmp byte [ebp + 0xc], 0
jne 0x487829
mov eax, dword [ebp - 4]
call fcn.00405078
mov esi, eax
test esi, esi
jle 0x4877e1
mov ebx, 1
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
mov edx, 2
call fcn.004096c8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
call fcn.00405080
mov eax, dword [ebp + 8]
inc ebx
dec esi
jne 0x4877ba
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
mov edx, 2
mov eax, edi
call fcn.004096c8
mov eax, dword [ebp - 0x24]
call fcn.00405078
dec eax
push eax
lea ecx, [ebp - 0x28]
mov edx, 2
mov eax, edi
call fcn.004096c8
mov eax, dword [ebp - 0x28]
mov ecx, 2
pop edx
call fcn.004052d8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
call fcn.00405080
mov eax, dword [ebp + 8]
cmp byte [ebp + 0xc], 1
jne 0x487899
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
mov edx, 2
mov eax, edi
call fcn.004096c8
mov eax, dword [ebp - 0x38]
call fcn.00405078
dec eax
push eax
lea ecx, [ebp - 0x3c]
mov edx, 2
mov eax, edi
call fcn.004096c8
mov eax, dword [ebp - 0x3c]
mov ecx, 2
pop edx
call fcn.004052d8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x487914
call fcn.004050c4
mov eax, dword [ebp - 0x30]
call fcn.00409720
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404fa0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.004050c4
cmp byte [ebp + 0xc], 2
jne 0x4878d9
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov edx, 2
mov eax, edi
call fcn.004096c8
mov eax, dword [ebp - 0x40]
call fcn.00405078
dec eax
push eax
lea ecx, [ebp - 0x44]
mov edx, 2
mov eax, edi
call fcn.004096c8
mov eax, dword [ebp - 0x44]
mov ecx, 2
pop edx
call fcn.004052d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487903
lea eax, [ebp - 0x44]
mov edx, 0xf
call fcn.00404ddc
lea eax, [ebp - 4]
call fcn.00404db8
ret