Function at 0x4f0fbb
Capabilities:
Create service
Persist via windows service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x1c
call fcn.0052cda3
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 6
mov ebx, 0xc8
call fcn.0052e950
add esp, 0x4c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
push 0
push 0
call dword [sym.imp.advapi32.dll_OpenSCManagerA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4f1089
push 0x3d
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4f10a0
mov eax, 0
jmp 0x4f15c2
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x80
push 0x80000301
push 0
push 0x40
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 9
mov ebx, 0xc8
call fcn.0052e950
add esp, 0x70
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_OpenServiceA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4f1155
push 0x10f
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f1436
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
push 4
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_ControlService]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f1196
push 0x1cf
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4f13d4
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 1
je 0x4f13d4
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
push 1
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_ControlService]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f11ec
push 0x267
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4f125b
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f1225
push 0x29c
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f1251
push 0x2b6
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov eax, 0
jmp 0x4f15c2
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0xa
jg 0x4f135a
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
push 4
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_ControlService]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f12a6
push 0x379
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4f131a
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f12df
push 0x3ae
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f130b
push 0x3c8
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov eax, 1
jmp 0x4f15c2
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 1
jne 0x4f1334
jmp 0x4f135a
push 0x80000301
push 0
push 0xfa0
push 1
mov ebx, 0x67c
call fcn.00532970
add esp, 0x10
pop ebx
pop ecx
inc ecx
jmp 0x4f1265
add esp, 8
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 1
je 0x4f13d4
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f139e
push 0x4e4
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f13ca
push 0x4fe
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov eax, 0
jmp 0x4f15c2
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f1400
push 0x57f
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f142c
push 0x599
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov eax, 1
jmp 0x4f15c2
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x80
push 0x80000301
push 0
push 0x40
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 9
mov ebx, 0xc8
call fcn.0052e950
add esp, 0x70
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push 0
push 0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push 1
push 3
push 1
push dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_CreateServiceA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4f151d
push 0x60b
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4f1560
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f1556
push 0x6f6
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov eax, 0
jmp 0x4f15c2
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f158c
push 0x728
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4f15b8
push 0x742
push 0x402897d
push 6
call fcn.0052cdaf
add esp, 0xc
mov eax, 1
jmp 0x4f15c2
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0052cda9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8