Function at 0x409440
Capabilities:
Encode data using xor

Disassembly:
push 0xfc
mov eax, 0x5402b6
call fcn.004e6a52
mov edi, ecx
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xd0], edi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea ebx, [edi + 0x10]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call sym.steamworks.exe_public:_void___thiscall_Json::Value::constructor_enum_Json::ValueType_
lea eax, [edi + 0x28]
xor ecx, ecx
and dword [eax], 0
and dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.00405436
push str.SteamPath
lea ecx, [ebp - 0x40]
call fcn.004024f3
mov esi, eax
push str.SoftwareValveSteam
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.004024f3
push ecx
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 5
push ecx
push esi
mov edx, eax
call fcn.004017c6
add esp, 0xc
lea ecx, [ebp - 0xb8]
mov esi, eax
call fcn.0040258a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0040258a
test esi, esi
js 0x4098be
push str._password.dat
lea eax, [edi + 0x28]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00406bc5
add esp, 0xc
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00406905
test al, al
je 0x409889
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0xcc]
call fcn.00406abf
mov byte [ebp - 4], 7
xor eax, eax
mov ecx, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xcc]
sub ecx, esi
je 0x409555
xor byte [esi + eax], 0x32
inc eax
cmp eax, ecx
jb 0x40954c
lea ecx, [ebp - 0xf0]
call sym.steamworks.exe_public:_void___thiscall_Json::CharReaderBuilder::constructor_void_
push 0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 8
call sym.steamworks.exe_public:_void___thiscall_Json::Value::constructor_bool_
push str.collectComments
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00404cd2
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf0]
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::CharReaderBuilder::operator___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator_class_Json::Value__
lea ecx, [ebp - 0x40]
call fcn.0040545f
lea ecx, [ebp - 0xb8]
call sym.steamworks.exe_public:_void___thiscall_Json::Value::destructor_void_
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xb
call sym.steamworks.exe_public_virtual:_class_Json::CharReader____thiscall_Json::CharReaderBuilder::newCharReader_void_const
lea ecx, [ebp - 0x28]
push ecx
push ebx
push dword [ebp - 0xc8]
mov edx, dword [eax]
mov ecx, eax
push esi
call dword [edx + 4]
test al, al
jne 0x409661
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x409637
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], ecx
cmp eax, 0x1000
jb 0x40962e
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00401403
mov eax, dword [ebp - 0xc0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xbc]
push eax
push ecx
call fcn.004e6456
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call sym.steamworks.exe_public_virtual:_void___thiscall_Json::CharReaderBuilder::destructor_void_
lea ecx, [ebp - 0xcc]
call fcn.00406ba2
jmp 0x4098a1
push str.keyArray
lea ecx, [ebp - 0x40]
call fcn.00404cd2
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x30], 0
je 0x40980f
mov ecx, ebx
call sym.steamworks.exe_public:_bool___thiscall_Json::Value::isObject_void_const
test al, al
je 0x40980f
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call sym.steamworks.exe_public:_bool___thiscall_Json::Value::isMember_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const
test al, al
je 0x40980f
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov ecx, eax
call sym.steamworks.exe_public:_bool___thiscall_Json::Value::isArray_void_const
test al, al
je 0x40980f
and dword [ebp - 0xc0], 0
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov ecx, eax
call sym.steamworks.exe_public:_unsigned_int___thiscall_Json::Value::size_void_const
test eax, eax
je 0x40980f
xor ecx, ecx
xor eax, eax
push 7
pop edx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edx
mov word [ebp - 0x88], ax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
mov word [ebp - 0x70], ax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov word [ebp - 0x58], ax
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov esi, esp
lea eax, [ebp - 0x40]
mov ecx, ebx
push str.appid
push dword [ebp - 0xc0]
push eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___int_
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___char_const__
mov ecx, eax
call sym.steamworks.exe_public:_char_const____thiscall_Json::Value::asCString_void_const
push eax
mov ecx, esi
call fcn.00404cd2
lea ecx, [ebp - 0x58]
call fcn.00406f5e
mov esi, dword [ebp - 0xc0]
lea eax, [ebp - 0x40]
push esp
push str.cdkey
push esi
push eax
mov ecx, ebx
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___int_
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___char_const__
mov ecx, eax
call sym.steamworks.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_Json::Value::asString_void_
lea ecx, [ebp - 0x70]
call fcn.00406f5e
push esp
push str.strName
push esi
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___int_
mov ecx, eax
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___char_const__
mov ecx, eax
call sym.steamworks.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_Json::Value::asString_void_
lea ecx, [ebp - 0x88]
call fcn.00406f5e
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x88]
add esp, 0x18
push ecx
cmp eax, dword [edi + 8]
je 0x4097d7
mov ecx, eax
call fcn.0040a51e
add dword [edi + 4], 0x48
jmp 0x4097df
push eax
mov ecx, edi
call fcn.0040a3ee
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xc
call fcn.004098d5
lea eax, [ebp - 0x40]
inc esi
push eax
mov ecx, ebx
mov dword [ebp - 0xc0], esi
call sym.steamworks.exe_public:_class_Json::Value____thiscall_Json::Value::operator___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov ecx, eax
call sym.steamworks.exe_public:_unsigned_int___thiscall_Json::Value::size_void_const
cmp esi, eax
jb 0x4096d9
lea ecx, [ebp - 0x40]
call fcn.0040545f
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x409860
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], ecx
cmp eax, 0x1000
jb 0x409857
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00401403
mov eax, dword [ebp - 0xbc]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc0]
push eax
push ecx
call fcn.004e6456
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call sym.steamworks.exe_public_virtual:_void___thiscall_Json::CharReaderBuilder::destructor_void_
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 6
call fcn.00406ba2
push 0
lea ecx, [ebp - 0x108]
call sym.steamworks.exe_public:_void___thiscall_Json::Value::constructor_enum_Json::ValueType_
lea ecx, [ebp - 0x108]
call sym.steamworks.exe_public:_void___thiscall_Json::Value::destructor_void_
lea ecx, [ebp - 0xa0]
call fcn.0040258a
lea ecx, [ebp + 8]
call fcn.0040258a
mov eax, edi
call fcn.004e6a01
ret 0x18
xor ebx, ebx
push ebx
push ebx
push str.steam
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call fcn.005096fb
int3