Function at 0x8478570
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Delete file
Move file
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84fa804
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0xf0]
push 0x104007b9
mov dword [ebp - 0xf0], 0
call fcn.08441940
mov dword [ebp - 4], 0
call fcn.0840e590
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x84785de
push 0x80004005
call fcn.0840d910
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xe0], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 1
jge 0x847861c
push 0x104
lea ecx, [ebp - 0xe0]
call fcn.0840e870
mov esi, dword [ebp - 0xe0]
cmp dword [esi - 8], 0x104
jge 0x847862f
push 0x80070057
call fcn.0840d910
push 0x104
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
push eax
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x8478625
cmp eax, dword [esi - 8]
jg 0x8478625
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x8478693
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 0x1a
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x10402aec
push 0x1041f4b8
push eax
call fcn.0849cd2d
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0xe4], edi
test edi, edi
jne 0x84786be
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 6
jmp 0x8478677
push 0xf01ff
push dword [ebx]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
test ebx, ebx
jne 0x84786ec
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 0x1b
jmp 0x8478677
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push ebx
call edi
push dword [ebp - 0x30]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x48], eax
push ecx
push dword [ebp - 0x30]
push eax
push ebx
call edi
mov edi, dword [ebp - 0x48]
test eax, eax
jne 0x8478748
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0xe4]
call esi
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 0x1c
jmp 0x8478677
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push dword [edi + 0xc]
call fcn.08408480
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.08468f00
lea ecx, [ebp - 0x34]
call fcn.08471f60
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x34]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x84787a6
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0xe4]
call esi
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 0x1d
jmp 0x8478677
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
push eax
call fcn.0844a650
add eax, 0x10
add esp, 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0x10402aec
push 0
sub esp, 0xc
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x40], 5
lea eax, [ebp - 0xe5]
mov dword [ebp - 0xdc], 0x6b306964
lea edx, [ebp - 0x4d]
mov dword [ebp - 0xd8], 0x3646794f
push eax
push edx
lea edi, [ebp - 0xdc]
mov dword [ebp - 0xd4], 0x77675442
push edi
mov dword [ebp - 0xd0], 0x38734265
mov dword [ebp - 0xcc], 0x34494248
mov dword [ebp - 0xc8], 0x4763444e
mov dword [ebp - 0xc4], 0x7438524d
mov dword [ebp - 0xc0], 0x6b417a65
mov dword [ebp - 0xbc], 0x32396a47
mov dword [ebp - 0xb8], 0x544d5150
mov dword [ebp - 0xb4], 0x76307744
mov dword [ebp - 0xb0], 0x626f794d
mov dword [ebp - 0xac], 0x486f7a41
mov dword [ebp - 0xa8], 0x61516745
mov dword [ebp - 0xa4], 0x4638425a
mov dword [ebp - 0xa0], 0x6e6b6744
mov dword [ebp - 0x9c], 0x34316a4b
mov dword [ebp - 0x98], 0x36456e45
mov dword [ebp - 0x94], 0x486b7745
mov dword [ebp - 0x90], 0x596f5861
mov dword [ebp - 0x8c], 0x6f55524d
mov dword [ebp - 0x88], 0x64555445
mov dword [ebp - 0x84], 0x566f3248
mov dword [ebp - 0x80], 0x66737842
mov dword [ebp - 0x7c], 0x7945584a
mov dword [ebp - 0x78], 0x70776a63
mov dword [ebp - 0x74], 0x364a434f
mov dword [ebp - 0x70], 0x30554446
mov dword [ebp - 0x6c], 0x77707749
mov dword [ebp - 0x68], 0x48554150
mov dword [ebp - 0x64], 0x78316948
mov dword [ebp - 0x60], 0x786c7950
mov dword [ebp - 0x5c], 0x384d414f
mov dword [ebp - 0x58], 0x4459524c
mov dword [ebp - 0x54], 0x4141675a
mov word [ebp - 0x50], 0x4741
mov byte [ebp - 0x4e], 0x4d
call fcn.08409550
lea eax, [ebp - 0xfc]
push eax
call fcn.0844ba20
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.08417430
push eax
lea ecx, [ebp - 0x48]
call fcn.08469290
test eax, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xfc]
sete bl
call fcn.0840b0f0
mov edi, dword [ebp - 0x48]
test bl, bl
je 0x847898a
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], 0x1e
jmp 0x8478b1b
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 9
push edi
push dword [ebp - 0x34]
call ebx
test eax, eax
jne 0x84789ab
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], 0x1f
jmp 0x8478b1b
push 9
push dword [ebp - 0x34]
push esi
call ebx
test eax, eax
jne 0x84789ce
push 9
push dword [ebp - 0x34]
push edi
call ebx
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], 0x20
jmp 0x8478b1b
mov ebx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x84789ec
mov dword [ebp - 0x3c], 0x21
jmp 0x8478b1b
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x8478a19
cmp eax, 3
je 0x8478a19
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x8478a16
mov dword [ebp - 0x3c], 0x22
jmp 0x8478b1b
mov eax, dword [ebp - 0x28]
xor esi, esi
cmp eax, 1
je 0x8478a97
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
inc esi
cmp eax, 0x258
jae 0x8478a44
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x8478a91
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0xec], esp
push 0x104029d0
call fcn.08408480
push 0x1388
push ecx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 6
mov ecx, esp
push eax
call fcn.084416b0
mov byte [ebp - 4], 4
call fcn.08464610
add esp, 0xc
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.084416b0
call fcn.08460640
add esp, 4
test eax, eax
jne 0x8478ac5
cmp dword [ebp - 0x28], 1
jne 0x8478a20
mov esi, dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0
push 0
push ebx
call esi
test eax, eax
jne 0x8478ace
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 9
push dword [ebp - 0x34]
push edi
call eax
push 0
push 0
push ebx
call esi
mov dword [ebp - 0x3c], 0x24
jmp 0x8478b1b
mov dword [ebp - 0x3c], 0x23
jmp 0x8478b1b
xor esi, esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
inc esi
cmp eax, 0x258
jae 0x8478afc
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x8478afc
cmp dword [ebp - 0x28], 4
jne 0x8478ad0
jmp 0x8478b1b
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 9
push dword [ebp - 0x34]
push edi
call eax
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x3c], 0x25
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0xe4]
call esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x8478b3e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x3c], 0
je 0x8478b63
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x100]
call fcn.084446d0
push 0x1041f4b8
lea eax, [ebp - 0x100]
jmp 0x847868d
lea ecx, [ebp - 0x48]
call fcn.084449e0
lea ecx, [ebp - 0x34]
call fcn.084449e0
lea ecx, [ebp - 0xe0]
call fcn.084449e0
lea ecx, [ebp - 0xf0]
call fcn.0840abb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret