Function at 0x10004000
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea ecx, [esp + 0x38]
call fcn.1000dd80
push ebx
lea ecx, [esp + 0x30]
call fcn.1000dd80
push ebx
lea ecx, [esp + 0x54]
call fcn.1000dd80
push ebx
lea ecx, [esp + 0x10]
call fcn.1000dd80
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
call fcn.1000dd80
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x1000432a
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.10002210
mov ecx, dword [ebp + 0x14]
add esp, 8
push ecx
sub esp, 8
mov edi, eax
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call fcn.1000dd80
lea edx, [esp + 0x28]
push edx
call fcn.10005d70
add esp, 0x10
push eax
lea ecx, [esp + 0x38]
call fcn.1000e0f0
lea ecx, [esp + 0x1c]
call fcn.1000d8c0
mov eax, dword [ebp + 0x1c]
push eax
push esi
call fcn.10002210
add esp, 8
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], eax
call fcn.1000dfa0
mov ecx, dword [ebp + 0x20]
push ecx
push esi
call fcn.10002210
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x28]
push eax
push ecx
push esi
call fcn.10002810
mov edx, dword [ebp + 0x2c]
push edx
push esi
call fcn.10002210
add esp, 0x20
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], eax
call fcn.1000dfa0
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x1000411d
push eax
push esi
call fcn.10002210
add esp, 8
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
call fcn.1000dfa0
mov ebx, 1
push str.LocalSystem
lea ecx, [esp + 0x10]
call fcn.1000dc80
test eax, eax
jne 0x1000413f
push 0x1001a3f4
lea ecx, [esp + 0x28]
call fcn.1000dfa0
jmp 0x1000417c
push 0
push 0
push 0x5c
lea ecx, [esp + 0x18]
call fcn.1000dcd0
test eax, eax
jne 0x1000417c
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push 0x1001a4ec
push ecx
call fcn.1000e2c0
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
call fcn.1000e0f0
lea ecx, [esp + 0x1c]
call fcn.1000d8c0
mov al, byte [ebp + 0x34]
test al, al
mov dword [esp + 0x1c], 0x10
je 0x10004193
mov dword [esp + 0x1c], 0x110
lea edx, [esp + 0x34]
push edx
push str.__hv
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.1000e1e0
add esp, 0xc
push eax
lea edx, [esp + 0x50]
push edx
call fcn.1000e100
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
call fcn.1000e0f0
lea ecx, [esp + 0x48]
call fcn.1000d8c0
lea ecx, [esp + 0x58]
call fcn.1000d8c0
test ebx, ebx
je 0x10004200
lea ecx, [esp + 0x24]
call fcn.1000dc70
test eax, eax
jne 0x100041f1
mov ebx, 0x1001a3f4
jmp 0x10004202
push 0
lea ecx, [esp + 0x28]
call fcn.1000d920
mov ebx, eax
jmp 0x10004202
xor ebx, ebx
push 2
lea ecx, [esp + 0x38]
call fcn.1000dd60
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [esp + 0x48], eax
jne 0x10004282
test edi, edi
je 0x1000422e
push edi
call fcn.1000f19d
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1000423f
push eax
call fcn.1000f19d
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10004250
push eax
call fcn.1000f19d
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10004261
push eax
call fcn.1000f19d
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10004272
push eax
call fcn.1000f19d
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000432a
push 0
push ebx
lea ecx, [esp + 0x14]
call fcn.1000dd60
mov ebx, dword [esp + 0x4c]
push eax
lea edx, [esp + 0x6c]
push edx
push 0
push ebx
lea ecx, [esp + 0x44]
call fcn.1000dd60
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [ebp + 0x18]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x10004362
test edi, edi
je 0x100042d0
push edi
call fcn.1000f19d
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100042e1
push eax
call fcn.1000f19d
add esp, 4
test ebx, ebx
je 0x100042ee
push ebx
call fcn.1000f19d
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100042ff
push eax
call fcn.1000f19d
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10004310
push eax
call fcn.1000f19d
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x48]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
lea ecx, [esp + 0x24]
call fcn.1000d8c0
lea ecx, [esp + 0xc]
call fcn.1000d8c0
lea ecx, [esp + 0x50]
call fcn.1000d8c0
lea ecx, [esp + 0x2c]
call fcn.1000d8c0
lea ecx, [esp + 0x34]
call fcn.1000d8c0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
sub esp, 8
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.1000ddc0
mov eax, dword [ebp + 0x38]
push eax
push esi
call fcn.10002ad0
add esp, 0x10
test edi, edi
je 0x1000438f
push edi
call fcn.1000f19d
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100043a0
push eax
call fcn.1000f19d
add esp, 4
test ebx, ebx
je 0x100043ad
push ebx
call fcn.1000f19d
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100043be
push eax
call fcn.1000f19d
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100043cf
push eax
call fcn.1000f19d
add esp, 4
mov ecx, dword [esp + 0x48]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
lea ecx, [esp + 0x24]
call fcn.1000d8c0
lea ecx, [esp + 0xc]
call fcn.1000d8c0
lea ecx, [esp + 0x50]
call fcn.1000d8c0
lea ecx, [esp + 0x2c]
call fcn.1000d8c0
lea ecx, [esp + 0x34]
call fcn.1000d8c0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x34