Function at 0x4a6eec
Capabilities:
Check os version
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff30
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a71fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
xor edx, edx
push ebp
push 0x4a71b5
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, 0x4a7214
call fcn.00404364
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
jne 0x4a6f63
call fcn.0040e234
mov eax, dword [ebp - 0xa8]
cmp dword [ebp - 0x9c], 2
jne 0x4a6fab
cmp eax, 5
jl 0x4a6f93
lea eax, [ebp - 8]
mov edx, 0x4a7214
call fcn.00404364
lea eax, [ebp - 0x10]
mov edx, 0x4a7238
call fcn.00404364
jmp 0x4a6fc1
mov ecx, 0x4a7244
mov dl, 1
mov eax, dword [0x407c54]
call fcn.0040cb24
call fcn.00403c84
jmp 0x4a6fc1
mov ecx, 0x4a727c
mov dl, 1
mov eax, dword [0x407c54]
call fcn.0040cb24
call fcn.00403c84
lea edx, [ebp - 0xb0]
mov al, 1
call fcn.0049c134
push dword [ebp - 0xb0]
push 0x4a72a0
push 0x4a72b4
push 0x4a72c4
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.0040465c
mov ecx, dword [ebp - 0xc]
mov edx, 0x4a72d4
mov eax, 0x4a72e0
call fcn.0049bfd4
test al, al
jne 0x4a703a
mov eax, 0x4a72b4
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0xb
lea eax, [ebp - 0xb8]
push eax
push 0
mov ecx, dword [0x4e9a38]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407c54]
call fcn.0040cb60
call fcn.00403c84
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4a71a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4a70c0
mov eax, 0x4a72b4
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0xcc]
call fcn.0040c2ec
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], 0xb
lea eax, [ebp - 0xc8]
push eax
push 1
mov ecx, dword [0x4e97f0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407c54]
call fcn.0040cb60
call fcn.00403c84
test bl, bl
je 0x4a70cb
mov ebx, 3
jmp 0x4a70cd
xor ebx, ebx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040479c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040479c
push eax
push 0
push ebx
push 2
push 0xf01ff
push 0x4a72e8
push 0x4a72e8
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x18], eax
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp dword [ebp - 0x18], 0
jne 0x4a7178
cmp ebx, 0x420
je 0x4a7178
cmp ebx, 0x431
je 0x4a7178
mov eax, 0x4a72b4
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0xc4], 0xb
lea edx, [ebp - 0xd0]
mov eax, ebx
call fcn.0040c2ec
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], 0xb
lea eax, [ebp - 0xc8]
push eax
push 1
mov ecx, dword [0x4e9b7c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407c54]
call fcn.0040cb60
call fcn.00403c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a71ab
cmp dword [ebp - 0x18], 0
je 0x4a7194
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x14], 0
je 0x4a71a3
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret