Function at 0x47f198
Capabilities:
Modify service
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47f44f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42fb14]
call fcn.0042fc14
mov dword [ebp - 8], eax
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0042fcb4
mov cl, 1
mov edx, 0x47f464
mov eax, dword [ebp - 8]
call fcn.0042fd18
test al, al
je 0x47f266
xor ebx, ebx
push ebp
mov eax, ebx
call fcn.0047ef88
pop ecx
inc ebx
cmp ebx, 5
jne 0x47f1e9
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x530]
mov edx, 0x47f494
mov eax, dword [ebp - 8]
call fcn.0042ff78
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x534]
mov edx, 0x47f4a8
mov eax, dword [ebp - 8]
call fcn.0042ff78
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x538]
mov edx, 0x47f4bc
mov eax, dword [ebp - 8]
call fcn.0042ff78
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x53c]
mov edx, 0x47f4cc
mov eax, dword [ebp - 8]
call fcn.0042ff78
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x540]
mov edx, 0x47f4dc
mov eax, dword [ebp - 8]
call fcn.0042ffbc
mov eax, dword [ebp - 8]
call fcn.0042fc84
mov cl, 1
mov edx, 0x47f4ec
mov eax, dword [ebp - 8]
call fcn.0042fd18
test al, al
je 0x47f2b9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x541], 0
je 0x47f2ac
lea edx, [ebp - 0x10]
mov eax, 0x47f524
call fcn.0047e6dc
mov ecx, dword [ebp - 0x10]
mov edx, 0x47f538
mov eax, dword [ebp - 8]
call fcn.0042fed4
jmp 0x47f2b9
mov edx, 0x47f538
mov eax, dword [ebp - 8]
call fcn.0042fe3c
mov eax, dword [ebp - 8]
call fcn.0042fc84
call fcn.0047e588
test al, al
je 0x47f3d9
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov esi, eax
test esi, esi
jne 0x47f2f5
mov ecx, 0x47f548
mov dl, 1
mov eax, dword [0x4074d4]
call fcn.0040bed4
call fcn.00403aac
push 0xf01ff
push 0x47f570
push esi
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
test ebx, ebx
jne 0x47f34b
lea edx, [ebp - 0x14]
mov eax, 0x47f584
call fcn.0047e6dc
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov ecx, 0x47f59c
call fcn.00404400
mov eax, dword [ebp - 0xc]
call fcn.004045b4
mov dx, 5
call fcn.004690c0
push 0xf01ff
push 0x47f570
push esi
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
test ebx, ebx
jne 0x47f365
mov ecx, 0x47f5b8
mov dl, 1
mov eax, dword [0x4074d4]
call fcn.0040bed4
call fcn.00403aac
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x542]
mov ecx, 3
mov edx, 2
call fcn.00428338
push eax
push 0xffffffffffffffff
push ebx
call sub.advapi32.dll_ChangeServiceConfigA
test eax, eax
jne 0x47f3cb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x1c]
call fcn.0040b6a8
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x47f5dc
call fcn.00404400
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4074d4]
call fcn.0040bed4
call fcn.00403aac
push ebx
call sub.advapi32.dll_CloseServiceHandle
push esi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x47f42c
mov cl, 1
mov edx, 0x47f614
mov eax, dword [ebp - 8]
call fcn.0042fd18
test al, al
je 0x47f424
mov eax, dword [ebp - 4]
cmp byte [eax + 0x542], 0
je 0x47f417
lea edx, [ebp - 0x20]
mov eax, 0x47f654
call fcn.0047e6dc
mov ecx, dword [ebp - 0x20]
mov edx, 0x47f66c
mov eax, dword [ebp - 8]
call fcn.0042fed4
jmp 0x47f424
mov edx, 0x47f66c
mov eax, dword [ebp - 8]
call fcn.0042fe3c
mov eax, dword [ebp - 8]
call fcn.0042fc84
mov eax, dword [ebp - 8]
call fcn.00403320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f456
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404118
ret