Function at 0x413b60
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 [0x43e044]
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.00422210
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00422210
add esp, 0xc
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x413c09
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 0x413c06
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 0x43b5d0
call fcn.00403790
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 0x413c50
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 0x413cb0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413cb0
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 0x413d10
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413d10
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 0x413d5d
lea edx, [ebp - 0x86c]
push edx
call eax
movzx eax, word [ebp - 0x86c]
test eax, eax
je 0x413f3c
cmp eax, 9
jne 0x413f3c
push str.Kernel32.dll
mov dword [ebp - 0x848], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x413f3c
push str.Wow64DisableWow64FsRedirection
push esi
call edi
lea ecx, [ebp - 0x848]
push ecx
call eax
push esi
test eax, eax
je 0x413f36
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 0x413e00
movzx ecx, word [ebp + eax - 0x418]
mov word [ebp + eax - 0x210], cx
add eax, 2
test cx, cx
jne 0x413e00
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413e21
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 0x413e70
movzx ecx, word [ebp + eax - 0x418]
mov word [ebp + eax - 0x210], cx
add eax, 2
test cx, cx
jne 0x413e70
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413e91
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 0x413ed0
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x413ef1
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 0x413f3c
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 0x43b688
call fcn.00403790
add esp, 4
xor ecx, ecx
push 0x40e
push ecx
lea edx, [ebp - 0x826]
push edx
mov word [ebp - 0x828], cx
call fcn.00422210
add esp, 0xc
mov edx, str.SYSTEMCurrentControlSetControlSafeBootMinimalwm7f.sys
lea ecx, [ebp - 0x828]
call fcn.004042a0
push 0
lea eax, [ebp - 0x828]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404d60
add esp, 0xc
xor ecx, ecx
push 0x40e
push ecx
lea edx, [ebp - 0x826]
push edx
mov word [ebp - 0x828], cx
call fcn.00422210
add esp, 0xc
mov edx, str.SYSTEMCurrentControlSetControlSafeBootNetworkwm7f.sys
lea ecx, [ebp - 0x828]
call fcn.004042a0
push 0
lea eax, [ebp - 0x828]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404d60
add esp, 0xc
push 0x43b788
call fcn.00403790
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a70e
mov esp, ebp
pop ebp
ret