Function at 0x4e75e0
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x656558
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0x18], esi
jne 0x4e7658
push 0x104
lea eax, [ebp - 0x234]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4e764f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4e7633
and eax, 0xffff
or eax, 0x80070000
push str.::GetModuleFileNameW__0__awcBuffer__dwLength_
push eax
lea ecx, [ebp - 0x28]
call fcn.0040de50
push 0x6ba4dc
lea ecx, [ebp - 0x28]
push ecx
call fcn.0060fb01
lea edx, [ebp - 0x234]
mov dword [ebp + 0x18], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0xc]
lea ebx, [ebx]
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test esi, esi
je 0x4e76b3
test esi, 0xffff0000
jne 0x4e76b3
movzx edi, si
push 0
push edi
call fcn.00403bf0
add esp, 8
test eax, eax
je 0x4e76bc
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.00407a90
jmp 0x4e76bc
push esi
lea ecx, [ebp - 0x10]
call fcn.00409320
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push 0xf003f
push 0
push eax
call fcn.005ba710
movzx ecx, al
add esp, 4
neg ecx
sbb ecx, ecx
not ecx
and ecx, esi
push ecx
call ebx
mov edi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e7706
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x4e7728
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x14
jl 0x4e7670
xor esi, esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
test edi, edi
je 0x4e7763
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push esi
push esi
push ecx
push esi
push esi
push edx
push 1
push 3
push eax
mov eax, dword [ebp + 8]
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
mov dword [ebp - 0x14], esi
test eax, eax
jne 0x4e7798
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4e77af
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4e7782
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4e77af
mov dword [ebp + 0x18], ecx
lea ecx, [ebp + 0x18]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov byte [ebp - 4], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4e77c0
push esi
call ebx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4e77ce
push edi
call ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret