Function at 0x4379b0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0470
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x53d9f8]
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
push str._killPreviewProcess_enter
push str.kupdate::KWpsUpdateImpl::_killPreviewProcess
push 0xd74
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
call fcn.00412750
push 1
push str.SeDebugPrivilege
mov dword [ebp - 0x1c], str.wps.exe
mov dword [ebp - 0x18], 0x4f7cb0
mov dword [ebp - 0x14], 0x4f7ca0
call fcn.00451880
xor eax, eax
add esp, 0x1c
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], eax
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x80], ebx
lea ebx, [ebx]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + ebx*4 - 0x1c]
call fcn.004525c0
add esp, 8
test al, al
je 0x437d1e
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x5c]
je 0x437d21
lea ebx, [ebx]
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push ecx
push dword [eax]
call fcn.004521a0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00451b20
add esp, 0x10
mov edi, dword [ebp - 0x44]
mov byte [ebp - 4], 2
mov dword [ebp - 0x84], edi
mov esi, dword [edi]
cmp esi, edi
je 0x437c07
mov dword [ebp - 0x7c], esi
lea ecx, [ecx]
cmp dword [esi + 0x1c], 8
lea ebx, [esi + 8]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x3c], ecx
jb 0x437acf
mov ebx, dword [ebx]
cmp ecx, 8
jae 0x437af8
mov edx, dword [ebx]
mov dword [ebp - 0x78], edx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x68], ecx
mov ecx, 7
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x4c], ecx
jmp 0x437b3b
mov eax, ecx
mov ecx, 0x7ffffffe
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x4c], eax
inc eax
push eax
call fcn.004031d0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x78], eax
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x64], ecx
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x78]
cmp ecx, 8
mov byte [ebp - 4], 3
cmovae eax, edx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x78]
cmovae eax, edx
lea eax, [eax + ebx*2]
lea ebx, [ebp - 0x78]
mov dword [ebp - 0x3c], eax
cmovae ebx, edx
cmp ebx, eax
je 0x437b9e
sub dword [ebp - 0x48], ebx
mov esi, eax
mov edi, dword [ebp - 0x48]
movzx eax, word [ebx]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [edi + ebx], ax
add esp, 4
add ebx, 2
cmp ebx, esi
jne 0x437b72
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x50], eax
jmp 0x437ba1
mov ebx, dword [ebp - 0x4c]
push str._preview
lea ecx, [ebp - 0x78]
call fcn.00432570
mov byte [ebp - 0x35], al
mov byte [ebp - 4], 2
cmp ebx, 8
jb 0x437bef
mov ecx, dword [ebp - 0x50]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x437be2
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437d66
push ebx
push ecx
call fcn.004bee2d
mov al, byte [ebp - 0x35]
add esp, 8
test al, al
jne 0x437c00
mov esi, dword [esi]
mov dword [ebp - 0x7c], esi
cmp esi, edi
jne 0x437ab0
mov edi, dword [ebp - 0x44]
cmp esi, edi
jne 0x437c23
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00414bb0
push 0x20
push dword [ebp - 0x44]
call fcn.004bee2d
add esp, 0x10
jmp 0x437ccf
mov esi, dword [ebp - 0x54]
push dword [esi]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x437c71
push str.OpenProcess_PROCESS_TERMINATE__SYNCHRONIZE__FAILED
push str.kupdate::KWpsUpdateImpl::_killPreviewProcess
push 0xd96
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
call fcn.00412750
push dword [ebp - 0x44]
lea eax, [ebp - 0x44]
push eax
call fcn.00414bb0
push 0x20
push dword [ebp - 0x44]
call fcn.004bee2d
add esp, 0x24
jmp 0x437ccf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push dword [esi]
push str.start_PID:__d__killed_cmd_s
push str.kupdate::KWpsUpdateImpl::_killPreviewProcess
push 0xd9e
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
call fcn.00412750
push dword [ebp - 0x44]
lea eax, [ebp - 0x44]
push eax
call fcn.00414bb0
push 0x20
push dword [ebp - 0x44]
call fcn.004bee2d
add esp, 0x2c
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x437d09
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437cff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437d66
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, dword [ebp - 0x54]
add eax, 4
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x5c]
jne 0x437a60
mov ebx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x60]
inc ebx
mov dword [ebp - 0x80], ebx
cmp ebx, 3
jl 0x437a30
push 0
push str.SeDebugPrivilege
call fcn.00451880
mov edx, dword [ebp - 0x60]
add esp, 8
test edx, edx
je 0x437d76
mov ecx, dword [ebp - 0x58]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x437d6c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x437d6c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004bee2d
add esp, 8
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.004bee49
mov esp, ebp
pop ebp
ret