Function at 0x41a890
Capabilities:
Create service
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x430820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x904
push ebx
push ebp
push esi
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x91c], 3
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x514]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x928]
test edi, edi
jne 0x41a901
mov edi, 0x4313b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x938]
test edi, edi
jne 0x41a932
mov edi, 0x4313b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x94]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x948]
test edi, edi
jne 0x41a966
mov edi, 0x4313b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x514]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x958]
test edi, edi
jne 0x41a99a
mov edi, 0x4313b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ebx, 2
and ecx, 3
push ebx
push 0
push 0
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
test esi, esi
je 0x41a9fb
lea ecx, [esp + 0x14]
push 0xf01ff
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x41aa70
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
push 1
lea ecx, [esp + 0x928]
mov byte [esp + 0x920], bl
call fcn.0040aae0
push 1
lea ecx, [esp + 0x938]
mov byte [esp + 0x920], 1
call fcn.0040aae0
push 1
lea ecx, [esp + 0x948]
mov byte [esp + 0x920], 0
call fcn.0040aae0
push 1
lea ecx, [esp + 0x958]
mov dword [esp + 0x920], 0xffffffff
call fcn.0040aae0
xor eax, eax
mov ecx, dword [esp + 0x914]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x910
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
push esi
call edi
push ebx
push 0
push 0
call ebp
mov esi, eax
test esi, esi
je 0x41a9fb
push 0
push 0
push 0
push 0
lea edx, [esp + 0x124]
push 0
push edx
push 0
push ebx
push 0x10
lea eax, [esp + 0xb8]
push 0x42
lea ecx, [esp + 0x3c]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebp, eax
test ebp, ebp
jne 0x41ab60
push 1
lea ecx, [esp + 0x928]
mov byte [esp + 0x920], bl
call fcn.0040aae0
push 1
lea ecx, [esp + 0x938]
mov byte [esp + 0x920], 1
call fcn.0040aae0
mov ecx, dword [esp + 0x948]
xor esi, esi
cmp ecx, esi
je 0x41ab18
mov al, byte [ecx - 1]
test al, al
je 0x41ab0e
cmp al, 0xff
je 0x41ab0e
dec al
mov byte [ecx - 1], al
jmp 0x41ab18
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x958]
mov dword [esp + 0x948], esi
cmp ecx, esi
mov dword [esp + 0x94c], esi
mov dword [esp + 0x950], esi
je 0x41aa55
mov al, byte [ecx - 1]
test al, al
je 0x41ab51
cmp al, 0xff
je 0x41ab51
dec al
mov byte [ecx - 1], al
jmp 0x41aa55
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
jmp 0x41aa55
lea eax, [esp + 0x10]
lea edx, [esp + 0x514]
push eax
push 1
push ebp
mov dword [esp + 0x1c], edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push ebp
call edi
push esi
call edi
mov ecx, dword [esp + 0x928]
xor esi, esi
cmp ecx, esi
je 0x41aba8
mov al, byte [ecx - 1]
test al, al
je 0x41ab9e
cmp al, 0xff
je 0x41ab9e
dec al
mov byte [ecx - 1], al
jmp 0x41aba8
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x938]
mov dword [esp + 0x928], esi
cmp ecx, esi
mov dword [esp + 0x92c], esi
mov dword [esp + 0x930], esi
je 0x41abe4
mov al, byte [ecx - 1]
test al, al
je 0x41abda
cmp al, 0xff
je 0x41abda
dec al
mov byte [ecx - 1], al
jmp 0x41abe4
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x948]
mov dword [esp + 0x938], esi
cmp ecx, esi
mov dword [esp + 0x93c], esi
mov dword [esp + 0x940], esi
je 0x41ac20
mov al, byte [ecx - 1]
test al, al
je 0x41ac16
cmp al, 0xff
je 0x41ac16
dec al
mov byte [ecx - 1], al
jmp 0x41ac20
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x958]
mov dword [esp + 0x948], esi
cmp ecx, esi
mov dword [esp + 0x94c], esi
mov dword [esp + 0x950], esi
je 0x41ac64
mov al, byte [ecx - 1]
test al, al
je 0x41ac5a
cmp al, 0xff
je 0x41ac5a
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x41aa57
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov eax, 1
jmp 0x41aa57