Function at 0x4048a0
Capabilities:
Delete file
Get common file path
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x42603c]
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.00413700
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00413700
add esp, 0xc
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40495e
push 0x41d52c
call fcn.00402950
add esp, 4
push 0xf01ff
push str.wm7f
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x40495b
push 0x41d564
call fcn.00402950
add esp, 4
lea ecx, [ebp - 0x434]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x41d58c
call fcn.00402950
add esp, 4
push edi
call ebx
push esi
call ebx
push 0x41d5c4
call fcn.00402950
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
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4049a1
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 0x404a00
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404a00
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 0x404a60
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404a60
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 0x404aad
lea edx, [ebp - 0x45c]
push edx
call eax
movzx eax, word [ebp - 0x45c]
test eax, eax
je 0x404c8c
cmp eax, 9
jne 0x404c8c
push str.Kernel32.dll
mov dword [ebp - 0x438], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x404c8c
push str.Wow64DisableWow64FsRedirection
push esi
call edi
lea ecx, [ebp - 0x438]
push ecx
call eax
push esi
test eax, eax
je 0x404c86
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 0x404b50
movzx ecx, word [ebp + eax - 0x418]
mov word [ebp + eax - 0x210], cx
add eax, 2
test cx, cx
jne 0x404b50
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404b71
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 0x404bc0
movzx ecx, word [ebp + eax - 0x418]
mov word [ebp + eax - 0x210], cx
add eax, 2
test cx, cx
jne 0x404bc0
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404be1
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 0x404c20
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404c41
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 0x404c8c
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 0x41d67c
call fcn.00402950
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f51e
mov esp, ebp
pop ebp
ret