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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1bac
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x803]
push esi
push edi
mov esi, 0x3e7
mov byte [ebp - 0x804], 0
push esi
push 0
push eax
call fcn.00626f50
push esi
lea eax, [ebp - 0xfd3]
mov byte [ebp - 0xfd4], 0
push 0
push eax
call fcn.00626f50
mov esi, str.addrbk.dat
lea edi, [ebp - 0x34]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00631510
add esp, 0x1c
cmp eax, 1
jae 0x43b494
lea eax, [ebp - 0xfd4]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x43b487
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecoverTurboFtpPasswords
push str._s_Failed_to_find_appdata_folder__Error0x_.8x
call fcn.00449974
add esp, 0xc
xor eax, eax
jmp 0x43b957
mov eax, str._sTurboFTP_s
lea ebx, [ebp - 0xfd4]
jmp 0x43b499
mov eax, 0x66c218
lea ecx, [ebp - 0x34]
push ecx
push ebx
push eax
lea eax, [ebp - 0x804]
push 0x3e8
push eax
call fcn.00445d6d
lea eax, [ebp - 0x804]
push eax
push str._n_Final_file_path_is____s
call fcn.00449974
add esp, 0x1c
lea eax, [ebp - 0x804]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1bac], edi
cmp edi, 0xffffffff
jne 0x43b511
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x804]
push eax
push str.RecoverTurboFtpPasswords
push str._n_s_:_Failed_to_open__s__Error0x_.8x
call fcn.00449974
add esp, 0x10
jmp 0x43b480
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x1ba8], esi
test esi, esi
jne 0x43b556
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x804]
push eax
push str.RecoverTurboFtpPasswords
push str._s_:_Failed_to_create_flle_mapping_for__s___Error0x_.8x
call fcn.00449974
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43b480
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1b9c], eax
test eax, eax
jne 0x43b596
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecoverTurboFtpPasswords
push str._s_:_Failed_to_map_view_of_flle__Error0x_.8x
call fcn.00449974
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x43b480
push eax
push str.RecoverTurboFtpPasswords
push str._n_s_:_File_is_successfully_mapped_at_address__0x_.8x
call fcn.00449974
add esp, 0xc
mov dword [ebp - 0x1ba0], ebx
lea eax, [ebp - 0x1ba0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x1ba0], 0
mov ebx, eax
mov dword [ebp - 0x1ba4], ebx
je 0x43b5e1
push str.RecoverTurboFtpPasswords
push str._n_s_:_Critical_Situation___File_Size_is_higher_than_we_have_expected
call fcn.00449974
pop ecx
pop ecx
jmp 0x43b585
push ebx
push str.RecoverTurboFtpPasswords
push str._n_s_:_File_size_is__u
call fcn.00449974
mov edi, dword [ebp - 0x1b9c]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1c], 0xfffeff00
mov dword [ebp - 0x1b98], eax
mov esi, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0xfffeff00
mov dword [ebp - 0x14], 0xfffeff00
mov dword [ebp - 0x10], 0xfffeff00
mov dword [ebp - 0xc], 0xfffeff00
mov word [ebp - 8], ax
mov byte [ebp - 6], al
push str._n_n_Searching_for_start_of_next_FTP_record...
mov byte [ebp - 0x13bc], al
mov byte [ebp - 0xbec], al
mov byte [ebp - 0x17a4], al
call fcn.00449974
push 0x23
lea eax, [ebp - 0x28]
push eax
mov eax, ebx
sub eax, esi
add eax, edi
push eax
push esi
call fcn.00449f17
mov esi, eax
add esp, 0x14
test esi, esi
je 0x43b914
inc dword [ebp - 0x1b98]
add esi, 0x2a
add ebx, edi
cmp esi, ebx
ja 0x43b903
movzx eax, byte [esi]
mov dword [ebp - 0x1b90], eax
add eax, eax
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.006269d0
add esp, 0xc
lea eax, [ebp - 0x1b8c]
xor ecx, ecx
push ecx
push ecx
push 0x3e8
push eax
mov eax, dword [ebp - 0x1b90]
push eax
lea eax, [ebp - 0x41c]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x1b90]
cmp eax, 0x3e8
jae 0x43b966
mov byte [ebp + eax - 0x1b8c], 0
lea eax, [ebp - 0x1b8c]
push eax
push dword [ebp - 0x1b98]
push str._n_Found_site_name__d____s
call fcn.00449974
mov eax, dword [ebp - 0x1b90]
add esp, 0xc
lea esi, [esi + eax*2]
add esi, 8
cmp esi, ebx
ja 0x43b903
mov al, byte [esi]
movzx ecx, al
mov dword [ebp - 0x1b90], ecx
test al, al
je 0x43b76b
lea eax, [ecx + ecx]
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.006269d0
add esp, 0xc
lea eax, [ebp - 0x17a4]
xor ecx, ecx
push ecx
push ecx
push 0x3e8
push eax
push dword [ebp - 0x1b90]
lea eax, [ebp - 0x41c]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x1b90]
mov byte [ebp + ecx - 0x17a4], 0
lea ecx, [ecx + 2]
lea ecx, [esi + ecx*2]
cmp ecx, ebx
ja 0x43b8ff
movzx esi, byte [ecx]
add esi, 4
lea esi, [ecx + esi*2]
cmp esi, ebx
ja 0x43b903
mov al, byte [esi]
movzx ecx, al
mov dword [ebp - 0x1b90], ecx
test al, al
je 0x43b834
lea eax, [ecx + ecx]
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.006269d0
add esp, 0xc
lea eax, [ebp - 0xbec]
xor ecx, ecx
push ecx
push ecx
push 0x3e8
push eax
push dword [ebp - 0x1b90]
lea eax, [ebp - 0x41c]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x1b90]
push str.anonymous
mov byte [ebp + eax - 0xbec], 0
lea eax, [ebp - 0xbec]
push eax
call fcn.00631435
pop ecx
test eax, eax
lea eax, [ebp - 0xbec]
pop ecx
push eax
jne 0x43b822
push str._n_anonymous_user_detected....ignoring_now__s
call fcn.00449974
mov eax, dword [ebp - 0x1b90]
pop ecx
pop ecx
lea esi, [esi + eax*2]
add esi, 4
jmp 0x43b8ea
push str._n_Found_FTP_username__s
call fcn.00449974
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1b90]
lea eax, [esi + 4]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x1b90], eax
cmp eax, ebx
ja 0x43b8fb
mov cl, byte [eax]
mov byte [ebp - 0x1b91], cl
test cl, cl
je 0x43b8dd
movzx esi, cl
inc eax
lea edi, [esi + esi]
push edi
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.006269d0
push esi
push str._n_Found_FTP_encoded_password_of_length__d
call fcn.00449974
push 0x3e8
lea eax, [ebp - 0x13bc]
push eax
lea eax, [ebp - 0x41c]
push edi
push eax
call fcn.004083f1
lea eax, [ebp - 0x13bc]
push eax
call fcn.00631510
add esp, 0x28
test eax, eax
je 0x43b8d1
push 0xffffffffffffffff
mov ecx, 0x66ae5d
lea eax, [ebp - 0x13bc]
push ecx
push eax
lea eax, [ebp - 0xbec]
push eax
lea eax, [ebp - 0x17a4]
push eax
push ecx
push 0x158
push 4
call fcn.00412c85
add esp, 0x20
mov cl, byte [ebp - 0x1b91]
mov edi, dword [ebp - 0x1b9c]
mov esi, dword [ebp - 0x1b90]
movzx eax, cl
inc esi
lea esi, [esi + eax*2]
cmp esi, ebx
ja 0x43b903
mov ebx, dword [ebp - 0x1ba4]
xor eax, eax
jmp 0x43b637
push ebx
push eax
jmp 0x43b905
push ebx
push ecx
jmp 0x43b905
push ebx
push esi
push str._n_Error___Next_SITE_RECORD__0x_.8x__is_outside_file_boundary__0x_.8x_...._Breaking_now
call fcn.00449974
add esp, 0xc
jmp 0x43b925
push str.RecoverTurboFtpPasswords
push str._n_s_:_No_more_records_found...returning_now
call fcn.00449974
pop ecx
pop ecx
push dword [ebp - 0x1b98]
push str._n_Total_TurboFTP_Site_records_found___d
call fcn.00449974
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1ba8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1bac]
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
call fcn.005fe87a
int3