Function at 0x416cd0
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4985dd
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x88], ecx
mov esi, dword [ebp + 0x14]
mov edi, 5
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
cmp dword [esi + 0x14], 8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, esi
mov dword [ebp - 0x78], 0
jb 0x416d2b
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 0x416f43
cmp dword [edx + 0x14], 8
jb 0x416d52
mov edx, dword [edx]
push ecx
push edx
push 1
push 0x4b3a90
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x40]
call fcn.00409e40
push 1
push 0x4b3a90
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00409ee0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
xor ecx, ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], cl
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x14], 8
jb 0x416dc0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x7c]
mov edx, ecx
cmp dword [ecx + 0x14], 8
jb 0x416dcd
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x84]
push 1
push 3
push 0x10
push 0xf01ff
push eax
push edx
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
cmp edx, 8
jb 0x416e33
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416e29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416f48
push edx
push ecx
call fcn.0046e38b
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x416e88
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416e7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416f48
push edx
push ecx
call fcn.0046e38b
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 0x416ed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x416f10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push 0x4b3a94
push eax
call fcn.0041d420
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409400
lea ecx, [ebp - 0x70]
call fcn.004036b0
jmp 0x416f26
push dword [ebp - 0x80]
lea ecx, [ebp - 0x58]
call fcn.0040ba30
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov edi, dword [ebp - 0x74]
cmovae eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x58]
call fcn.004036b0
mov ecx, dword [ebp - 0x7c]
mov edx, esi
call fcn.00421ad0
xor ecx, ecx
mov edi, 6
test al, al
cmovne edi, ecx
mov eax, edi
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.0046e348
mov esp, ebp
pop ebp
ret
call fcn.00401750
call fcn.00473154
int3