Function at 0x1000a370
Capabilities:
Delete file
Delete service
Get common file path
Persist via windows service
Query service status
Set file attributes
Set registry value
Stop service

Disassembly:
sub esp, 0x234
mov eax, dword [str.USBA]
mov edx, dword [0x1002683c]
push ebx
push ebp
push esi
push edi
push eax
push edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], 0
call fcn.1000be10
mov edi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf003f
push 0
push 0
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0xf01ff
push str.Mhdrv
push eax
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
test esi, esi
je 0x1000a424
lea eax, [esp + 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1000a3ec
lea ecx, [esp + 0x28]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1000a416
lea edx, [esp + 0x28]
push edx
push esi
call ebx
test eax, eax
je 0x1000a416
cmp dword [esp + 0x2c], 3
jne 0x1000a416
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x28]
push eax
push esi
call ebx
test eax, eax
jne 0x1000a3f8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf003f
push 0
push 0
call edi
push 0xf01ff
push 0x10026904
push eax
call ebp
mov esi, eax
test esi, esi
je 0x1000a49c
mov edi, dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [esp + 0x28]
push ecx
push 1
push esi
call edi
test eax, eax
jne 0x1000a464
lea edx, [esp + 0x28]
push edx
push 1
push esi
call edi
test eax, eax
je 0x1000a48e
lea eax, [esp + 0x28]
push eax
push esi
call ebx
test eax, eax
je 0x1000a48e
cmp dword [esp + 0x2c], 3
jne 0x1000a48e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
test eax, eax
jne 0x1000a470
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x144]
lea edi, [ebp + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x144]
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.IOCTLVDD.DLL
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x144]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.165
mov ecx, ebp
call fcn.1000bf10
test eax, eax
mov ebx, 0xbbb
jne 0x1000a519
mov dword [esp + 0x10], ebx
add ebp, 0x104
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x144]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x144]
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.infgsmhwdm.pnf
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 + 0x144]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
test eax, eax
jne 0x1000a5b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1000a5b2
lea ecx, [esp + 0x144]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x144]
push edx
call esi
mov eax, dword [esp + 0x1c]
or ecx, 0xffffffff
lea edx, [esp + 0x144]
lea edi, [eax + 4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x144]
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.drivers
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 edx, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._rcmhdog.sys
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 + 0x144]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push str.170
call fcn.1000bf10
test eax, eax
jne 0x1000a65b
mov dword [esp + 0x10], ebx
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
lea edx, [esp + 0x144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x144]
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.inf
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.gsmhwdm.inf
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x1c]
and ecx, 3
lea eax, [esp + 0x144]
rep movsb byte es:[edi], byte [esi]
push eax
push str.160
mov ecx, ebp
call fcn.1000bf10
test eax, eax
jne 0x1000a701
mov dword [esp + 0x10], ebx
or ecx, 0xffffffff
lea edi, [ebp + 4]
xor eax, eax
lea edx, [esp + 0x144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x144]
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.drivers
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 edx, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10026c10
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 + 0x144]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.168
mov ecx, ebp
call fcn.1000bf10
test eax, eax
jne 0x1000a7a4
mov dword [esp + 0x10], ebx
or ecx, 0xffffffff
lea edi, [ebp + 4]
xor eax, eax
lea edx, [esp + 0x144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x144]
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.drivers
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 edx, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10026c5c
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 + 0x144]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.161
mov ecx, ebp
call fcn.1000bf10
test eax, eax
jne 0x1000a847
mov dword [esp + 0x10], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push 0
push str.SystemCurrentControlSetServices
push 0x80000002
call ebx
test eax, eax
je 0x1000a871
mov dword [esp + 0x10], 0xbbc
lea edx, [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.MHDRV
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1000a8a4
mov dword [esp + 0x10], 0xbbc
mov edi, str.Parallel_arbitrator
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
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]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x44]
mov byte [esp + ecx + 0x45], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
lea ecx, [esp + 0x48]
push ecx
push 7
push eax
push str.DependOnGroup
push edx
call ebp
test eax, eax
je 0x1000a90f
mov dword [esp + 0x10], 0xbbc
mov edi, str.Parport
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
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]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x44]
mov esi, 2
mov byte [esp + ecx + 0x45], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
lea ecx, [esp + 0x48]
push ecx
push 7
push eax
push str.DependOnService
push edx
call ebp
test eax, eax
mov edi, 0xbbc
je 0x1000a97c
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.Type
push ecx
mov dword [esp + 0x30], 1
call ebp
test eax, eax
je 0x1000a9a3
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 4
push edx
push 4
push 0
push 0x10026b80
push eax
mov dword [esp + 0x30], esi
call ebp
test eax, eax
je 0x1000a9c6
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push 0x10026b7c
push edx
mov dword [esp + 0x30], esi
call ebp
test eax, eax
je 0x1000a9e9
mov dword [esp + 0x10], edi
mov edi, str.Rainbow_Goldensoft
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
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]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x48]
push ecx
push 1
push eax
push str.Group
push edx
call ebp
test eax, eax
mov edi, 0xbbc
je 0x1000aa3e
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.ErrorControl
push ecx
mov dword [esp + 0x30], 1
call ebp
test eax, eax
je 0x1000aa65
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
test eax, eax
je 0x1000aa7a
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x20]
push eax
call esi
test eax, eax
je 0x1000aa89
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push 0
push str.SystemCurrentControlSetServices
push 0x80000002
call ebx
test eax, eax
je 0x1000aaa9
mov dword [esp + 0x10], edi
lea edx, [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x10026904
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1000aad8
mov dword [esp + 0x10], edi
mov edi, str.Parallel_arbitrator
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
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]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x44]
mov byte [esp + ecx + 0x45], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
lea ecx, [esp + 0x48]
push ecx
push 7
push eax
push str.DependOnGroup
push edx
call ebp
test eax, eax
je 0x1000ab3d
mov dword [esp + 0x10], 0xbbc
mov edi, str.Parport
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
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]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x44]
mov byte [esp + ecx + 0x45], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
lea ecx, [esp + 0x48]
push ecx
push 7
push eax
push str.DependOnService
push edx
call ebp
test eax, eax
je 0x1000aba2
mov dword [esp + 0x10], 0xbbc
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
mov ebx, 1
push str.Type
push ecx
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
mov edi, 0xbbc
je 0x1000abcf
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 4
push edx
push 4
push 0
mov esi, 2
push 0x10026b80
push eax
mov dword [esp + 0x30], esi
call ebp
test eax, eax
je 0x1000abf7
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push 0x10026b7c
push edx
mov dword [esp + 0x30], esi
call ebp
test eax, eax
je 0x1000ac1a
mov dword [esp + 0x10], edi
mov edi, str.Rainbow_China
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
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]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x48]
push ecx
push ebx
push eax
push str.Group
push edx
call ebp
test eax, eax
mov edi, 0xbbc
je 0x1000ac6e
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.ErrorControl
push ecx
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
je 0x1000ac91
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
test eax, eax
je 0x1000aca6
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x20]
push eax
call esi
test eax, eax
je 0x1000acc0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 4
mov ecx, dword [esp + 0x1c]
push 0x80
lea eax, [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [esp + 0x1c]
push 0
mov ecx, esi
call fcn.1000c030
push ebx
mov ecx, esi
call fcn.1000c030
push 2
mov ecx, esi
call fcn.1000c030
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 4