Function at 0x4182a0
Capabilities:
Delete file
Delete service
Get common file path
Manipulate safe mode programs
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x447044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004272d0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.004272d0
add esp, 0xc
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x418349
push 0xf01ff
push str.wm7f
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x418346
lea ecx, [ebp - 0x844]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
push 0x44333c
call fcn.004042f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
add esp, 4
mov ecx, 0x82
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
call ebx
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x418390
mov ecx, 0xd
mov esi, str.System32driverswm7f.sys
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x210]
push ecx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
call ebx
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
jmp 0x4183f0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4183f0
mov ecx, 0xd
mov esi, str.System32driverswm7f.inf
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x210]
push ecx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
call ebx
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
jmp 0x418450
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x418450
mov ecx, 0xd
mov esi, str.System32driverswm7f.cat
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x210]
push ecx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x41849d
lea edx, [ebp - 0x86c]
push edx
call eax
movzx eax, word [ebp - 0x86c]
test eax, eax
je 0x41867c
cmp eax, 9
jne 0x41867c
push str.Kernel32.dll
mov dword [ebp - 0x848], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41867c
push str.Wow64DisableWow64FsRedirection
push esi
call edi
lea ecx, [ebp - 0x848]
push ecx
call eax
push esi
test eax, eax
je 0x418676
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x418]
rep stosd dword es:[edi], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x418]
push eax
call ebx
xor eax, eax
jmp 0x418540
movzx ecx, word [ebp + eax - 0x418]
mov word [ebp + eax - 0x210], cx
add eax, 2
test cx, cx
jne 0x418540
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x418561
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0xd
mov esi, str.System32driverswm7f.sys
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x210]
push ecx
movsw word es:[edi], word [esi]
call ebx
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
xor eax, eax
jmp 0x4185b0
movzx ecx, word [ebp + eax - 0x418]
mov word [ebp + eax - 0x210], cx
add eax, 2
test cx, cx
jne 0x4185b0
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4185d1
mov ecx, 0xd
mov esi, str.System32driverswm7f.inf
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x210]
push eax
movsw word es:[edi], word [esi]
call ebx
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
xor eax, eax
nop
movzx ecx, word [ebp + eax - 0x418]
mov word [ebp + eax - 0x210], cx
add eax, 2
test cx, cx
jne 0x418610
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x418631
mov ecx, 0xd
mov esi, str.System32driverswm7f.cat
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x210]
push eax
movsw word es:[edi], word [esi]
call ebx
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41867c
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4433f4
call fcn.004042f0
add esp, 4
xor ecx, ecx
push 0x40e
push ecx
lea edx, [ebp - 0x826]
push edx
mov word [ebp - 0x828], cx
call fcn.004272d0
add esp, 0xc
mov edx, str.SYSTEMCurrentControlSetControlSafeBootMinimalwm7f.sys
lea ecx, [ebp - 0x828]
call fcn.00405050
push 0
lea eax, [ebp - 0x828]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004065f0
add esp, 0xc
xor ecx, ecx
push 0x40e
push ecx
lea edx, [ebp - 0x826]
push edx
mov word [ebp - 0x828], cx
call fcn.004272d0
add esp, 0xc
mov edx, str.SYSTEMCurrentControlSetControlSafeBootNetworkwm7f.sys
lea ecx, [ebp - 0x828]
call fcn.00405050
push 0
lea eax, [ebp - 0x828]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004065f0
add esp, 0xc
push 0x4434f8
call fcn.004042f0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f53e
mov esp, ebp
pop ebp
ret