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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2d83
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x639354]
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 ebx, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], ebx
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x479bbd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov eax, str.Kingsoft_WPS_UpdateService
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x264]
test eax, 0xffff0000
jne 0x479567
movzx eax, ax
push eax
call fcn.00429d90
jmp 0x479573
push 0x1a
push str.Kingsoft_WPS_UpdateService
call fcn.0042a060
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [ebp - 0x264]
mov edi, eax
mov dword [ebp - 0x260], edi
test edi, edi
je 0x47960f
push 0x24
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x479602
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x28]
cmp eax, 4
je 0x4795c3
cmp eax, 7
jne 0x4795fb
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4795fb
xor edi, edi
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
je 0x4795f5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jl 0x4795d6
mov edi, dword [ebp - 0x260]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x270]
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x479629
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5bc630
lea eax, [ebp - 0x268]
push ebx
push eax
call fcn.00429810
add esp, 0xc
push 0
push 2
mov dword [ebp - 4], 1
mov dword [ebp - 0x258], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x479a1c
mov byte [ebp - 4], 2
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x479bc7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 3
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4799f8
push dword [ebp - 0x250]
call fcn.0047e510
add esp, 4
test eax, eax
jne 0x4799dd
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4796c2
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.0042a060
push dword [ebp - 0x250]
lea eax, [ebp - 0x260]
push eax
call fcn.0047c380
push 0x5c
push dword [ebp - 0x260]
mov byte [ebp - 4], 4
call fcn.005614c9
add esp, 0x10
test eax, eax
je 0x47975f
sub eax, dword [ebp - 0x260]
sar eax, 1
cmp eax, 0xffffffff
je 0x47975f
push eax
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x260]
call fcn.004487c0
push eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.004297a0
mov edx, dword [ebp - 0x274]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47975f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x278], esp
mov dword [ebp - 0x27c], esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.00429b80
add eax, 0x10
mov dword [esi], eax
push ecx
push esp
mov byte [ebp - 4], 6
call fcn.0047cc90
add esp, 4
mov byte [ebp - 4], 4
call fcn.00479480
add esp, 0xc
test eax, eax
je 0x4797f8
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00438ec0
add esp, 8
test al, al
je case.0x479a63.3
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 0x479a9a
cmp esi, 0xffffffff
je case.0x479a63.3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x479a70
push ecx
mov esi, esp
mov dword [ebp - 0x27c], esp
mov dword [ebp - 0x278], esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.00429b80
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp + 0x10]
push ecx
mov eax, esp
mov byte [ebp - 4], 7
push esi
push eax
call fcn.0047ae10
add esp, 8
mov byte [ebp - 4], 4
call fcn.00479480
add esp, 0xc
test eax, eax
je 0x479a30
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00438ec0
add esp, 8
test al, al
je case.0x479a63.3
call fcn.0047d870
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.004480c0
add esp, 8
test eax, eax
je 0x479893
push dword [ebp - 0x250]
call fcn.0046aa60
add esp, 4
test eax, eax
jne 0x4799bc
push dword [ebp - 0x250]
lea eax, [ebp - 0x264]
push eax
call fcn.0047c380
add esp, 8
mov eax, dword [ebp - 0x25c]
mov byte [ebp - 4], 8
cmp dword [eax - 0xc], 0
jl 0x47991e
push 0x5c22c0
push eax
call fcn.00561570
add esp, 8
test eax, eax
je 0x47991e
sub eax, dword [ebp - 0x25c]
sar eax, 1
cmp eax, 0xffffffff
je 0x47991e
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax]
test ecx, ecx
je 0x47999f
mov eax, dword [ebp - 0x264]
cmp dword [eax - 0xc], 0
jl 0x4799a5
push ecx
push eax
call fcn.00561570
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x47999f
mov eax, dword [ebp - 0x264]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4799a5
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.00429b80
mov ebx, dword [ebp - 0x26c]
add eax, 0x10
mov edx, dword [ebp - 0x264]
add esp, 4
add edx, 0xfffffff0
mov dword [ebx], eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x479961
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x260]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47997e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x25c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x479b84
mov ecx, dword [edx]
push edx
jmp 0x479b7f
mov eax, dword [ebp - 0x264]
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4799bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x260]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4799dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x4796a3
push ebx
call esi
mov edx, dword [ebp - 0x25c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x479a1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x479bd1
jmp 0x479b14
test esi, esi
jne case.0x479a63.3
call fcn.0047d870
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.004480c0
add esp, 8
test eax, eax
je case.0x479a63.3
push dword [ebp - 0x250]
call fcn.0046a3e0
add esp, 4
cmp eax, 4
ja case.0x479a63.3
jmp dword [eax*4 + 0x479bdc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x260]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4799e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4799e3
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.00429b80
mov ebx, dword [ebp - 0x26c]
lea ecx, [ebp - 0x260]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
call fcn.004296c0
lea ecx, [ebp - 0x25c]
call fcn.004296c0
lea ecx, [ebp - 0x268]
call fcn.004296c0
jmp 0x479b9f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
push eax
call fcn.00429b80
mov ebx, dword [ebp - 0x26c]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
jmp 0x479961
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov eax, 0x5b8734
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x264]
test eax, 0xffff0000
jne 0x479b43
movzx eax, ax
push eax
call fcn.00429d90
jmp 0x479b4f
push 0
push 0x5b8734
call fcn.0042a060
mov esi, dword [ebp - 0x264]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xa
push esi
call fcn.00429b80
mov ebx, dword [ebp - 0x26c]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x479b84
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x479b9f
mov ecx, dword [edx]
push edx
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
push 0x80004005
call fcn.00429b60
push 0x80004005
call fcn.00429b60
nop
jmp 0xe947e37b