Function at 0x417040
Capabilities:
Create process on windows
Delete file
Delete service
Get common file path
Manipulate safe mode programs
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc4
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0xc16]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0xc18], ax
call fcn.00427f40
add esp, 0xc
push 0x206
lea eax, [ebp - 0x20e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x210], dx
call fcn.00427f40
add esp, 0xc
mov esi, 0x444a48
mov dword [ebp - 0xc80], ebx
mov dword [ebp - 0xc78], 1
call fcn.004178c0
test eax, eax
jne 0x41723a
push ebx
push str.C:Program_Filesww2010cfwmcUser.exe
call fcn.00422010
add esp, 8
mov esi, str.wmcUser.exe
test eax, eax
jne 0x41713c
push 0x444aa8
call fcn.00406870
add esp, 4
lea ecx, [ebp - 0xc54]
push ecx
mov dword [ebp - 0xc54], 0x3c
mov dword [ebp - 0xc50], 0x40
mov dword [ebp - 0xc4c], ebx
mov dword [ebp - 0xc48], ebx
mov dword [ebp - 0xc44], esi
mov dword [ebp - 0xc40], str.__registrystop
mov dword [ebp - 0xc3c], str.C:Program_Filesww2010cf
mov dword [ebp - 0xc38], ebx
mov dword [ebp - 0xc34], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
jmp 0x417142
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push str.C:Program_Files__x86_ww2010cfwmcUser.exe
call fcn.00422010
add esp, 8
test eax, eax
jne 0x4171bb
push 0x444bb0
call fcn.00406870
add esp, 4
lea edx, [ebp - 0xc54]
push edx
mov dword [ebp - 0xc54], 0x3c
mov dword [ebp - 0xc50], 0x40
mov dword [ebp - 0xc4c], ebx
mov dword [ebp - 0xc48], ebx
mov dword [ebp - 0xc44], esi
mov dword [ebp - 0xc40], str.__registrystop
mov dword [ebp - 0xc3c], str.C:Program_Files__x86_ww2010cf
mov dword [ebp - 0xc38], ebx
mov dword [ebp - 0xc34], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x7d0
call edi
push ebx
push str.C:Program_Filesww2017cfwmcUser7.exe
call fcn.00422010
add esp, 8
test eax, eax
jne 0x417240
push 0x444c88
call fcn.00406870
add esp, 4
lea eax, [ebp - 0xc54]
push eax
mov dword [ebp - 0xc54], 0x3c
mov dword [ebp - 0xc50], 0x40
mov dword [ebp - 0xc4c], ebx
mov dword [ebp - 0xc48], ebx
mov dword [ebp - 0xc44], 0x43e818
mov dword [ebp - 0xc40], str.__registrystop
mov dword [ebp - 0xc3c], str.C:Program_Filesww2017cf
mov dword [ebp - 0xc38], ebx
mov dword [ebp - 0xc34], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xbb8
call edi
jmp 0x417240
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0xc7c], esi
cmp esi, ebx
je 0x4175be
push 0xf01ff
push 0x444cec
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc74], eax
cmp eax, ebx
je 0x4175a8
push 0x1f2
lea edx, [ebp - 0x5fe]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x600], cx
call fcn.00427f40
mov ecx, dword [ebp - 0xc74]
add esp, 0xc
lea eax, [ebp - 0xc70]
push eax
push 1
mov dword [ebp - 0xc84], ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0xbb8
call edi
mov eax, dword [ebp - 0xc74]
lea edx, [ebp - 0xc34]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4172fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x600]
push 0x444d10
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x600]
add esp, 0xc
push edx
call fcn.00406870
add esp, 4
mov esi, dword [ebp - 0xc30]
cmp esi, 1
je 0x417546
cmp esi, 3
je 0x417546
push 0x1f2
lea ecx, [ebp - 0x406]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x408], ax
call fcn.00427f40
lea eax, [esi - 2]
add esp, 0xc
cmp eax, 5
ja case.default.0x41733f
jmp dword [eax*4 + 0x41789c]
xor eax, eax
jmp 0x417350
movzx ecx, word [eax + str.SERVICE_START_PENDING]
mov word [ebp + eax - 0x408], cx
add eax, 2
cmp cx, bx
jne 0x417350
jmp 0x417427
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.SERVICE_STOP_PENDING]
mov word [ebp + eax - 0x408], cx
add eax, 2
cmp cx, bx
jne 0x417370
jmp 0x417427
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.SERVICE_RUNNING]
mov word [ebp + eax - 0x408], cx
add eax, 2
cmp cx, bx
jne 0x417390
jmp 0x417427
xor eax, eax
jmp 0x4173b0
movzx ecx, word [eax + str.SERVICE_CONTINUE_PENDING]
mov word [ebp + eax - 0x408], cx
add eax, 2
cmp cx, bx
jne 0x4173b0
jmp 0x417427
xor eax, eax
jmp 0x4173d0
movzx ecx, word [eax + str.SERVICE_PAUSE_PENDING]
mov word [ebp + eax - 0x408], cx
add eax, 2
cmp cx, bx
jne 0x4173d0
jmp 0x417427
xor eax, eax
jmp 0x4173f0
movzx ecx, word [eax + str.SERVICE_PAUSED]
mov word [ebp + eax - 0x408], cx
add eax, 2
cmp cx, bx
jne 0x4173f0
jmp 0x417427
xor eax, eax
jmp 0x417410
movzx ecx, word [eax + str.Unknow]
mov word [ebp + eax - 0x408], cx
add eax, 2
cmp cx, bx
jne 0x417410
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x600]
push 0x444e50
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x600]
add esp, 0xc
push ecx
call fcn.00406870
mov esi, dword [ebp - 0xc84]
add esp, 4
inc esi
push esi
lea edx, [ebp - 0x600]
push 0x444e7c
push edx
mov dword [ebp - 0xc84], esi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x600]
add esp, 0xc
push eax
call fcn.00406870
add esp, 4
cmp esi, 0x1e
jne 0x417540
mov eax, 1
cmp dword [ebp - 0xc80], eax
jge 0x41756c
add dword [ebp - 0xc80], eax
push ebx
push str.C:Program_Filesww2017cfwmcUser7.exe
mov dword [ebp - 0xc84], ebx
call fcn.00421f91
add esp, 8
test eax, eax
jne 0x4172b3
lea ecx, [ebp - 0xcc0]
push ecx
mov dword [ebp - 0xcc0], 0x3c
mov dword [ebp - 0xcbc], 0x40
mov dword [ebp - 0xcb8], ebx
mov dword [ebp - 0xcb4], ebx
mov dword [ebp - 0xcb0], 0x43e818
mov dword [ebp - 0xcac], str.__registrystop
mov dword [ebp - 0xca8], str.C:Program_Filesww2017cf
mov dword [ebp - 0xca4], ebx
mov dword [ebp - 0xca0], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x444eac
call fcn.00406870
add esp, 4
push 0xbb8
call edi
mov eax, dword [ebp - 0xc74]
lea edx, [ebp - 0xc70]
push edx
push 1
push eax
jmp 0x4172ad
jle 0x4172b3
push 0x444ee0
call fcn.00406870
mov ecx, dword [ebp - 0xc74]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x444f28
call fcn.00406870
jmp 0x417589
mov edx, dword [ebp - 0xc74]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x444f68
call fcn.00406870
mov dword [ebp - 0xc78], ebx
mov eax, dword [ebp - 0xc74]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0xc7c]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4175d1
push 0x444fb0
call fcn.00406870
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4175d1
push 0x445008
mov dword [ebp - 0xc78], ebx
call fcn.00406870
add esp, 4
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0xc18]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [ebp - 0xc18]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x417605
mov ecx, 0x13
mov esi, str.System32driverscbfsregistry2017.sys
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc18]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call edi
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x417652
lea edx, [ebp - 0xc3c]
push edx
call eax
movzx eax, word [ebp - 0xc3c]
cmp eax, ebx
je 0x4176a5
cmp eax, 9
jne 0x4176a5
push str.Kernel32.dll
mov dword [ebp - 0xc7c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x41769d
push str.Wow64DisableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xc7c]
push ecx
call eax
push esi
test eax, eax
jne 0x41785b
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x208
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00427f40
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x210]
push str.C:Program_Filesww2010cfCBFSRegistry.cab
push ecx
call esi
add esp, 8
lea edx, [ebp - 0x210]
push edx
call edi
push 0x208
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00427f40
add esp, 0xc
lea ecx, [ebp - 0x210]
push str.C:Program_Files__x86_ww2010cfCBFSRegistry.cab
push ecx
call esi
add esp, 8
lea edx, [ebp - 0x210]
push edx
call edi
push 0x208
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00427f40
add esp, 0xc
lea ecx, [ebp - 0x210]
push str.C:Program_Filesww2017cfCBFSRegistry.cab
push ecx
call esi
add esp, 8
lea edx, [ebp - 0x210]
push edx
call edi
push 0x40e
lea ecx, [ebp - 0xa0e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0xa10], ax
call fcn.00427f40
add esp, 0xc
mov edx, str.SYSTEMCurrentControlSetControlSafeBootMinimalcbfsregistry2017.sys
lea ecx, [ebp - 0xa10]
call fcn.004075e0
push ebx
lea edx, [ebp - 0xa10]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00408b80
add esp, 0xc
push 0x40e
lea ecx, [ebp - 0xa0e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0xa10], ax
call fcn.00427f40
add esp, 0xc
mov edx, str.SYSTEMCurrentControlSetControlSafeBootMinimalcbfsregistry2017
lea ecx, [ebp - 0xa10]
call fcn.004075e0
push ebx
lea edx, [ebp - 0xa10]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00408b80
add esp, 0xc
xor eax, eax
push 0x40e
mov word [ebp - 0xa10], ax
push ebx
lea ecx, [ebp - 0xa0e]
push ecx
call fcn.00427f40
add esp, 0xc
mov edx, str.SYSTEMCurrentControlSetControlSafeBootNetworkcbfsregistry2017.sys
lea ecx, [ebp - 0xa10]
call fcn.004075e0
push ebx
lea edx, [ebp - 0xa10]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00408b80
add esp, 0xc
push 0x40e
lea ecx, [ebp - 0xa0e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0xa10], ax
call fcn.00427f40
add esp, 0xc
mov edx, str.SYSTEMCurrentControlSetControlSafeBootNetworkcbfsregistry2017
lea ecx, [ebp - 0xa10]
call fcn.004075e0
push ebx
lea edx, [ebp - 0xa10]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00408b80
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc78]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421294
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0xc18]
push edx
call edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x4176a5
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4176a5