Function at 0x4ff098
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x599ecd
call fcn.00584f68
mov esi, dword [ebp + 0xc]
xor eax, eax
xor edi, edi
cmp esi, edi
setne al
cmp eax, edi
jne 0x4ff0be
mov eax, 0x80004005
jmp 0x4ff5d2
xor eax, eax
cmp dword [ebp + 0x10], edi
setne al
cmp eax, edi
je 0x4ff0b4
push 6
pop eax
cmp eax, dword [ebp + 8]
sbb eax, eax
neg eax
je 0x4ff0b4
cmp byte [esi], 0x51
jne 0x4ff0b4
cmp byte [esi + 1], 0x44
jne 0x4ff0b4
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.txupd.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 0x4ff11b
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x4ff0b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4ff0b4
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 0x4ff143
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
jmp 0x4ff111
and dword [ebp - 0x24], 0
test edi, edi
jbe 0x4ff5b1
cmp dword [ebp + 8], 7
jl 0x4ff5d8
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 0x4ff605
lea edi, [ebx + esi]
mov edx, dword [edi]
lea edx, [ebx + edx + 7]
cmp edx, ecx
mov dword [ebp - 0x28], edx
ja 0x4ff630
mov cl, ah
xor cl, al
test ax, ax
jbe 0x4ff1aa
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 0x4ff19c
push ebx
push esi
call fcn.005264a3
sub dword [ebp + 8], ebx
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov esi, edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push ebx
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call sym.txupd.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 0x4ff698
mov ebx, dword [esi]
sub dword [ebp + 8], 4
add esi, 4
cmp ebx, dword [ebp + 8]
ja 0x4ff650
test ebx, ebx
jbe case.0x4ff238.8
cmp byte [ebp + 0xf], 7
je 0x4ff211
cmp byte [ebp + 0xf], 6
jne 0x4ff22a
mov al, bh
xor al, bl
xor edi, edi
test ebx, ebx
jbe 0x4ff22a
mov cl, byte [edi + esi]
not cl
xor cl, al
mov byte [edi + esi], cl
inc edi
cmp edi, ebx
jb 0x4ff21b
movzx eax, byte [ebp + 0xf]
dec eax
cmp eax, 9
ja case.0x4ff238.8
jmp dword [eax*4 + 0x4ff6c4]
xor eax, eax
cmp ebx, 4
sete al
test eax, eax
je 0x4ff698
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.txupd.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.txupd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push ebx
call dword [edi]
lea ecx, [ebp - 0x2c]
jmp 0x4ff3b5
xor eax, eax
cmp ebx, 1
sete al
test eax, eax
je 0x4ff698
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.txupd.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.txupd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push ebx
call dword [edi]
lea ecx, [ebp - 0x34]
jmp 0x4ff3b5
xor eax, eax
cmp ebx, 2
sete al
test eax, eax
je 0x4ff698
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.txupd.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.txupd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push ebx
call dword [edi]
lea ecx, [ebp - 0x38]
jmp 0x4ff3b5
xor eax, eax
cmp ebx, 4
sete al
test eax, eax
je 0x4ff698
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.txupd.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.txupd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push ebx
call dword [edi]
lea ecx, [ebp - 0x3c]
jmp 0x4ff3b5
xor eax, eax
cmp ebx, 4
sete al
test eax, eax
je 0x4ff698
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.txupd.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.txupd.exe_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const
push eax
push ebx
call dword [edi]
lea ecx, [ebp - 0x40]
call sym.txupd.exe_public:_void___thiscall_CTXBSTR::destructor_void_
jmp case.0x4ff238.8
lea ecx, [ebp - 0x1c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push ebx
lea eax, [ebp - 0x1c]
push esi
push eax
mov byte [ebp - 4], 7
call sym.txupd.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 0x4ff68c
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x28], edi
call sym.txupd.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.txupd.exe_public:_wchar_t____thiscall_CTXStringW::GetBSTR_void_const
mov ecx, dword [ebp + 0xc]
push eax
call sym.txupd.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.txupd.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.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp case.0x4ff238.8
push ebx
push esi
lea ecx, [ebp - 0x18]
call fcn.00472ab0
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.txupd.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 0x4ff47a
lea eax, [ebp - 0x18]
push eax
call sym.txupd.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.txupd.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.txupd.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.0x4ff238.8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x18], 0
jmp case.0x4ff238.8
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
mov byte [ebp - 4], 0xb
call fcn.004ff098
xor ecx, ecx
add esp, 0xc
test eax, eax
setge cl
mov eax, ecx
test eax, eax
je 0x4ff6a9
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x28], edi
call sym.txupd.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.txupd.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.txupd.exe_public:_void___thiscall_CTXBSTR::destructor_void_
mov eax, dword [ebp + 0xc]
jmp 0x4ff583
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
mov byte [ebp - 4], 0xd
call fcn.004ff6ec
xor ecx, ecx
add esp, 0xc
test eax, eax
setge cl
mov eax, ecx
test eax, eax
je 0x4ff6bc
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp + 0xc], edi
call sym.txupd.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.txupd.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.txupd.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.0x4ff238.8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x54]
jb 0x4ff14f
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 0x4ff5d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
call fcn.00585040
ret
lea eax, [ebp + 0xc]
push eax
push 0x5a48f0
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.00452350
add esp, 0x1c
jmp 0x4ff5b1
movzx eax, ax
add eax, 4
cmp dword [ebp + 8], eax
jge 0x4ff5b1
lea eax, [ebp + 0xc]
push eax
push 0x5a48f0
push str.Assert
push 2
push str.Misc::Data::ConvertQQDocToTXData
mov dword [ebp + 0xc], str.Doc_Too_Short_
push 0x59
jmp 0x4ff5f6
lea eax, [ebp + 0xc]
push eax
push 0x5a48f0
push str.Assert
push 2
push str.Misc::Data::ConvertQQDocToTXData
mov dword [ebp + 0xc], str.Doc_Too_Short_
push 0x5d
jmp 0x4ff5f6
lea eax, [ebp + 0xc]
push eax
push 0x5a48f0
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.00452350
add esp, 0x1c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x4ff5b1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x4ff138
mov eax, dword [ebp + 0xc]
test eax, eax
mov byte [ebp - 4], 1
je 0x4ff698
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4ff698
mov eax, dword [ebp - 0x20]
jmp 0x4ff6ac