Function at 0x438890
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503115
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x567e00]
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 0xdb3
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 9
call fcn.00412230
push 1
push str.SeDebugPrivilege
mov dword [ebp - 0x1c], str.wps.exe
mov dword [ebp - 0x18], 0x51b5e0
mov dword [ebp - 0x14], 0x51b5d0
call fcn.00453270
xor edi, edi
add esp, 0x1c
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x7c], ebx
lea ebx, [ebx]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x6c], edi
push eax
push dword [ebp + ebx*4 - 0x1c]
call fcn.00454160
add esp, 8
test al, al
je 0x438c22
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x78], edi
cmp edi, dword [ebp - 0x6c]
je 0x438c25
lea ebx, [ebx]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
push dword [edi]
call fcn.00453ba0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00453510
add esp, 0x10
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 2
mov dword [ebp - 0x80], eax
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp esi, eax
je 0x438b11
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], ebx
jb 0x4389bd
mov edx, dword [edx]
mov dword [ebp - 0x3c], edx
cmp ebx, 8
jae 0x4389e6
mov ecx, dword [edx]
mov dword [ebp - 0x64], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x60], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x54], ebx
mov ebx, 7
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], ebx
jmp 0x438a29
or ebx, 7
lea ecx, [ebp - 0x64]
cmp ebx, 0x7ffffffe
mov eax, 0x7ffffffe
cmova ebx, eax
mov dword [ebp - 0x4c], ebx
lea eax, [ebx + 1]
push eax
call fcn.00403890
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x3c]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], ebx
cmp ebx, 8
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x40]
lea eax, [ebp - 0x64]
cmovae eax, ecx
lea edx, [ebp - 0x64]
cmovae edx, ecx
cmp dword [ebp - 0x4c], 8
lea eax, [eax + ebx*2]
lea ebx, [ebp - 0x64]
mov dword [ebp - 0x40], eax
cmovae ebx, ecx
cmp ebx, eax
je 0x438a8b
sub edx, ebx
mov esi, eax
mov dword [ebp - 0x3c], edx
mov edi, edx
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 0x438a62
mov ecx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], ecx
jmp 0x438a8e
mov ebx, dword [ebp - 0x4c]
cmp ebx, 8
lea eax, [ebp - 0x64]
cmovae eax, ecx
cmp dword [ebp - 0x54], 8
jne 0x438ab5
push 8
push str._preview
push eax
call fcn.00411a20
add esp, 0xc
mov byte [ebp - 0x35], 1
test eax, eax
je 0x438ab9
mov byte [ebp - 0x35], 0
mov byte [ebp - 4], 2
cmp ebx, 8
jb 0x438af4
mov ecx, dword [ebp - 0x3c]
lea ebx, [ebx*2 + 2]
mov eax, ecx
cmp ebx, 0x1000
jb 0x438aea
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438c6a
push ebx
push ecx
call fcn.004c6f6f
add esp, 8
cmp byte [ebp - 0x35], 0
jne 0x438b0a
mov eax, dword [esi]
mov esi, eax
mov dword [ebp - 0x74], eax
cmp eax, dword [ebp - 0x80]
jne 0x438991
mov eax, dword [ebp - 0x48]
cmp esi, eax
jne 0x438b2d
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00414b00
push 0x20
push dword [ebp - 0x48]
call fcn.004c6f6f
add esp, 0x10
jmp 0x438bd6
push dword [edi]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x438b78
push str.OpenProcess_PROCESS_TERMINATE__SYNCHRONIZE__FAILED
push str.kupdate::KWpsUpdateImpl::_killPreviewProcess
push 0xdd5
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
call fcn.00412230
push dword [ebp - 0x48]
lea eax, [ebp - 0x48]
push eax
call fcn.00414b00
push 0x20
push dword [ebp - 0x48]
call fcn.004c6f6f
add esp, 0x24
jmp 0x438bd6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
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 [edi]
push str.start_PID:__d__killed_cmd_s
push str.kupdate::KWpsUpdateImpl::_killPreviewProcess
push 0xddd
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
call fcn.00412230
push dword [ebp - 0x48]
lea eax, [ebp - 0x48]
push eax
call fcn.00414b00
push 0x20
push dword [ebp - 0x48]
call fcn.004c6f6f
add esp, 0x2c
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x438c10
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438c06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438c6a
push edx
push ecx
call fcn.004c6f6f
add esp, 8
add edi, 4
mov dword [ebp - 0x78], edi
cmp edi, dword [ebp - 0x6c]
jne 0x438940
mov ebx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x70]
inc ebx
mov dword [ebp - 0x7c], ebx
cmp ebx, 3
jl 0x438910
push 0
push str.SeDebugPrivilege
call fcn.00453270
mov edx, dword [ebp - 0x70]
add esp, 8
test edx, edx
je 0x438c7a
mov ecx, dword [ebp - 0x68]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x438c70
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x438c70
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004c6f6f
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.004c6f8b
mov esp, ebp
pop ebp
ret