Function at 0x99ed00
Capabilities:
Create service
Persist via windows service
Query service status

Disassembly:
push ebp
lea ebp, [esp - 0xd38]
sub esp, 0xd38
push 0xfffffffffffffffe
push 0xb13050
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xd34], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp + 0x104], bl
push 0x207
push ebx
lea eax, [ebp + 0x105]
push eax
call fcn.00a7ffb0
mov byte [ebp + 0xb2c], bl
push 0x207
push ebx
lea ecx, [ebp + 0xb2d]
push ecx
call fcn.00a7ffb0
mov byte [ebp + 0x514], bl
push 0x207
push ebx
lea edx, [ebp + 0x515]
push edx
call fcn.00a7ffb0
mov byte [ebp + 0x30c], bl
push 0x207
push ebx
lea eax, [ebp + 0x30d]
push eax
call fcn.00a7ffb0
mov byte [ebp + 0x924], bl
push 0x207
push ebx
lea ecx, [ebp + 0x925]
push ecx
call fcn.00a7ffb0
add esp, 0x3c
cmp esi, ebx
je 0x99f0b1
cmp byte [esi], bl
je 0x99f0b1
push 0x208
lea edx, [ebp + 0xb2c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x99f0b1
lea eax, [ebp + 0xb2c]
push eax
push 0xab7310
lea ecx, [ebp + 0x514]
push ecx
call fcn.00a78f30
push 0x104
lea edx, [ebp]
push edx
push 0xaa1ac4
mov edx, str.FCert
mov ecx, 0xaa154c
call fcn.00958d30
add esp, 0x18
cmp byte [ebp], 0x31
jne 0x99ee87
push 0xb55508
lea eax, [ebp + 0x820]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
lea ecx, [ebp + 0x820]
call fcn.00960910
push str.VistaAVPMAPP.EXE
lea ecx, [ebp + 0x820]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push ebx
xor edx, edx
lea ecx, [ebp + 0x820]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x99ee87
lea edx, [ebp + 0x820]
push edx
lea eax, [ebp + 0xb2c]
push eax
call edi
push 0x207
lea ecx, [ebp + 0x924]
push ecx
lea edx, [ebp + 0xb2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
cmp byte [ebp + 0x924], bl
jne 0x99eebe
lea ecx, [ebp + 0xb2c]
lea edx, [ebp + 0x924]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x99eeb4
mov ebx, str.eScan_Monitor_Service
call fcn.009605b0
test eax, eax
je 0x99ef7a
lea edi, [ebp + 0x30c]
mov ecx, ebx
call fcn.009620b0
test eax, eax
je 0x99ef7a
push 1
mov ecx, ebx
call fcn.00954c00
lea eax, [ebp + 0x924]
push eax
mov ecx, edi
push ecx
call fcn.00a7b8e4
add esp, 0xc
test eax, eax
je 0x99ef7a
lea edx, [ebp + 0x514]
push edx
mov eax, edi
push eax
call fcn.00a7b8e4
add esp, 8
test eax, eax
je 0x99ef7a
push ebx
push str.SystemCurrentControlSetServices_s
lea ecx, [ebp + 0x71c]
push ecx
call fcn.00a78f30
push 0x20
lea edx, [ebp + 0x924]
push edx
call fcn.00a7a2c0
add esp, 0x14
test eax, eax
je 0x99ef51
lea eax, [ebp + 0x514]
push eax
lea ecx, [ebp + 0x71c]
push ecx
jmp 0x99ef5f
lea edx, [ebp + 0x924]
push edx
lea eax, [ebp + 0x71c]
push eax
mov edx, str.ImagePath
mov ecx, 0x80000002
call fcn.0094bd00
movzx eax, al
test eax, eax
jne 0x99ef7a
call fcn.0099f0e0
mov dword [ebp - 0x1c], 0x5a
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x99f0b1
push 0x20
lea ecx, [ebp + 0xb2c]
push ecx
call fcn.00a7a2c0
add esp, 8
push 0
push 0
push 0
push 0
push 0
test eax, eax
je 0x99efc2
lea edx, [ebp + 0x514]
push edx
jmp 0x99efc9
lea eax, [ebp + 0xb2c]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push esi
push str.eScan_Monitor_Service
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x99f064
push str.eScan_Anti_Virus_Monitor
push str.eScan_Monitor_Service
call fcn.00a88f66
add esp, 8
test eax, eax
je 0x99f059
push 0xb52b6c
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x99f02b
mov eax, dword [0xb52b70]
cmp eax, 2
je 0x99f02b
cmp eax, 3
je 0x99f05d
cmp eax, 5
je 0x99f05d
cmp eax, 6
je 0x99f05d
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xb52b6c
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x99f05d
cmp dword [0xb52b70], 2
jne 0x99f05d
push 0x3e8
call edi
sub dword [ebp - 0x1c], 1
jne 0x99f031
jmp 0x99f05d
test esi, esi
je 0x99f064
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp + 0x104], 0
mov ecx, 0xa
mov esi, str.MicroWorld_eScan_Virus_Monitoring_Service.
lea edi, [ebp + 0x104]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edx, [ebp + 0x104]
mov ecx, str.eScan_Monitor_Service
call fcn.00978c90
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x99f0b1
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xd34]
xor ecx, ebp
call fcn.00a78f21
add ebp, 0xd38
mov esp, ebp
pop ebp
ret