Function at 0x41d240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dc14
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4498ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 4], 0
jne 0x41d2c4
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::warning_void_]
push str.No_key_set.
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
mov ecx, dword [ebp + 8]
mov dword [edi + 0x14], 1
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_void_]
jmp 0x41d5af
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_class_QByteArray_const__]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp dword [eax + 4], 3
jl 0x41d329
push 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
cmp al, 3
je 0x41d337
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
mov dword [edi + 0x14], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::warning_void_]
push str.Invalid_version_or_not_a_cyphertext.
mov ecx, eax
mov byte [ebp - 4], 3
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
mov ecx, dword [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_void_]
jmp 0x41d5a6
push 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
push 0xffffffffffffffff
movsx ebx, al
lea ecx, [ebp - 0x14]
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::mid_int__int_]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov eax, dword [ebp - 0x14]
xor esi, esi
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x41d3e3
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteRef___thiscall_QByteArray::operator___int_]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteRef::operator_char_void_const]
mov edx, dword [edi + 8]
mov ecx, esi
push dword [ebp - 0x18]
and ecx, 7
mov bl, al
mov esi, dword [edx + 0xc]
add esi, ecx
lea ecx, [ebp - 0x14]
add esi, edx
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
xor al, byte [esi]
lea ecx, [ebp - 0x14]
xor al, byte [ebp - 0xf]
mov esi, dword [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteRef___thiscall_QByteArray::operator___int_]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteRef____thiscall_QByteRef::operator_char_]
inc esi
mov byte [ebp - 0xf], bl
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x1c]
jl 0x41d382
mov ebx, dword [ebp - 0x20]
mov esi, dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::mid_int__int_]
lea eax, [ebp - 0x20]
push 0xffffffffffffffff
push 1
push eax
lea ecx, [ebp - 0x14]
call esi
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [ebp - 0x20]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
test bl, 2
je 0x41d4ad
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 2
jge 0x41d430
mov ecx, dword [ebp + 8]
mov dword [edi + 0x14], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_void_]
jmp 0x41d5a6
push ecx
mov eax, esp
lea ecx, [ebp - 0x48]
mov dword [eax], 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDataStream::constructor_class_QByteArray___class_QFlags_enum_QIODevice::OpenModeFlag__]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.Qt5Core.dll_public:_class_QDataStream____thiscall_QDataStream::operator___short_int__]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDataStream::destructor_void_]
push 0xffffffffffffffff
push 2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call esi
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [ebp - 0x20]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov esi, dword [eax + 4]
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push esi
push eax
call dword [sym.imp.Qt5Core.dll_unsigned_short_int___cdecl_qChecksum_char_const___unsigned_int_]
movzx eax, ax
add esp, 8
cmp ax, word [ebp - 0x10]
sete al
jmp 0x41d551
test bl, 4
je 0x41d559
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0x14
jl 0x41d41b
push 0x14
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::left_int_]
push 0xffffffffffffffff
push 0x14
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x14]
call esi
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [ebp - 0x20]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
push 2
lea ecx, [ebp - 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCryptographicHash::constructor_enum_QCryptographicHash::Algorithm_]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCryptographicHash::addData_class_QByteArray_const__]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QCryptographicHash::result_void_]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.0041d100
add esp, 8
mov byte [ebp - 0xf], al
lea ecx, [ebp - 0x20]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [ebp - 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCryptographicHash::destructor_void_]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov al, byte [ebp - 0xf]
test al, al
je 0x41d41b
test bl, 1
je 0x41d592
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov esi, dword [eax + 4]
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.Qt5Core.dll_class_QByteArray___cdecl_qUncompress_unsigned_char_const___int_]
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov dword [edi + 0x14], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_class_QByteArray__]
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [ebp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8