Function at 0x46135c
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 0x461613
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x460240]
call fcn.00460340
mov dword [ebp - 8], eax
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.004603e0
mov cl, 1
mov edx, 0x461628
mov eax, dword [ebp - 8]
call fcn.00460444
test al, al
je 0x46142a
xor ebx, ebx
push ebp
mov eax, ebx
call fcn.0046114c
pop ecx
inc ebx
cmp ebx, 5
jne 0x4613ad
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x530]
mov edx, 0x461644
mov eax, dword [ebp - 8]
call fcn.004606a4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x534]
mov edx, 0x461658
mov eax, dword [ebp - 8]
call fcn.004606a4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x538]
mov edx, 0x46166c
mov eax, dword [ebp - 8]
call fcn.004606a4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x53c]
mov edx, 0x46167c
mov eax, dword [ebp - 8]
call fcn.004606a4
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x540]
mov edx, 0x46168c
mov eax, dword [ebp - 8]
call fcn.004606e8
mov eax, dword [ebp - 8]
call fcn.004603b0
mov cl, 1
mov edx, 0x46169c
mov eax, dword [ebp - 8]
call fcn.00460444
test al, al
je 0x46147d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x541], 0
je 0x461470
lea edx, [ebp - 0x10]
mov eax, 0x4616d4
call fcn.004608a8
mov ecx, dword [ebp - 0x10]
mov edx, 0x4616ec
mov eax, dword [ebp - 8]
call fcn.00460600
jmp 0x46147d
mov edx, 0x4616ec
mov eax, dword [ebp - 8]
call fcn.00460568
mov eax, dword [ebp - 8]
call fcn.004603b0
call fcn.0045e738
test al, al
je 0x46159d
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov esi, eax
test esi, esi
jne 0x4614b9
mov ecx, 0x461700
mov dl, 1
mov eax, dword [0x407954]
call fcn.0040c074
call fcn.00403ea8
push 0xf01ff
push 0x461728
push esi
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
test ebx, ebx
jne 0x46150f
lea edx, [ebp - 0x14]
mov eax, 0x461740
call fcn.004608a8
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov ecx, 0x461758
call fcn.004047d0
mov eax, dword [ebp - 0xc]
call fcn.0040497c
mov dx, 5
call fcn.0045d8a4
push 0xf01ff
push 0x461728
push esi
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
test ebx, ebx
jne 0x461529
mov ecx, 0x461774
mov dl, 1
mov eax, dword [0x407954]
call fcn.0040c074
call fcn.00403ea8
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.004285a4
push eax
push 0xffffffffffffffff
push ebx
call sub.advapi32.dll_ChangeServiceConfigA
test eax, eax
jne 0x46158f
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x1c]
call fcn.0040b820
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x46179c
call fcn.004047d0
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x407954]
call fcn.0040c074
call fcn.00403ea8
push ebx
call sub.advapi32.dll_CloseServiceHandle
push esi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x4615f0
mov cl, 1
mov edx, 0x4617d4
mov eax, dword [ebp - 8]
call fcn.00460444
test al, al
je 0x4615e8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x542], 0
je 0x4615db
lea edx, [ebp - 0x20]
mov eax, 0x461814
call fcn.004608a8
mov ecx, dword [ebp - 0x20]
mov edx, 0x46182c
mov eax, dword [ebp - 8]
call fcn.00460600
jmp 0x4615e8
mov edx, 0x46182c
mov eax, dword [ebp - 8]
call fcn.00460568
mov eax, dword [ebp - 8]
call fcn.004603b0
mov eax, dword [ebp - 8]
call fcn.004036dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46161a
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.004044f0
ret