Function at 0x477f68
Capabilities:
Encode data using xor

Disassembly:
push 0x20
mov eax, 0x4d35a9
call fcn.004cbc30
mov esi, ecx
push dword [ebp + 0xc]
call sub.MSVCR80.dll_strlen
movzx eax, ax
pop ecx
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.004768e9
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004768e9
movzx eax, word [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004768e9
movzx edi, word [ebp - 0x10]
mov eax, dword [esi]
mov cl, byte [ebp - 0xf]
xor cl, byte [ebp - 0x10]
sub eax, edi
add eax, dword [esi + 4]
xor ebx, ebx
xor edx, edx
cmp edi, ebx
jle 0x477fdc
mov bl, byte [edx + eax]
not bl
xor bl, cl
mov byte [edx + eax], bl
movzx edi, word [ebp - 0x10]
inc edx
cmp edx, edi
jl 0x477fc7
xor ebx, ebx
movzx eax, byte [ebp + 8]
dec eax
cmp eax, 9
ja case.0x477fea.8
jmp dword [eax*4 + 0x4781f0]
xor eax, eax
inc eax
jmp 0x477ff9
push 2
pop eax
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x10]
push eax
push 4
jmp 0x478011
push 4
pop eax
push eax
lea ecx, [ebp + 0x10]
push ecx
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004768e9
mov ecx, eax
call fcn.004768e9
jmp case.0x477fea.8
lea ecx, [ebp - 0x14]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::constructor_void_
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], ebx
call sym.QQProtectUpd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
shr eax, 1
push eax
lea ecx, [ebp + 0x10]
call sym.QQProtectUpd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
lea eax, [ebp - 0x14]
push eax
call sym.QQProtectUpd.exe_bool___cdecl_Util::Convert::UnicodeToGBK_class_CTXStringA___wchar_t_const___int_
movzx eax, al
add esp, 0xc
cmp eax, ebx
lea ecx, [ebp - 0x14]
jne 0x47806b
or dword [ebp - 4], 0xffffffff
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::destructor_void_
jmp case.0x477fea.8
call sym.QQProtectUpd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov dword [ebp - 0x28], ebx
call fcn.004768e9
mov ecx, eax
call fcn.00476947
mov eax, dword [esi]
sub eax, ebx
add eax, dword [esi + 4]
mov cl, bh
xor cl, bl
xor esi, esi
test ebx, ebx
jle 0x4780ad
mov dl, byte [esi + eax]
not dl
xor dl, cl
mov byte [esi + eax], dl
inc esi
cmp esi, ebx
jl 0x47809e
or dword [ebp - 4], 0xffffffff
jmp 0x478104
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::constructor_class_CTXStringA_const__
lea ecx, [ebp - 0x14]
call sym.QQProtectUpd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov dword [ebp - 0x28], ebx
call fcn.004768e9
mov ecx, eax
call fcn.00476947
mov eax, dword [esi]
sub eax, ebx
add eax, dword [esi + 4]
mov cl, bh
xor cl, bl
xor esi, esi
test ebx, ebx
jle 0x478104
mov dl, byte [esi + eax]
not dl
xor dl, cl
mov byte [esi + eax], dl
inc esi
cmp esi, ebx
jl 0x4780f5
lea ecx, [ebp - 0x14]
jmp 0x478061
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
call fcn.0047cdc2
pop ecx
cmp eax, ebx
mov eax, dword [ebp - 0x14]
pop ecx
jl 0x4781dc
cmp eax, ebx
je 0x4781dc
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
push 4
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004768e9
push dword [ebp - 0x1c]
mov ecx, eax
push dword [ebp - 0x24]
call fcn.004768e9
mov eax, dword [ebp - 0x14]
jmp 0x4781dc
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], 2
call fcn.0047ce49
pop ecx
cmp eax, ebx
mov eax, dword [ebp - 0x18]
pop ecx
jl 0x4781dc
cmp eax, ebx
je 0x4781dc
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
push 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004768e9
push dword [ebp - 0x20]
mov ecx, eax
push dword [ebp - 0x28]
call fcn.004768e9
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je case.0x477fea.8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.004cbd08
ret