Function at 0x402e80
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xc60], eax
mov eax, dword [ebp + 0x14]
push 0x64
mov dword [ebp - 0xc70], ecx
mov dword [ebp - 0xc64], ebx
mov dword [ebp - 0xc74], esi
mov dword [ebp - 0xc6c], eax
call edi
push 0
push dword [ebp - 0xc60]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x624], ax
lea eax, [ebp - 0x622]
push eax
call fcn.004164b0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x41c], ax
push 0x206
push eax
lea eax, [ebp - 0x41a]
push eax
call fcn.004164b0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x214], ax
push 0x206
push eax
lea eax, [ebp - 0x212]
push eax
call fcn.004164b0
add esp, 0xc
lea eax, [ebp - 0x624]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x624]
push 0x425ce0
push eax
call ebx
push 0x64
call edi
push 0
push 0
push 0
lea eax, [ebp - 0xc5c]
push eax
push 0
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0xc68], eax
cmp eax, 0xffffffff
je 0x4032af
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea esp, [esp]
test byte [ebp - 0xc5c], 0x10
lea eax, [ebp - 0xc30]
push 0x425ce4
push eax
jne 0x4031a8
call edi
test eax, eax
je 0x403288
push 0x425ce8
lea eax, [ebp - 0xc30]
push eax
call edi
test eax, eax
je 0x403288
push 0x208
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.004164b0
add esp, 0xc
lea eax, [ebp - 0x41c]
push dword [ebp - 0xc64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 0x41c]
push eax
call ebx
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.004164b0
add esp, 0xc
lea eax, [ebp - 0x214]
push dword [ebp - 0xc60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x425c88
lea eax, [ebp - 0xc30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4030d6
mov esi, dword [0x42f8bc]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4030c1
cmp dword [esi + 0x48], 0
jne 0x403085
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
push 0x425c88
push dword [esi + 0xc]
call eax
mov eax, dword [esi + 0xc]
add esp, 8
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
mov esi, dword [ebp - 0xc74]
jmp 0x4030e6
push 0
call fcn.0040c4bf
add esp, 4
push eax
call fcn.0040bb10
add esp, 4
call fcn.0040baef
cdq
mov ecx, 0x22
idiv ecx
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
shl edx, 8
add edx, str.MRAInplaceViewer
push edx
push str._s.exe
push dword [esi + 0xc]
call eax
add esp, 0xc
mov eax, dword [esi + 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
mov esi, dword [ebp - 0xc74]
jmp 0x4030e6
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
xor eax, eax
push 0x3e6
push eax
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push eax
call fcn.004164b0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xa0c]
push str.ck_W_rY6R
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
test esi, esi
je 0x403167
mov eax, dword [ebp - 0xc6c]
test eax, eax
je 0x403167
lea ecx, [ebp - 0xa0c]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0
push 0x408
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
mov ecx, 0x64
cmp eax, 0x64
push 0
cmovg eax, ecx
push eax
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x403288
push 4
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x403288
call edi
test eax, eax
je 0x403288
push 0x425ce8
lea eax, [ebp - 0xc30]
push eax
call edi
test eax, eax
je 0x403288
push 0x208
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.004164b0
add esp, 0xc
lea eax, [ebp - 0x41c]
push dword [ebp - 0xc64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 0x41c]
push eax
call ebx
push 0x425954
lea eax, [ebp - 0x41c]
push eax
call ebx
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.004164b0
add esp, 0xc
lea eax, [ebp - 0x214]
push dword [ebp - 0xc60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
push 0x425954
lea eax, [ebp - 0x214]
push eax
call ebx
push 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc70]
lea eax, [ebp - 0x214]
push dword [ebp - 0xc6c]
push esi
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00402e80
lea eax, [ebp - 0xc5c]
push eax
push dword [ebp - 0xc68]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402f90
push dword [ebp - 0xc68]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b999
mov esp, ebp
pop ebp
ret 0x14