Function at 0x4188c0
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dfcd
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x80], ecx
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
cmp dword [esi + 0x14], 7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, esi
mov dword [ebp - 0x78], 0
jbe 0x418912
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
mov eax, bind
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x418b5a
cmp dword [edx + 0x14], 7
jbe 0x418939
mov edx, dword [edx]
push ecx
push edx
push 1
push 0x4b5a28
push ecx
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x40]
call fcn.00409a10
push 0x4b5a28
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0040be90
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
cmp dword [ebp - 0x14], 7
mov eax, dword [ebp - 0x74]
cmova edx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 7
jbe 0x4189b1
mov eax, dword [eax]
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x4189bb
mov ecx, dword [edi]
push 0
push 0
push 0
push 0
push 0
push edx
push 1
push 3
push 0x10
push 0xf01ff
push eax
push ecx
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
cmp ecx, 7
jbe 0x418a19
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418a0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418b5f
push ecx
push edx
call fcn.00471b8b
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x418a6e
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418a64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418b5f
push ecx
push edx
call fcn.00471b8b
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x74], eax
jne 0x418aef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x418b28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push 0x4b5a2c
push eax
call fcn.0041f5e0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x418ae0
mov ecx, esi
call fcn.004037b0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x70]
call fcn.004037b0
mov ecx, 5
jmp 0x418b3d
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x58]
call fcn.0040ba50
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
push 1
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x58]
call fcn.004037b0
mov edx, esi
mov ecx, edi
call fcn.00423fd0
xor edx, edx
mov ecx, 6
test al, al
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
call fcn.00401510
call fcn.00477334
int3