Function at 0x421302
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4ce4c8
call fcn.0046fad0
sub esp, 0xa0
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x28], edi
cmp dword [edi + 0xbc], ebx
je 0x421671
lea eax, [ebp - 0x40]
push esi
push eax
call dword [sym.imp.BasicCtrlDll.dll_int___cdecl_GetQQExeHash_unsigned_char__]
call dword [sym.imp.BasicCtrlDll.dll_unsigned_char___cdecl_GetOIcqProcessCount_void_]
push 0x10
mov byte [ebp - 0x16], al
pop esi
lea eax, [ebp - 0x8c]
push esi
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_GetLocalComputerGUID_unsigned_char___int_]
mov al, byte [edi + 0x25a]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x2c], al
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_CreateQQData_struct_IQQData___]
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [eax]
push 0x22
push 0x4e8480
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.MSVCRT.dll_rand]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
mov byte [ebp + ecx - 0x50], al
jl 0x42137b
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x50]
push edx
push esi
mov ecx, dword [eax]
push 0x4e848c
push eax
call dword [ecx + 0x24]
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
push edx
push 0x4e849c
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x50]
push edx
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x20]
lea ecx, [edi + 0x48]
push ecx
push esi
mov edx, dword [eax]
push eax
call dword [edx + 0x24]
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
push dword [edi + 0x38]
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_GetCurrentSysTempData_struct_IQQCore___struct_IQQData___]
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
push 0x4e88c4
push dword [ebp - 0x1c]
call dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataBuf_struct_IQQData___char_const___class_CString__]
mov eax, dword [ebp - 0x20]
add esp, 0xc
push dword [ebp - 0x24]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [edi + 0x48]
push eax
push ebx
push ebx
call fcn.004397ca
lea eax, [ebp - 0x60]
push esi
push eax
lea eax, [ebp - 0xac]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x40]
push esi
push eax
lea eax, [ebp - 0x9c]
push eax
call sub.MSVCRT.dll_memcpy
mov al, byte [ebp - 0x16]
add esp, 0x2c
xor ecx, ecx
xor al, byte [ebp + ecx - 0xac]
inc ecx
cmp ecx, 0x20
jl 0x42145c
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x60]
mov ecx, dword [eax]
push edx
push esi
push 0x4e84b4
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
push ebx
push 0x4e84bc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push ebx
push 0x4e84c8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push ebx
push 0x4e84d4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x10]
push ebx
push 0x4e84e0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push ebx
push 0x4e84ec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
push ebx
push 0x4e84f4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x40]
push edx
push esi
mov ecx, dword [eax]
push 0x4e8500
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push 0x4e8518
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov ecx, dword [eax]
push 0x4e852c
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x8c]
push edx
push esi
mov ecx, dword [eax]
push 0x4e853c
push eax
call dword [ecx + 0x24]
mov eax, dword [edi + 0x33c]
lea ecx, [edi + 0x33c]
push ebx
mov esi, dword [eax - 8]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov edi, dword [eax]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
push 0x4e8554
push dword [ebp - 0x2c]
call dword [edi + 0x24]
push 6
mov esi, str.QQCONFIG_LOGIN_REPORT_DATA
pop ecx
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x15]
movsw word es:[edi], word [esi]
push edx
lea edx, [ebp - 0x7c]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x15], bl
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x70]
cmp byte [ebp - 0x15], 7
jne 0x4215cf
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x3c]
mov esi, 0x140
cmp dword [ebp - 0x14], esi
jl 0x4215a8
mov esi, 0x385
cmp dword [ebp - 0x14], esi
jle 0x4215a5
mov dword [ebp - 0x14], esi
jmp 0x4215a8
mov esi, dword [ebp - 0x14]
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
push esi
push ebx
push edi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x1c]
add esp, 0x10
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x7c]
push edi
push edx
push eax
call dword [ecx + 0x48]
jmp 0x4215e7
mov esi, 0x140
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
push esi
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0x10
mov eax, dword [ebp - 0x10]
push edi
push esi
push 0x4e8560
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push edi
call sub.MFC42.DLL_operatordelete
mov esi, dword [ebp - 0x28]
mov dword [esp], 0xba8
push esi
call fcn.00423cfa
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [esi + 0x6c]
mov esi, dword [esi + 0xbc]
push 0x4e5870
mov edi, dword [esi]
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push dword [ebp - 0x28]
push esi
call dword [edi + 0x24]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
pop esi
je 0x421650
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x421660
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x421671
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret