Function at 0x416d20
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4970dd
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4bb0c8]
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 0x416d7b
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 0x416f93
cmp dword [edx + 0x14], 8
jb 0x416da2
mov edx, dword [edx]
push ecx
push edx
push 1
push 0x4b19f8
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x40]
call fcn.0040a120
push 1
push 0x4b19f8
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0040a1c0
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 0x416e10
mov eax, dword [eax]
mov ecx, dword [ebp - 0x7c]
mov edx, ecx
cmp dword [ecx + 0x14], 8
jb 0x416e1d
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 0x416e83
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416e79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416f98
push edx
push ecx
call fcn.0046cebb
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 0x416ed8
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416ece
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416f98
push edx
push ecx
call fcn.0046cebb
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 0x416f28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x416f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push 0x4b19fc
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, esi
push eax
call fcn.00409730
lea ecx, [ebp - 0x70]
call fcn.00403640
jmp 0x416f76
push dword [ebp - 0x80]
lea ecx, [ebp - 0x58]
call fcn.0040bd10
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.00403640
mov ecx, dword [ebp - 0x7c]
mov edx, esi
call fcn.004216a0
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.0046ce78
mov esp, ebp
pop ebp
ret
call fcn.004016c0
call fcn.00471c84
int3