Function at 0x54dda5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0x10]
call fcn.006a3810
mov edi, dword [ebp + 8]
pop ecx
movzx eax, ax
mov ecx, edi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push 1
push eax
call fcn.0054fe3e
push 2
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.0054fe3e
movzx eax, word [ebp - 4]
mov ecx, edi
push eax
push dword [ebp + 0x10]
call fcn.0054fe3e
mov eax, dword [ebp - 4]
xor esi, esi
mov ebx, dword [edi]
mov edx, eax
shr edx, 8
movzx ecx, ax
xor dl, al
sub ebx, ecx
mov dword [ebp + 8], edx
add ebx, dword [edi + 4]
mov edx, esi
test ecx, ecx
je 0x54de1e
mov ecx, dword [ebp + 8]
mov al, byte [edx + ebx]
not al
xor al, cl
mov byte [edx + ebx], al
inc edx
movzx eax, word [ebp - 4]
cmp edx, eax
jl 0x54de0b
movzx eax, byte [ebp + 0xc]
dec eax
cmp eax, 9
ja case.0x54de2c.8
jmp dword [eax*4 + 0x54dfb9]
push 4
pop eax
push eax
lea ecx, [ebp + 0x14]
mov dword [ebp + 8], eax
push ecx
push eax
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0054fe3e
mov ecx, eax
call fcn.0054fe3e
jmp case.0x54de2c.8
xor eax, eax
inc eax
push eax
mov dword [ebp + 8], eax
lea eax, [ebp + 0x14]
push eax
push 4
jmp 0x54de3f
push 2
pop eax
jmp 0x54de59
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_void_
lea ecx, [ebp + 0x14]
call sym.txupd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
shr eax, 1
lea ecx, [ebp + 0x14]
push eax
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
lea eax, [ebp + 8]
push eax
call sym.txupd.exe_bool___cdecl_Util::Convert::UnicodeToGBK_class_CTXStringA___wchar_t_const___int_
add esp, 0xc
lea ecx, [ebp + 8]
test al, al
je 0x54dedf
call sym.txupd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
mov ebx, eax
mov ecx, edi
lea eax, [ebp + 8]
mov dword [ebp - 0xc], ebx
push eax
push 4
lea eax, [ebp - 0xc]
push eax
call fcn.0054fe3e
mov ecx, eax
call fcn.0054fe1a
mov ecx, dword [edi]
mov edx, ebx
sub ecx, ebx
shr edx, 8
add ecx, dword [edi + 4]
xor dl, bl
test ebx, ebx
jle 0x54dedc
mov al, byte [esi + ecx]
not al
xor al, dl
mov byte [esi + ecx], al
inc esi
cmp esi, ebx
jl 0x54decd
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
jmp case.0x54de2c.8
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_class_CTXStringA_const__
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
mov ebx, eax
mov ecx, edi
lea eax, [ebp + 8]
mov dword [ebp - 0xc], ebx
push eax
push 4
lea eax, [ebp - 0xc]
push eax
call fcn.0054fe3e
mov ecx, eax
call fcn.0054fe1a
mov ecx, dword [edi]
mov edx, ebx
sub ecx, ebx
shr edx, 8
add ecx, dword [edi + 4]
xor dl, bl
test ebx, ebx
jle 0x54dedc
mov al, byte [esi + ecx]
not al
xor al, dl
mov byte [esi + ecx], al
inc esi
cmp esi, ebx
jl 0x54df2c
jmp 0x54dedc
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push dword [ebp + 0x14]
call fcn.00553f2f
jmp 0x54df5d
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push dword [ebp + 0x14]
call fcn.00553ed7
pop ecx
pop ecx
test eax, eax
js 0x54dfa7
mov eax, dword [ebp + 8]
test eax, eax
je 0x54dfa7
lea edx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.0054fe3e
push dword [ebp - 8]
mov ecx, eax
push dword [ebp - 0xc]
call fcn.0054fe3e
lea ecx, [ebp + 8]
call fcn.00506e10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret