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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a969
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x61ce74]
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.00421b80
mov ecx, eax
test ecx, ecx
je 0x4701a4
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 0x46fcb7
movzx eax, ax
push eax
call fcn.00426130
jmp 0x46fcc3
push 0x1a
push str.Kingsoft_WPS_UpdateService
call fcn.004263f0
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 0x46fd59
push 0x24
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x46fd52
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x28]
cmp eax, 4
je 0x46fd13
cmp eax, 7
jne 0x46fd4b
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x46fd4b
xor edi, edi
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
je 0x46fd45
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jl 0x46fd26
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 0x46fd73
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 0x4700b4
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4701a4
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
push dword [ebp - 0x250]
call fcn.00474230
add esp, 4
test eax, eax
jne 0x470074
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46fde1
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004263f0
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.00425f70
add eax, 0x10
mov dword [esi], eax
push ecx
push esp
mov byte [ebp - 4], 2
call fcn.00472e50
add esp, 4
mov byte [ebp - 4], 1
call fcn.0046fbd0
add esp, 0xc
test eax, eax
je 0x46fe78
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
jne 0x470074
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
jmp 0x4700fc
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.00425f70
add eax, 0x10
mov dword [esi], eax
push ecx
push esp
mov byte [ebp - 4], 3
call fcn.00471180
add esp, 4
mov byte [ebp - 4], 1
call fcn.0046fbd0
add esp, 0xc
test eax, eax
mov eax, dword [0x629be8]
je 0x47000c
test al, 1
jne 0x46feed
or eax, 1
mov dword [0x629be8], eax
mov ecx, 0x629be0
mov byte [ebp - 4], 4
call fcn.004a6e40
push 0x5ad190
call fcn.0053d46e
add esp, 4
mov byte [ebp - 4], 1
push dword [0x629be4]
lea eax, [ebp - 0x25c]
push eax
call fcn.00442670
add esp, 8
test eax, eax
je 0x46ff1c
push dword [ebp - 0x250]
call fcn.00462e60
add esp, 4
test eax, eax
jne 0x470074
push dword [ebp - 0x250]
lea eax, [ebp - 0x260]
push eax
call fcn.00472540
add esp, 8
mov eax, dword [ebp - 0x25c]
mov byte [ebp - 4], 5
cmp dword [eax - 0xc], 0
jl 0x46ff9b
push str.wpspdf.exe
push eax
call fcn.00542853
add esp, 8
test eax, eax
je 0x46ff9b
sub eax, dword [ebp - 0x25c]
sar eax, 1
cmp eax, 0xffffffff
je 0x46ff9b
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax]
test ecx, ecx
je 0x46ffe9
mov eax, dword [ebp - 0x260]
cmp dword [eax - 0xc], 0
jl 0x46ffef
push ecx
push eax
call fcn.00542853
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x46ffe9
mov eax, dword [ebp - 0x260]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x46ffef
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.00425f70
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 0x470119
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x470119
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 0x470074
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x470074
test al, 1
jne 0x470037
or eax, 1
mov dword [0x629be8], eax
mov ecx, 0x629be0
mov byte [ebp - 4], 6
call fcn.004a6e40
push 0x5ad190
call fcn.0053d46e
add esp, 4
mov byte [ebp - 4], 1
push dword [0x629be4]
lea eax, [ebp - 0x25c]
push eax
call fcn.00442670
add esp, 8
test eax, eax
je 0x470074
push dword [ebp - 0x250]
call fcn.004625d0
add esp, 4
test eax, eax
js 0x470074
cmp eax, 2
jle 0x4700f5
cmp eax, 4
je 0x4700f5
lea eax, [ebp - 0x258]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46fdc2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 0x4700b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4701a4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov eax, 0x5b0144
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x264]
test eax, 0xffff0000
jne 0x47013d
movzx eax, ax
push eax
call fcn.00426130
jmp 0x470149
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.00425f70
mov ebx, dword [ebp - 0x268]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
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 0x470186
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x470186
push 0
push 0x5b0144
call fcn.004263f0
mov esi, dword [ebp - 0x264]
add esi, 0xfffffff0
mov dword [ebp - 4], 8
push esi
call fcn.00425f70
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 0x470186
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 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.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
int3