Function at 0x460fb0
Capabilities:
Delete file
Delete service
Get common file path
Query service status
Stop service

Disassembly:
push ecx
push esi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..mpapi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esp + 0xc], 0
mov esi, eax
je 0x460c63
push edi
cmp esi, 0xffffffff
je 0x460c3e
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push esi
call edi
test eax, eax
je 0x460c37
mov eax, dword [esp + 0x10]
cmp al, 1
jne 0x460c37
test ah, ah
jne 0x460c37
cmp byte [esp + 0x12], al
jne 0x460c37
cmp byte [esp + 0x13], 2
jne 0x460c37
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_VariantClear
push esi
call edi
test eax, eax
je 0x460c37
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x58e7
push 0x48b838
push 0x2af8
push 0x488d40
push str.mpapi
call fcn.00460cc0
add esp, 0x14
pop edi
pop esi
pop ecx
ret
cmp esi, 0xffffffff
je 0x460ca7
push 0
lea eax, [esp + 8]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push reloc.OLEAUT32.dll_VariantTimeToDosDateTime
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x460ca0
cmp dword [esp + 0xc], 0
je 0x460ca0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 4
mov dword [esp + 4], str.mpapi
jmp 0x460fb0
sub esp, 0x130
mov eax, dword [0x48794c]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push edi
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, edi
jne 0x461005
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0043ea11
add esp, 0x130
ret
push esi
push 0xf01ff
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x461087
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x461068
cmp dword [esp + 0x20], 1
je 0x46105d
lea ecx, [esp + 0x1c]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x461068
cmp dword [esp + 0x20], 1
je 0x46105d
push esi
mov dword [esp + 0x14], 0x425
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x461156
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x46107e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x461156
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4610a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, 0x424
jne 0x461156
mov dword [esp + 0x10], edi
push 0x46f8ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
xor edi, edi
xor ebx, ebx
test esi, esi
je 0x4610cf
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x474fd0
push esi
call ebx
push str.Wow64EnableWow64FsRedirection
push esi
mov edi, eax
call ebx
mov ebx, eax
mov dword [esp + 0x14], 0
test edi, edi
je 0x4610f8
test ebx, ebx
je 0x4610f8
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esp + 0x14], 0
je 0x4610f8
push 0
call ebx
push 0x104
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x38]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x461110
sub eax, edx
push ebp
lea ecx, [esp + eax + 0x3c]
push str.drivers_s.sys
push ecx
call fcn.00461338
add esp, 0xc
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
test edi, edi
jne 0x461147
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], 0
je 0x461152
push 1
call ebx
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x13c]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043ea11
add esp, 0x130
ret