Function at 0x10009230
Capabilities:
Delete file
Delete registry value
Get common file path
Persist via run registry key
Set file attributes
Set registry value

Disassembly:
sub esp, 0x31c
lea eax, [esp + 0x218]
push ebx
push ebp
push esi
push 0x104
mov ebp, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call ebx
mov edx, dword [str.MHDOGStart]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x224]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x1f], 0x5c
je 0x100092b8
mov byte [esp + eax + 0x20], 0x5c
mov byte [esp + eax + 0x21], 0
mov edx, dword [0x10026884]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
jne 0x100092fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100092fd
lea edx, [esp + 0x20]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x20]
push eax
call esi
push edi
lea edi, [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x128]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.host95.vxd
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.163
mov ecx, ebp
call fcn.1000bf10
test eax, eax
pop edi
jne 0x10009380
pop esi
pop ebp
mov eax, 0xbbb
pop ebx
add esp, 0x31c
ret 4
mov ecx, dword [esp + 0x32c]
mov eax, 1
cmp ecx, eax
jne 0x1000947c
cmp dword [0x1002868c], eax
jne 0x1000947c
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push str.SoftwareRainbow_ChinaRC_UMHSign
push 0x80000002
call ebx
mov esi, eax
test esi, esi
je 0x1000944b
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.Software
push 0x80000002
call ebx
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Rainbow_China
push edx
call esi
lea eax, [esp + 0x14]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x10026a4c
push edx
call esi
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Sign
push edx
call esi
mov esi, eax
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push str.INSTDRV
push ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret 4