Function at 0x423ef0
Capabilities:
Create service
Modify service
Start service

Disassembly:
push 0xffffffffffffffff
push 0x499450
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x423fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x121eac0
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
push 0xa
mov edi, 7
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push str.installret
mov word [esi + 4], ax
call fcn.00402bd0
mov dword [esp + 0x50], ebx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x54], esp
push 0xa
xor ecx, ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push str.installret
mov word [esi + 4], cx
call fcn.00402bd0
mov byte [esp + 0x6c], 1
mov dword [esp + 0x6c], 0xffffffff
call fcn.00404570
add esp, 0x3c
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0xf01ff
lea ebp, [edi + 0x208]
push ebp
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x424174
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
je 0x424044
mov dword [esp + 0x18], 0
call esi
add eax, 0x1312d00
push eax
sub esp, 0x1c
mov edx, str.installret
mov eax, esp
mov dword [esp + 0x40], esp
call fcn.004028a0
mov dword [esp + 0x50], 2
sub esp, 0x1c
mov edx, str.installret
mov eax, esp
mov dword [esp + 0x60], esp
call fcn.004028a0
mov byte [esp + 0x6c], 3
mov dword [esp + 0x6c], 0xffffffff
call fcn.00404570
add esp, 0x3c
jmp 0x424248
push 0
push 0x40000080
push 3
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x424076
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor ecx, ecx
call fcn.00424270
jmp 0x424248
mov eax, dword [edi + 0xc38]
mov ecx, dword [edi + 0xc30]
push 0
push 0
push 0
push 0
push 0
lea edx, [edi + 0x618]
push edx
mov edx, dword [edi + 0xc34]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push 0xf003f
lea eax, [edi + 0x820]
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x424174
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
jne 0x42412c
mov edx, dword [esp + 0x1c]
push 0xf01ff
push ebp
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x424174
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1406f40
push eax
sub esp, 0x1c
mov edx, str.installret
mov eax, esp
mov dword [esp + 0x44], esp
call fcn.004028a0
mov dword [esp + 0x50], 4
sub esp, 0x1c
mov edx, str.installret
mov eax, esp
mov dword [esp + 0x5c], esp
call fcn.004028a0
mov byte [esp + 0x6c], 5
jmp 0x42402f
mov dword [esp + 0x18], 0
call esi
add eax, 0x1406f40
push eax
sub esp, 0x1c
mov edx, str.installret
mov eax, esp
mov dword [esp + 0x44], esp
call fcn.004028a0
mov dword [esp + 0x50], 6
sub esp, 0x1c
mov edx, str.installret
mov eax, esp
mov dword [esp + 0x5c], esp
call fcn.004028a0
mov byte [esp + 0x6c], 7
jmp 0x42402f
push edi
xor ecx, ecx
call fcn.00424270
test esi, esi
je 0x424248
mov ebx, dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0
push 0
push esi
call ebx
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x4241cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x4241c7
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push ebp
push ebp
push esi
call ebx
mov dword [esp + 0x18], eax
mov ebp, eax
test ebp, ebp
je 0x4241f2
push 0
push 0x40000080
push 3
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x424241
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x424241
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x14fb180
push eax
sub esp, 0x1c
mov edx, str.installret
mov eax, esp
mov dword [esp + 0x44], esp
call fcn.004028a0
mov dword [esp + 0x50], 8
sub esp, 0x1c
mov edx, str.installret
mov eax, esp
mov dword [esp + 0x5c], esp
call fcn.004028a0
mov byte [esp + 0x6c], 9
mov dword [esp + 0x6c], 0xffffffff
call fcn.00404570
add esp, 0x3c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret