Function at 0x401550
Capabilities:
Create service
Delete file
Delete service
Get common file path
Start service
Stop service
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1d4
lea ecx, [esp + 0xd0]
push ebx
push ebp
push esi
push edi
push 0x104
push ecx
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.driverswincl.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
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]
push eax
push 0x80
push 2
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0xf4]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x40179a
lea ecx, [esp + 0x24]
push 0
push ecx
push 0x2000
push 0x40908c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x401675
push 0
push 0
push 0
push 0
lea edx, [esp + 0xf0]
push 0
push edx
push 1
push 3
push 1
push 0xf01ff
push str.WINCL
push str.WINCL
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
je 0x40166e
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf01ff
push str.WINCL
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40166e
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40166e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str..WINCL
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x40172e
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40170b
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0xbe]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xbc]
and eax, 0xffff
shl eax, 0x10
and ecx, 0xffff
mov dword [esp + 0x18], edx
or eax, ecx
mov dword [esp + 0x1c], eax
call fcn.00401160
lea edx, [esp + 0x10]
push 0
push edx
mov dword [esp + 0x28], eax
push 0
push 0
lea eax, [esp + 0x24]
push 0x10
push eax
push 0x84003803
push esi
call edi
mov edx, dword [esp + 0x1e8]
lea ecx, [esp + 0x10]
push 0
push ecx
push 4
push edx
lea eax, [esp + 0x24]
push 0x10
push eax
push 0x84003807
push esi
call edi
push esi
call ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40178c
push 0xf01ff
push str.WINCL
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401785
mov ecx, dword [esp + 0x1e8]
cmp dword [ecx], 0
jne 0x401777
lea edx, [esp + 0xc4]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esp + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d4
ret