Function at 0x47c328
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x4d3ac1
call fcn.004cbc30
mov esi, dword [ebp + 0xc]
xor eax, eax
xor edi, edi
cmp esi, edi
setne al
cmp eax, edi
jne 0x47c34e
mov eax, 0x80004005
jmp 0x47c862
xor eax, eax
cmp dword [ebp + 0x10], edi
setne al
cmp eax, edi
je 0x47c344
push 6
pop eax
cmp eax, dword [ebp + 8]
sbb eax, eax
neg eax
je 0x47c344
cmp byte [esi], 0x51
jne 0x47c344
cmp byte [esi + 1], 0x44
jne 0x47c344
sub dword [ebp + 8], 6
add esi, 4
movzx ebx, word [esi]
inc esi
inc esi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], edi
call sym.QQProtectUpd.exe_int___cdecl_Util::Data::CreateTXData_struct_ITXData___
mov eax, dword [ebp - 0x10]
pop ecx
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x47c3ab
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x47c344
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x47c344
mov ecx, dword [eax]
movzx edi, bx
push edi
push eax
mov dword [ebp - 0x54], edi
call dword [ecx + 0x128]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
test eax, eax
jne 0x47c3d3
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
jmp 0x47c3a1
and dword [ebp - 0x24], 0
test edi, edi
jbe 0x47c841
cmp dword [ebp + 8], 7
jl 0x47c868
mov al, byte [esi]
mov ecx, dword [ebp + 8]
sub dword [ebp + 8], 3
inc esi
mov byte [ebp + 0xf], al
movzx eax, word [esi]
movzx ebx, ax
inc esi
lea edx, [ebx + 4]
inc esi
cmp dword [ebp + 8], edx
jl 0x47c895
lea edi, [ebx + esi]
mov edx, dword [edi]
lea edx, [ebx + edx + 7]
cmp edx, ecx
mov dword [ebp - 0x28], edx
ja 0x47c8c0
mov cl, ah
xor cl, al
test ax, ax
jbe 0x47c43a
mov eax, esi
mov dword [ebp - 0x28], ebx
mov dl, byte [eax]
not dl
xor dl, cl
mov byte [eax], dl
inc eax
dec dword [ebp - 0x28]
jne 0x47c42c
push ebx
push esi
call fcn.004a21a4
sub dword [ebp + 8], ebx
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov esi, edi
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::constructor_void_
push ebx
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call sym.QQProtectUpd.exe_bool___cdecl_Util::Convert::GBKToUnicode_class_CTXStringW___char_const___int_
movzx eax, al
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
mov eax, ecx
test eax, eax
je 0x47c928
mov ebx, dword [esi]
sub dword [ebp + 8], 4
add esi, 4
cmp ebx, dword [ebp + 8]
ja 0x47c8e0
test ebx, ebx
jbe case.0x47c4c8.8
cmp byte [ebp + 0xf], 7
je 0x47c4a1
cmp byte [ebp + 0xf], 6
jne 0x47c4ba
mov al, bh
xor al, bl
xor edi, edi
test ebx, ebx
jbe 0x47c4ba
mov cl, byte [edi + esi]
not cl
xor cl, al
mov byte [edi + esi], cl
inc edi
cmp edi, ebx
jb 0x47c4ab
movzx eax, byte [ebp + 0xf]
dec eax
cmp eax, 9
ja case.0x47c4c8.8
jmp dword [eax*4 + 0x47c954]
xor eax, eax
cmp ebx, 4
sete al
test eax, eax
je 0x47c928
mov eax, dword [esi]
sub dword [ebp + 8], 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
add esi, 4
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__
mov edi, dword [ebx]
push dword [ebp + 0xc]
mov ecx, eax
mov byte [ebp - 4], 2
add edi, 0xcc
call sym.QQProtectUpd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push ebx
call dword [edi]
lea ecx, [ebp - 0x2c]
jmp 0x47c645
xor eax, eax
cmp ebx, 1
sete al
test eax, eax
je 0x47c928
mov al, byte [esi]
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x14]
inc esi
dec dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__
mov edi, dword [ebx]
push dword [ebp - 0x30]
mov ecx, eax
mov byte [ebp - 4], 3
add edi, 0xd0
call sym.QQProtectUpd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push ebx
call dword [edi]
lea ecx, [ebp - 0x34]
jmp 0x47c645
xor eax, eax
cmp ebx, 2
sete al
test eax, eax
je 0x47c928
movzx eax, word [esi]
sub dword [ebp + 8], 2
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
inc esi
push eax
lea ecx, [ebp - 0x38]
inc esi
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__
mov edi, dword [ebx]
push dword [ebp + 0xc]
mov ecx, eax
mov byte [ebp - 4], 4
add edi, 0xd8
call sym.QQProtectUpd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push ebx
call dword [edi]
lea ecx, [ebp - 0x38]
jmp 0x47c645
xor eax, eax
cmp ebx, 4
sete al
test eax, eax
je 0x47c928
mov eax, dword [esi]
sub dword [ebp + 8], 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
add esi, 4
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__
mov edi, dword [ebx]
push dword [ebp + 0xc]
mov ecx, eax
mov byte [ebp - 4], 5
add edi, 0xe0
call sym.QQProtectUpd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push ebx
call dword [edi]
lea ecx, [ebp - 0x3c]
jmp 0x47c645
xor eax, eax
cmp ebx, 4
sete al
test eax, eax
je 0x47c928
mov eax, dword [esi]
sub dword [ebp + 8], 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
add esi, 4
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__
mov edi, dword [ebx]
push dword [ebp + 0xc]
mov ecx, eax
mov byte [ebp - 4], 6
add edi, 0xe4
call sym.QQProtectUpd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push ebx
call dword [edi]
lea ecx, [ebp - 0x40]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::destructor_void_
jmp case.0x47c4c8.8
lea ecx, [ebp - 0x1c]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringA::constructor_void_
push ebx
lea eax, [ebp - 0x1c]
push esi
push eax
mov byte [ebp - 4], 7
call sym.QQProtectUpd.exe_bool___cdecl_Util::Convert::GBKToUnicode_class_CTXStringW___char_const___int_
movzx eax, al
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
mov eax, ecx
test eax, eax
je 0x47c91c
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x28], edi
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__
mov dword [ebp + 0xc], eax
mov edi, dword [edi]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
add edi, 0xe8
call sym.QQProtectUpd.exe_public:_wchar_t____thiscall_CTXStringW::GetBSTR_void_const
mov ecx, dword [ebp + 0xc]
push eax
call sym.QQProtectUpd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push dword [ebp - 0x28]
call dword [edi]
lea ecx, [ebp - 0x44]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::destructor_void_
sub dword [ebp + 8], ebx
lea ecx, [ebp - 0x1c]
add esi, ebx
mov byte [ebp - 4], 1
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp case.0x47c4c8.8
push ebx
push esi
lea ecx, [ebp - 0x18]
call fcn.0043f060
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 0xa
jne 0x47c70a
lea eax, [ebp - 0x18]
push eax
call sym.QQProtectUpd.exe_int___cdecl_Util::Data::CreateTXBuffer_struct_ITXBuffer___
pop ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
add edi, 0xec
call sym.QQProtectUpd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push dword [ebp + 0xc]
call dword [edi]
lea ecx, [ebp - 0x48]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::destructor_void_
mov eax, dword [ebp - 0x18]
sub dword [ebp + 8], ebx
add esi, ebx
test eax, eax
mov byte [ebp - 4], 1
je case.0x47c4c8.8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x18], 0
jmp case.0x47c4c8.8
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
mov byte [ebp - 4], 0xb
call fcn.0047c328
xor ecx, ecx
add esp, 0xc
test eax, eax
setge cl
mov eax, ecx
test eax, eax
je 0x47c939
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x28], edi
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__
mov edi, dword [edi]
push dword [ebp + 0xc]
mov ecx, eax
mov byte [ebp - 4], 0xc
add edi, 0xf8
call sym.QQProtectUpd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push dword [ebp - 0x28]
call dword [edi]
lea ecx, [ebp - 0x4c]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::destructor_void_
mov eax, dword [ebp + 0xc]
jmp 0x47c813
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
mov byte [ebp - 4], 0xd
call fcn.0047c97c
xor ecx, ecx
add esp, 0xc
test eax, eax
setge cl
mov eax, ecx
test eax, eax
je 0x47c94c
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp + 0xc], edi
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__
mov edi, dword [edi]
push dword [ebp - 0x20]
mov ecx, eax
mov byte [ebp - 4], 0xe
add edi, 0x100
call sym.QQProtectUpd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push dword [ebp + 0xc]
call dword [edi]
lea ecx, [ebp - 0x50]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXBSTR::destructor_void_
mov eax, dword [ebp - 0x20]
sub dword [ebp + 8], ebx
add esi, ebx
test eax, eax
mov byte [ebp - 4], 1
je case.0x47c4c8.8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x54]
jb 0x47c3df
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x47c860
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
call fcn.004cbd08
ret
lea eax, [ebp + 0xc]
push eax
push 0x4dd0ec
push str.Assert
push 2
push str.Misc::Data::ConvertQQDocToTXData
mov dword [ebp + 0xc], str.nLen_Too_Short_
push 0x4c
push str.....SourceCommonDataDataAdpter.cpp
call fcn.0042b380
add esp, 0x1c
jmp 0x47c841
movzx eax, ax
add eax, 4
cmp dword [ebp + 8], eax
jge 0x47c841
lea eax, [ebp + 0xc]
push eax
push 0x4dd0ec
push str.Assert
push 2
push str.Misc::Data::ConvertQQDocToTXData
mov dword [ebp + 0xc], str.Doc_Too_Short_
push 0x59
jmp 0x47c886
lea eax, [ebp + 0xc]
push eax
push 0x4dd0ec
push str.Assert
push 2
push str.Misc::Data::ConvertQQDocToTXData
mov dword [ebp + 0xc], str.Doc_Too_Short_
push 0x5d
jmp 0x47c886
lea eax, [ebp + 0xc]
push eax
push 0x4dd0ec
push str.Assert
push 2
push str.Misc::Data::ConvertQQDocToTXData
push 0x74
push str.....SourceCommonDataDataAdpter.cpp
mov dword [ebp + 0xc], str.No_QQ_Data
call fcn.0042b380
add esp, 0x1c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x47c841
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x47c3c8
mov eax, dword [ebp + 0xc]
test eax, eax
mov byte [ebp - 4], 1
je 0x47c928
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x47c928
mov eax, dword [ebp - 0x20]
jmp 0x47c93c