Function at 0x4d4cf0
Capabilities:
Enumerate pe sections
Start service

Disassembly:
sub esp, 0xec
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
mov ebx, dword [esp + 0xf8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x100]
mov esi, 0x80
push 0x202
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], esi
call fcn.004d4a90
cmp dword [0x559e8c], 0
mov dword [esp + 0x10], eax
mov byte [0x559e90], 0
jne 0x4d51c8
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ebp, ebp
mov edx, dword [0x54fd68]
mov eax, dword [0x55bce4]
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
jne 0x4d4df1
cmp dword [0x559e88], eax
je 0x4d4df1
push 1
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4d4fcc
push 0x10
push 0x413694
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x4d4f89
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call ebx
push edi
call ebx
test esi, esi
jne 0x4d4dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x4d4f73
mov eax, dword [0x55bce4]
mov edx, dword [0x54fd68]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [esp + 0x18]
mov dword [0x559e88], 0
cmp edx, 0xffffffff
jne 0x4d4ea8
cmp dword [0x55bce0], 0
je 0x4d4f03
mov edx, 1
mov dword [0x54fd68], edx
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x81
push eax
push 8
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 0
push eax
push 0
push 0
push 0x82006800
push edx
call esi
test eax, eax
je 0x4d50de
mov cx, word [esp + 0x24]
cmp cx, 4
jb 0x4d5089
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 8
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0x8200e808
push dword [0x54fd68]
call esi
test eax, eax
je 0x4d50de
mov cx, word [esp + 0x24]
mov ax, word [esp + 0x26]
cmp cx, 6
ja 0x4d5033
jne 0x4d4ea2
cmp ax, 0x32
ja 0x4d5033
mov edx, dword [0x54fd68]
movzx eax, word [edi + 4]
lea ebx, [esp + 0x20]
movzx ecx, word [edi + 2]
push 0
push ebx
mov ebx, dword [esp + 0x1c]
push eax
push ebx
push ecx
push edi
push 0x8200e804
push edx
mov dword [esp + 0x40], 0
call esi
test eax, eax
jne 0x4d51df
cmp dword [0x55bce0], eax
jne 0x4d4eeb
push dword [0x54fd68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov dword [0x54fd68], edx
inc ebp
cmp ebp, 3
jge 0x4d51df
jmp 0x4d4d57
push 0
push 0
test eax, eax
je 0x4d4f44
push 0
push 0
push 0
push 0
push 0x4136cc
call ecx
mov edx, eax
mov dword [0x54fd68], edx
cmp edx, 0xffffffff
jne 0x4d4e12
push 0x462
call fcn.004d4a90
mov ebx, dword [esp + 0x10]
push ebx
push 0x4136dc
jmp 0x4d4fe9
push 3
push 0
push 3
push 0xc0000000
push 0x413674
call ecx
mov edx, eax
mov dword [0x54fd68], edx
cmp edx, 0xffffffff
jne 0x4d4e12
mov dword [0x559e88], 1
jmp 0x4d4ef4
push 0x462
call fcn.004d4a90
mov ebx, dword [esp + 0x10]
push ebx
push 0x4136b4
jmp 0x4d4fe9
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
push 0x45d
call fcn.004d4a90
mov ebx, dword [esp + 0x10]
mov esi, eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x30]
push ebx
push 0x41369c
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push esi
push 0x559e90
call fcn.004d4920
jmp 0x4d5117
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
call eax
push 0x45c
call fcn.004d4a90
mov ebx, dword [esp + 0x10]
push ebx
push 0x413680
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
lea eax, [esp + 0x38]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call ebp
push eax
lea eax, [esp + 0x98]
push 0x413690
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push 0x559e90
call fcn.004d4960
jmp 0x4d511d
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, ax
push eax
movzx eax, cx
push eax
lea eax, [esp + 0x9c]
push 0x41371c
push eax
call edi
add esp, 0x10
push 0x469
call fcn.004d4a90
lea ecx, [esp + 0x94]
push ecx
push 0x4136f4
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004d4960
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push ebx
push 0x413738
jmp 0x4d510d
movzx eax, word [esp + 0x26]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
movzx eax, cx
push eax
lea eax, [esp + 0x9c]
push 0x41371c
push eax
call edi
add esp, 0x10
push 0x468
call fcn.004d4a90
lea ecx, [esp + 0x94]
push ecx
push 0x4136f4
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004d4960
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push ebx
push 0x413728
jmp 0x4d510d
push 0x467
call fcn.004d4a90
push 0x4136f4
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004d4920
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push ebx
push 0x41370c
push 0x559e90
call edi
add esp, 0x10
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x54fd68]
cmp eax, 0xffffffff
je 0x4d512e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x559e90], 0
mov dword [0x54fd68], 0xffffffff
jne 0x4d518f
push 0x45e
call fcn.004d4a90
mov esi, eax
call ebp
push eax
lea eax, [esp + 0x98]
push 0x413690
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x94]
push eax
push 0x4136f4
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.004d4960
lea eax, [esp + 0x30]
push eax
push ebx
push 0x413748
push 0x559e90
call edi
add esp, 0x10
cmp dword [0x54fda0], 0
jne 0x4d51bc
push 0x30
push 0x207
call fcn.004d4a90
push eax
push 0x559e90
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x559e8c], 1
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov al, byte [edi + 6]
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx], 0xc80b2
mov byte [ebx + 6], al
mov word [ebx + 4], si
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f9e32
add esp, 0xec
ret 8