Function at 0x417210
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fda1
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x438]
call fcn.0040d350
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41745e
push 0x104
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x41745e
push 0x104
lea eax, [ebp - 0x420]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41745e
push str._c_del
lea ecx, [ebp - 0x4c0]
call fcn.004088f0
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
mov dword [ebp - 0x47c], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x4a8]
push ecx
call fcn.00409140
add esp, 0xc
mov dword [ebp - 0x488], eax
mov edx, dword [ebp - 0x488]
mov dword [ebp - 0x490], edx
mov byte [ebp - 4], 2
push str.___nul
mov eax, dword [ebp - 0x490]
push eax
lea ecx, [ebp - 0x4d8]
push ecx
call fcn.00409140
add esp, 0xc
mov dword [ebp - 0x48c], eax
mov edx, dword [ebp - 0x48c]
push edx
lea ecx, [ebp - 0x438]
call fcn.0040d380
lea ecx, [ebp - 0x4d8]
call fcn.00408980
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a8]
call fcn.00408980
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.00408980
mov dword [ebp - 0x474], 0x3c
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], str.Open
lea eax, [ebp - 0x420]
mov dword [ebp - 0x464], eax
lea ecx, [ebp - 0x438]
call fcn.004089a0
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x470], 0x40
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea ecx, [ebp - 0x474]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x417440
push 0x40
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 1
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push 0
lea ecx, [ebp - 0x218]
push ecx
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 0x480], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00408980
mov eax, dword [ebp - 0x480]
jmp 0x417480
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]
mov dword [ebp - 0x478], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00408980
mov eax, dword [ebp - 0x478]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005101e9
mov esp, ebp
pop ebp
ret