Function at 0x418d10
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eded
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4c0100]
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 0x418d62
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 0x418faa
cmp dword [edx + 0x14], 7
jbe 0x418d89
mov edx, dword [edx]
push ecx
push edx
push 1
push 0x4b6980
push ecx
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x40]
call fcn.00409b60
push 0x4b6980
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0040bf80
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 0x418e01
mov eax, dword [eax]
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x418e0b
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 0x418e69
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418e5f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418faf
push ecx
push edx
call fcn.0047292b
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 0x418ebe
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418eb4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418faf
push ecx
push edx
call fcn.0047292b
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 0x418f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x418f78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push 0x4b6984
push eax
call fcn.00420510
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x418f30
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 0x418f8d
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x58]
call fcn.0040bb40
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.00424d70
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.004728e8
mov esp, ebp
pop ebp
ret
call fcn.00401510
call fcn.004780c4
int3