Function at 0x474390
Capabilities:
Enumerate processes
Query service status
Stop service
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a17d
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x47490c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x260], eax
mov eax, str.Kingsoft_WPS_UpdateService
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
test eax, 0xffff0000
jne 0x474417
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x474423
push 0x1a
push str.Kingsoft_WPS_UpdateService
call fcn.00429870
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [ebp - 0x260]
mov edi, eax
mov dword [ebp - 0x264], edi
test edi, edi
je 0x4744b9
push 0x24
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x4744b2
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x28]
cmp eax, 4
je 0x474473
cmp eax, 7
jne 0x4744ab
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4744ab
xor edi, edi
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
je 0x4744a5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jl 0x474486
mov edi, dword [ebp - 0x264]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4744d3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 2
mov dword [ebp - 0x258], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x474803
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x47490c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 1
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4747dc
push dword [ebp - 0x250]
call fcn.00478aa0
add esp, 4
test eax, eax
jne 0x4747c1
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474550
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.00429870
push ecx
mov esi, esp
mov dword [ebp - 0x264], esp
mov dword [ebp - 0x270], esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.004293f0
add eax, 0x10
mov dword [esi], eax
push ecx
push esp
mov byte [ebp - 4], 2
call fcn.00477600
add esp, 4
mov byte [ebp - 4], 1
call fcn.00474330
add esp, 0xc
test eax, eax
je 0x4745ed
push dword [ebp - 0x250]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x474844
cmp esi, 0xffffffff
je 0x4747c1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x4747c7
push ecx
mov esi, esp
mov dword [ebp - 0x270], esp
mov dword [ebp - 0x264], esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.004293f0
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp + 0x10]
push ecx
mov eax, esp
mov byte [ebp - 4], 3
push esi
push eax
call fcn.00475900
add esp, 8
mov byte [ebp - 4], 1
call fcn.00474330
add esp, 0xc
test eax, eax
je 0x47477d
call fcn.00478050
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00446730
add esp, 8
test eax, eax
je 0x47466a
push dword [ebp - 0x250]
call fcn.00466d80
add esp, 4
test eax, eax
jne 0x4747c1
push dword [ebp - 0x250]
lea eax, [ebp - 0x260]
push eax
call fcn.00476cf0
add esp, 8
mov eax, dword [ebp - 0x25c]
mov byte [ebp - 4], 4
cmp dword [eax - 0xc], 0
jl 0x4746ed
push 0x5b8640
push eax
call fcn.0054c0c3
add esp, 8
test eax, eax
je 0x4746ed
sub eax, dword [ebp - 0x25c]
sar eax, 1
cmp eax, 0xffffffff
je 0x4746ed
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax]
test ecx, ecx
je 0x47475a
mov eax, dword [ebp - 0x260]
cmp dword [eax - 0xc], 0
jl 0x474760
push ecx
push eax
call fcn.0054c0c3
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x47475a
mov eax, dword [ebp - 0x260]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x474760
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.004293f0
mov ebx, dword [ebp - 0x268]
add eax, 0x10
mov edx, dword [ebp - 0x260]
add esp, 4
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov dword [ebx], eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474734
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4748ee
mov ecx, dword [edx]
push edx
jmp 0x4748e9
mov eax, dword [ebp - 0x260]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4747c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4747c1
test esi, esi
jne 0x4747c1
call fcn.00478050
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00446730
add esp, 8
test eax, eax
je 0x4747c1
push dword [ebp - 0x250]
call fcn.00466710
add esp, 4
test eax, eax
js 0x4747c1
cmp eax, 2
jle 0x47487a
cmp eax, 4
je 0x47487a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x258]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x474530
push ebx
call esi
mov edx, dword [ebp - 0x25c]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474803
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00428a90
test eax, eax
je 0x47490c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov eax, 0x5ac698
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x264]
test eax, 0xffff0000
jne 0x4748a5
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x4748b1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.004293f0
mov ebx, dword [ebp - 0x268]
lea ecx, [ebp - 0x25c]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
call fcn.00428fc0
jmp 0x4748ee
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.004293f0
mov ebx, dword [ebp - 0x268]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
jmp 0x474734
push 0
push 0x5ac698
call fcn.00429870
mov esi, dword [ebp - 0x264]
add esi, 0xfffffff0
mov dword [ebp - 4], 6
push esi
call fcn.004293f0
mov ebx, dword [ebp - 0x268]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4748ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
int3