Function at 0x42dbf0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5256fb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
push ebx
push esi
push edi
lea edi, [ebp - 0x1d4]
mov ecx, 0x72
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x57a2c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x3c]
call fcn.00401dc5
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401d7a
push 0
lea ecx, [ebp - 0x3c]
call fcn.0040240f
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
push 0
lea ecx, [ebp - 0x3c]
call fcn.0040240f
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 4], ecx
lea eax, [ebp + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add eax, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx - 4]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 0xffffffff
jne 0x42dc9c
jmp 0x42dcbc
mov eax, dword [ebp - 0x48]
add eax, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx - 4]
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401a78
jmp 0x42dc82
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x3c]
call fcn.00401a5f
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x3c]
call fcn.00401f55
mov dword [ebp - 0x14], eax
mov esi, esp
push 0xf003f
push 0
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00401127
push eax
call fcn.00401604
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp esi, esp
call fcn.0049a060
push eax
lea ecx, [ebp - 0x64]
call fcn.0040151e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00401686
test eax, eax
je 0x42dd29
mov dword [ebp - 0x1d4], 1
jmp 0x42dd33
mov dword [ebp - 0x1d4], 0
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x70], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049a060
push eax
call fcn.004014d8
add esp, 4
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x70], 0
je 0x42dd72
mov eax, str.hSCM
test eax, eax
je 0x42dd72
mov dword [ebp - 0x1d4], 1
jmp 0x42dd7c
mov dword [ebp - 0x1d4], 0
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x88], 0
jne 0x42ddc0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1cc], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00401bcc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401feb
mov eax, dword [ebp - 0x1cc]
jmp 0x42e005
xor eax, eax
jne 0x42dd57
xor eax, eax
jne 0x42dd11
mov esi, esp
push 0xf01ff
mov ecx, dword [ebp + 8]
call fcn.00401127
push eax
lea ecx, [ebp - 0x64]
call fcn.00401686
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp esi, esp
call fcn.0049a060
push eax
lea ecx, [ebp - 0x94]
call fcn.0040151e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x94]
call fcn.00401686
test eax, eax
je 0x42de1d
mov dword [ebp - 0x1d4], 1
jmp 0x42de27
mov dword [ebp - 0x1d4], 0
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0xa0], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049a060
push eax
call fcn.004014d8
add esp, 4
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xa0], 0
je 0x42de6f
mov eax, str.hService
test eax, eax
je 0x42de6f
mov dword [ebp - 0x1d4], 1
jmp 0x42de79
mov dword [ebp - 0x1d4], 0
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0xb8], ecx
cmp dword [ebp - 0xb8], 0
jne 0x42decf
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00401bcc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00401bcc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401feb
mov eax, dword [ebp - 0x1c0]
jmp 0x42e005
xor eax, eax
jne 0x42de51
xor eax, eax
jne 0x42de02
mov esi, esp
lea eax, [ebp - 0x24]
push eax
push 2
lea ecx, [ebp - 0x94]
call fcn.00401686
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp esi, esp
call fcn.0049a060
test eax, eax
je 0x42df10
mov dword [ebp - 0x1d4], 1
jmp 0x42df1a
mov dword [ebp - 0x1d4], 0
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0xc4], ecx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049a060
push eax
call fcn.004014d8
add esp, 4
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xc4], 0
je 0x42df62
mov eax, str.ChangeServiceConfig2W_hService__2__sfa_
test eax, eax
je 0x42df62
mov dword [ebp - 0x1d4], 1
jmp 0x42df6c
mov dword [ebp - 0x1d4], 0
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0xdc], ecx
cmp dword [ebp - 0xdc], 0
jne 0x42dfbf
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00401bcc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00401bcc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401feb
mov eax, dword [ebp - 0x1b4]
jmp 0x42e005
xor eax, eax
jne 0x42df44
xor eax, eax
jne 0x42dedf
mov dword [ebp - 0x1a8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00401bcc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00401bcc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401feb
mov eax, dword [ebp - 0x1a8]
push edx
mov ecx, ebp
push eax
lea edx, [0x42e038]
call fcn.0049a000
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1d4
cmp ebp, esp
call fcn.0049a060
mov esp, ebp
pop ebp
ret