Function at 0x401d40
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x404432
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x408098]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
mov edi, 1
mov dword [esp + 0x58], edi
jne 0x401ddd
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x48]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
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 [esp + 0x5c], 2
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 1
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
mov dword [esi + 0x14], edi
mov esi, dword [esp + 0x60]
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_void_]
mov dword [esp + 0x1c], edi
jmp 0x40211f
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_class_QByteArray_const__]
mov eax, dword [esp + 0x64]
cmp dword [eax + 4], 3
mov byte [esp + 0x58], 3
jl 0x401e50
push 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
cmp al, 3
je 0x401e65
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x48]
mov dword [esi + 0x14], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
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 [esp + 0x5c], 4
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
mov esi, dword [esp + 0x60]
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_void_]
mov dword [esp + 0x1c], edi
jmp 0x402110
push edi
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
mov edi, dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::mid_int__int_]
push 0xffffffffffffffff
movsx edx, al
push 2
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], edx
call edi
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [esp + 0x24]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov ecx, dword [esp + 0x18]
mov ebp, dword [ecx + 4]
xor esi, esi
xor bl, bl
test ebp, ebp
jle 0x401f13
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteRef::operator_char_void_const]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov ecx, esi
and ecx, 7
lea edx, [esp + 0x18]
add edi, ecx
push esi
mov ecx, edx
add edi, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
xor al, byte [edi]
lea ecx, [esp + 0x24]
xor al, bl
movzx eax, al
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteRef____thiscall_QByteRef::operator_char_]
mov bl, byte [esp + 0x14]
inc esi
cmp esi, ebp
jl 0x401eb0
mov edi, dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::mid_int__int_]
push 0xffffffffffffffff
mov ebp, 1
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x24]
call edi
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [esp + 0x24]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov al, byte [esp + 0x2c]
test al, 2
je 0x401ff8
mov edx, dword [esp + 0x18]
cmp dword [edx + 4], 2
jge 0x401f6d
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x60]
mov ecx, esi
mov dword [eax + 0x14], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_void_]
jmp 0x40210c
push ecx
mov eax, esp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esp
push ecx
lea ecx, [esp + 0x40]
mov dword [eax], ebp
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDataStream::constructor_class_QByteArray___class_QFlags_enum_QIODevice::OpenModeFlag__]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 5
call dword [sym.imp.Qt5Core.dll_public:_class_QDataStream____thiscall_QDataStream::operator___short_int__]
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDataStream::destructor_void_]
push 0xffffffffffffffff
push 2
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
call edi
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [esp + 0x24]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
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 [esp + 0x14]
sete bl
jmp 0x4020b9
test al, 4
je 0x4020c5
mov edx, dword [esp + 0x18]
cmp dword [edx + 4], 0x14
jl 0x401f51
push 0x14
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::left_int_]
push 0xffffffffffffffff
push 0x14
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 6
call edi
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
push 2
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCryptographicHash::constructor_enum_QCryptographicHash::Algorithm_]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCryptographicHash::addData_class_QByteArray_const__]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QCryptographicHash::result_void_]
lea edx, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x60], 8
call fcn.00401c90
add esp, 8
lea ecx, [esp + 0x30]
mov bl, al
mov byte [esp + 0x58], 7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 6
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QCryptographicHash::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
test bl, bl
je 0x401f51
mov al, byte [esp + 0x2c]
test al, 1
je 0x4020f0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00401d10
add esp, 8
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::operator_class_QByteArray__]
lea ecx, [esp + 0x30]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x60]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [eax + 0x14], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_class_QByteArray__]
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 1
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x64]
mov byte [esp + 0x58], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8