Function at 0x40af70
Capabilities:
Link many functions at runtime
Query service status

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x4d9018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4dd108], 0
push esi
push edi
je 0x40afb9
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044518e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 4
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [0x4dd100], eax
test eax, eax
jne 0x40b13a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x20
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.00405c90
movups xmm0, xmmword [str.defender_OpenSCManager:_ret__]
mov edx, eax
mov dword [ebp - 0xc], 0x1d
mov dword [ebp - 8], 0x1f
push 1
push 0x4b941c
movups xmmword [edx], xmm0
movq xmm0, qword [0x4b9964]
movq qword [edx + 0x10], xmm0
mov ecx, dword [0x4b996c]
mov dword [edx + 0x18], ecx
lea ecx, [ebp - 0x1c]
mov al, byte [0x4b9970]
mov byte [edx + 0x1c], al
mov byte [edx + 0x1d], 0
mov dword [ebp - 0x1c], edx
call fcn.00405d50
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00406ec0
add esp, 8
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40b069
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405d50
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x40b0a7
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b09d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b721
push edx
push ecx
call fcn.00445172
add esp, 8
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0x4b93f8
mov dword [ebp - 0xa8], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b103
push str.writeLog
push eax
call esi
test eax, eax
je 0x40b103
push dword [ebp - 0xac]
push dword [ebp - 0xa8]
push str.RegistMVI
push 0x29
push str.c:jks_qsafeworkspacexwolfqaxdefenderHelper_traydefenderdefender.cpp
push 2
call eax
add esp, 0x18
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x40b613
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b609
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b726
jmp 0x40b609
push 4
push str.wscsvc
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [0x4dd104], eax
test eax, eax
jne 0x40b286
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x20
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.00405c90
movups xmm0, xmmword [str.defender_OpenService:_ret__]
mov edx, eax
mov dword [ebp - 0xc], 0x1b
mov dword [ebp - 8], 0x1f
push 1
push 0x4b941c
movups xmmword [edx], xmm0
movq xmm0, qword [0x4b99a0]
movq qword [edx + 0x10], xmm0
mov cx, word [0x4b99a8]
mov word [edx + 0x18], cx
lea ecx, [ebp - 0x1c]
mov al, byte [0x4b99aa]
mov byte [edx + 0x1a], al
mov byte [edx + 0x1b], 0
mov dword [ebp - 0x1c], edx
call fcn.00405d50
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00406ec0
add esp, 8
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40b1eb
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405d50
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x40b229
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b21f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b72b
push edx
push ecx
call fcn.00445172
add esp, 8
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0x4b93f8
mov dword [ebp - 0xac], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b103
push str.writeLog
push eax
call esi
test eax, eax
je 0x40b103
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
push str.RegistMVI
push 0x32
jmp 0x40b0f7
lea ecx, [ebp - 0xb0]
push ecx
push 0x24
lea ecx, [ebp - 0xa4]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40b460
mov eax, dword [ebp - 0xa0]
cmp eax, 1
je 0x40b460
cmp eax, 3
je 0x40b460
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x30
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.00405c90
movups xmm0, xmmword [str.defender_service_state_is_normal:_ret__]
mov edx, eax
mov dword [ebp - 0xc], 0x27
mov dword [ebp - 8], 0x2f
push 1
push 0x4b941c
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x4b99bc]
movups xmmword [edx + 0x10], xmm0
mov ecx, dword [0x4b99cc]
mov dword [edx + 0x20], ecx
lea ecx, [ebp - 0x1c]
mov ax, word [0x4b99d0]
mov word [edx + 0x24], ax
mov al, byte [0x4b99d2]
mov byte [edx + 0x26], al
mov byte [edx + 0x27], 0
mov dword [ebp - 0x1c], edx
call fcn.00405d50
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00406ec0
add esp, 8
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40b35b
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405d50
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x40b399
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b38f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b726
push edx
push ecx
call fcn.00445172
add esp, 8
cmp dword [ebp - 8], 0x10
lea esi, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
cmovae esi, dword [ebp - 0x1c]
push 0x4b93f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b3db
push str.writeLog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b3db
push edi
push esi
push str.RegistMVI
push 0x3f
push str.c:jks_qsafeworkspacexwolfqaxdefenderHelper_traydefenderdefender.cpp
push 2
call eax
add esp, 0x18
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x40b40f
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b405
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b726
push edx
push ecx
call fcn.00445172
add esp, 8
push 0
call fcn.00409ef0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
mov dword [0x4dd108], eax
push dword [0x4dd104]
call esi
push dword [0x4dd100]
call esi
mov eax, dword [0x4dd108]
mov dword [0x4dd104], 0
mov dword [0x4dd100], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044518e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x34
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xf0], 2
push 0
push eax
mov dword [ebp - 0xec], 0x40b740
call fcn.00467c70
movaps xmm0, xmmword [ebp - 0xf0]
add esp, 0xc
mov eax, dword [ebp - 0xb8]
movaps xmmword [ebp - 0x80], xmm0
movaps xmm0, xmmword [ebp - 0xe0]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
movaps xmmword [ebp - 0x70], xmm0
movaps xmm0, xmmword [ebp - 0xd0]
push eax
push 8
push dword [0x4dd104]
movaps xmmword [ebp - 0x60], xmm0
movq xmm0, qword [ebp - 0xc0]
movq qword [ebp - 0x50], xmm0
call dword [sym.imp.ADVAPI32.dll_NotifyServiceStatusChangeW]
test eax, eax
je 0x40b6ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x30
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.00405c90
movups xmm0, xmmword [str.defender_NotifyServiceStatusChange:_ret__]
mov ecx, eax
mov dword [ebp - 0xc], 0x29
mov dword [ebp - 8], 0x2f
push 1
push 0x4b941c
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x4b99e4]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x4b99f4]
movq qword [ecx + 0x20], xmm0
mov al, byte [0x4b99fc]
mov byte [ecx + 0x28], al
mov byte [ecx + 0x29], 0
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
call fcn.00405d50
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00406ec0
add esp, 8
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40b56e
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405d50
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x40b5ac
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b5a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b726
push edx
push ecx
call fcn.00445172
add esp, 8
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0x4b93f8
mov dword [ebp - 0xac], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b103
push str.writeLog
push eax
call esi
test eax, eax
je 0x40b103
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
push str.RegistMVI
push 0x4f
jmp 0x40b0f7
push edx
push ecx
call fcn.00445172
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x19
push str.defender_RegistMVI:_ret__
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.0040cae0
push 1
push 0x4b941c
lea ecx, [ebp - 0x1c]
call fcn.00405d50
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00406ec0
add esp, 8
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40b66d
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405d50
lea ecx, [ebp - 0x34]
call fcn.00409690
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], 0x10
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0x4b93f8
mov dword [ebp - 0xac], eax
call edi
test eax, eax
je 0x40b6cf
push str.writeLog
push eax
call esi
test eax, eax
je 0x40b6cf
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
push str.RegistMVI
push 0x56
push str.c:jks_qsafeworkspacexwolfqaxdefenderHelper_traydefenderdefender.cpp
push 2
call eax
add esp, 0x18
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x40b6ff
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b6f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b726
push edx
push ecx
call fcn.00445172
add esp, 8
push 0
call fcn.00409ef0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov dword [0x4dd108], eax
pop edi
pop esi
call fcn.0044518e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047357c
call fcn.0047357c
call fcn.0047357c
int3