Function at 0x474290
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57db53
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5fb61c]
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 ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
xor edi, edi
push str.Kingsoft_WPS_UpdateService
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x250], edi
call fcn.00422540
lea edx, [ebp - 0x244]
push edx
call fcn.0046b980
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474319
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push 2
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, 0xffffffff
je 0x47470a
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcb00
call eax
add eax, 0x10
mov dword [ebp - 0x240], eax
lea ecx, [ebp - 0x23c]
push ecx
push esi
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x474370
mov edx, dword [ebp - 0x234]
push edx
call fcn.0046c240
add esp, 4
test eax, eax
jne 0x4746bf
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474390
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00422120
mov esi, dword [ebp - 0x240]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x258], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x4743e7
cmp eax, dword [esi - 0x10]
jne 0x4743e7
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x47441f
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x474785
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00533641
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x254], esp
push ecx
mov byte [ebp - 4], 1
call fcn.00473810
add esp, 4
mov byte [ebp - 4], 0
call fcn.00472a40
add esp, 0x10
test eax, eax
je 0x4744a7
mov edx, dword [ebp - 0x234]
push edx
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 0x4746bf
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [ebp - 0x244]
push edx
call esi
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
push eax
call fcn.00421e00
mov esi, dword [ebp - 0x248]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x240]
jmp 0x474741
mov eax, dword [ebp - 0x240]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x254], esp
mov esi, esp
push eax
call fcn.00421e00
add eax, 0x10
mov dword [esi], eax
sub esp, 8
mov eax, esp
mov dword [ebp - 0x258], esp
push eax
mov byte [ebp - 4], 2
call fcn.00473570
add esp, 4
mov byte [ebp - 4], 0
call fcn.00472a40
add esp, 0x10
test eax, eax
je 0x474651
test byte [0x5ff51c], 1
jne 0x47451f
or dword [0x5ff51c], 1
mov ecx, 0x5ff514
mov byte [ebp - 4], 3
call fcn.004968d0
push 0x58f2d0
call fcn.00535252
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [0x5ff518]
push ecx
lea edx, [ebp - 0x240]
push edx
call fcn.00442f30
add esp, 8
test eax, eax
je 0x474550
mov eax, dword [ebp - 0x234]
push eax
call fcn.004620a0
add esp, 4
test eax, eax
jne 0x4746bf
mov ecx, dword [ebp - 0x234]
push ecx
lea edx, [ebp - 0x24c]
push edx
call fcn.0046f8d0
add esp, 8
mov eax, dword [ebp - 0x240]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 4
jl 0x4745ce
push str.wpspdf.exe
push eax
call fcn.0053708a
add esp, 8
test eax, eax
je 0x4745ce
sub eax, dword [ebp - 0x240]
sar eax, 1
cmp eax, 0xffffffff
je 0x4745ce
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax]
test eax, eax
je 0x474629
mov ecx, dword [ebp - 0x24c]
cmp dword [ecx - 0xc], 0
jl 0x47462f
push eax
push ecx
call fcn.0053708a
add esp, 8
test eax, eax
je 0x474629
mov ecx, dword [ebp - 0x24c]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x47462f
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
push eax
call fcn.00421e00
mov esi, dword [ebp - 0x248]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47461e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x240]
jmp 0x474744
mov ecx, dword [ebp - 0x24c]
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4746bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4746bf
test byte [0x5ff51c], 1
jne 0x474680
or dword [0x5ff51c], 1
mov ecx, 0x5ff514
mov byte [ebp - 4], 5
call fcn.004968d0
push 0x58f2d0
call fcn.00535252
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [0x5ff518]
push ecx
lea edx, [ebp - 0x240]
push edx
call fcn.00442f30
add esp, 8
test eax, eax
je 0x4746bf
mov eax, dword [ebp - 0x234]
push eax
call fcn.00461920
add esp, 4
test eax, eax
js 0x4746bf
cmp eax, 2
jle 0x47478a
cmp eax, 4
je 0x47478a
mov esi, dword [ebp - 0x244]
lea ecx, [ebp - 0x23c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x474370
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47470a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x591ff8
lea ecx, [ebp - 0x250]
call fcn.00422540
mov eax, dword [ebp - 0x250]
add eax, 0xfffffff0
push eax
mov dword [ebp - 4], 6
call fcn.00421e00
mov esi, dword [ebp - 0x248]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x250]
add esp, 4
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.005332ca
mov esp, ebp
pop ebp
ret
call fcn.00421b80
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
push eax
call fcn.00421e00
mov esi, dword [ebp - 0x248]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x47475b