Function at 0x40ca25
Capabilities:
Create process on windows
Delete file
Set current directory
Terminate process

Disassembly:
add byte [ebp - 0xad13ab], cl
adc eax, sym.imp.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x40ca6d
push str..vbe
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ca6d
push str..wsf
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40ca6d
push str..wsh
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40cac1
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x18]
and ecx, 8
test ecx, ecx
je 0x40ca9f
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x18]
and eax, 0x10
test eax, eax
je 0x40ca96
mov dword [ebp - 0xc], str.wscript.exe__B
jmp 0x40ca9d
mov dword [ebp - 0xc], str.wscript.exe
jmp 0x40cabf
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx + 0x18]
and edx, 0x10
test edx, edx
je 0x40cab8
mov dword [ebp - 0xc], str.cscript.exe__B
jmp 0x40cabf
mov dword [ebp - 0xc], str.cscript.exe
jmp 0x40cae4
push str..hta
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40cadd
mov dword [ebp - 0xc], str.mshta.exe
jmp 0x40cae4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x40cb9c
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov edx, dword [ebp - 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + eax + 0xa]
push ecx
push 0
mov edx, dword [0x412be0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40cb77
mov ecx, dword [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x40f354
mov eax, dword [ebp - 0x380]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x380]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40cb97
mov eax, dword [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str._s___s_
mov edx, dword [ebp - 0x380]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4197d3
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esi + eax + 0xa]
push edx
push 0
mov eax, dword [0x412be0]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40cc1b
mov edx, dword [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x260]
push eax
push 0x40f368
mov ecx, dword [ebp - 0x380]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x380]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40cc37
mov ecx, dword [ebp - 0x260]
push ecx
push str.__s_
mov edx, dword [ebp - 0x380]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x128]
mov dword [ebp - 0x5fc], eax
push str..bat
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40cc6d
push str..cmd
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40cd0c
push 0x104
push 0
mov eax, dword [0x412be0]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x5fc], eax
cmp dword [ebp - 0x5fc], 0
je 0x40cd0c
mov ecx, dword [ebp - 0x5fc]
mov byte [ecx], 0
push 0x104
mov edx, dword [ebp - 0x5fc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [ebp - 0x5fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x3d4], eax
mov ecx, dword [ebp - 0x3d4]
mov dword [ebp - 0x37c], ecx
jmp 0x40ccdc
mov edx, dword [ebp - 0x37c]
sub edx, 1
mov dword [ebp - 0x37c], edx
cmp dword [ebp - 0x37c], 0
jl 0x40cd0c
mov eax, dword [ebp - 0x5fc]
add eax, dword [ebp - 0x37c]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40cd0a
mov edx, dword [ebp - 0x5fc]
add edx, dword [ebp - 0x37c]
mov byte [edx], 0
jmp 0x40cd0c
jmp 0x40cccd
mov eax, dword [ebp - 0x5fc]
push eax
call 0x4178a4
add esp, 4
mov ecx, dword [ebp - 0x5fc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x3cc], 1
lea edx, [ebp - 0x254]
push edx
invalid
invalid
invalid