Function at 0x4012a0
Capabilities:
Accept command line arguments
Check os version
Create process on windows
Modify service
Query service status
Set registry value
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x59c
mov eax, dword [0x423190]
push ebx
push esi
push edi
mov dword [esp + 0x5a4], eax
push 0x208
lea eax, [esp + 0x194]
push eax
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov ecx, 0x44
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x7c], 6
jb 0x401569
cmp dword [esp + 0x88], 2
jne 0x401569
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 0x14], esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x40149b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
push edi
mov dword [esp + 0x14], edi
call fcn.0040c394
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401484
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [ebx], 0x22
mov esi, ebx
jne 0x40139b
lea esi, [ebx + 2]
sub edx, 2
mov eax, esi
cmp word [eax], 0x22
mov dword [esp + 0x10], edx
je 0x401396
cmp word [eax], 0
je 0x401390
add eax, 2
cmp word [eax], 0x22
jne 0x401381
cmp word [eax], 0x22
jne 0x40139b
mov word [eax], 0x20
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareXLacc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push edx
push esi
push 1
push 0
push str.CurrentPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push pe_nt_image_headers32
push str.XLaccService
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
lea eax, [esp + 0x5c]
push eax
push 0x85
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
mov edi, eax
call fcn.0040c27c
add esp, 4
test edi, edi
jne 0x401474
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x190]
push eax
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x30], str.runas
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
xor al, al
mov ecx, dword [esp + 0x5a4]
call fcn.0040c26e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xf01ff
push str.XLaccService
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4014be
mov ecx, ebx
call fcn.00401170
jmp 0x401559
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push esi
call ebx
test eax, eax
jne 0x40152e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4014f0
mov eax, dword [esp + 0x10]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
jmp 0x4014f4
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
push esi
call ebx
test eax, eax
je 0x40152e
cmp dword [edi + 4], 2
je 0x401527
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x28]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x401559
cmp dword [esp + 0x24], 1
jne 0x401559
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov ecx, dword [esp + 0x5a4]
mov al, 1
call fcn.0040c26e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4