Function at 0x470c90
Capabilities:
Delete registry value
Delete service
Persist via run registry key
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488230
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x48], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov word [ebp - 0x24c], 0
push 0x1fe
push 0
lea eax, [ebp - 0x24a]
push eax
call fcn.00453b10
add esp, 0xc
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x260]
call fcn.0046f580
mov ecx, dword [ebp - 0x260]
call fcn.00433be0
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x470d88
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x470d88
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x44], 0
jne 0x470d83
jmp 0x470f52
jmp 0x470f5c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x470dd0
push pe_nt_image_headers32
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, dword [ebp - 0x260]
call fcn.0046fb90
push eax
push 0x490398
call fcn.00458986
add esp, 8
jmp 0x470f5c
push 0xf01ff
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x470e1f
push pe_nt_image_headers32
lea edx, [ebp - 0x24c]
push edx
mov ecx, dword [ebp - 0x260]
call fcn.0046fb90
push eax
push 0x4903d0
call fcn.00458986
add esp, 8
jmp 0x470f5c
mov eax, dword [ebp - 0x260]
add eax, 0x18
push eax
push 1
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x470ee8
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 8]
push eax
push 0x490404
call fcn.00458986
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x260]
add ecx, 0x18
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x470eac
mov eax, dword [ebp - 0x260]
cmp dword [eax + 0x1c], 3
jne 0x470ea8
push 0x490420
call fcn.00458986
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x470eaa
jmp 0x470eac
jmp 0x470e6a
mov ecx, dword [ebp - 0x260]
cmp dword [ecx + 0x1c], 1
jne 0x470ed1
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 8]
push eax
push 0x490424
call fcn.00458986
add esp, 8
jmp 0x470ee8
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx + 8]
push edx
push str._n_s_failed_to_stop._n
call fcn.00458986
add esp, 8
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jne 0x470f28
push pe_nt_image_headers32
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, dword [ebp - 0x260]
call fcn.0046fb90
push eax
push str.DeleteService_failed____s_n
call fcn.00458986
add esp, 8
jmp 0x470f5c
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 8]
push eax
push str._s_removed._n
call fcn.00458986
add esp, 8
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x260]
mov eax, dword [edx + 0x4c]
call eax
mov dword [ebp - 0x254], 1
cmp dword [ebp - 0x3c], 0
je 0x470f73
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x250], 0
je 0x470f93
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x38]
call fcn.004838a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00484540
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00483840
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret