Function at 0x409850
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fb19
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x467074]
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 - 0x6c], ecx
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x70], eax
mov eax, esi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
jb 0x4098ac
mov eax, dword [esi]
xor edx, edx
mov dword [esi + 0x10], 0
mov word [eax], dx
mov dword [ebp - 4], edx
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, dword [ecx + 0x10]
lea ecx, [ebp - 0x28]
inc eax
mov dword [ebp - 0x18], edx
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x5c], 1
call fcn.00402f00
push 0x4606f8
lea ecx, [ebp - 0x28]
call fcn.00402120
push dword [ebp - 0x64]
lea ecx, [ebp - 0x28]
call fcn.00403070
push 0x4606f8
lea ecx, [ebp - 0x28]
call fcn.00402120
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x68]
cmovae edx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x40994c
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x409956
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 - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
cmp edx, 8
jb 0x4099b4
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4099aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b5c
push edx
push ecx
call fcn.0042b435
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x409a09
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4099ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b61
push edx
push ecx
call fcn.0042b435
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x5c], eax
jne 0x409adb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x409b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push 0x4606fc
push eax
call fcn.0040e6a0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x409a7f
mov ecx, esi
call fcn.00401220
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
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x409ab9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409aaf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b66
push edx
push ecx
call fcn.0042b435
add esp, 8
mov ecx, 5
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.0042b3f4
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
call fcn.00401eb0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
push 1
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x409b42
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409b38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b6b
push edx
push ecx
call fcn.0042b435
add esp, 8
mov edx, esi
mov ecx, edi
call fcn.004134e0
xor edx, edx
mov ecx, 6
test al, al
cmovne ecx, edx
jmp 0x409abe
call fcn.0043012a
call fcn.0043012a
call fcn.0043012a
call fcn.0043012a
int3