Function at 0x420d20
Capabilities:
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1975
mov eax, dword fs:[0]
push eax
mov eax, 0x1278
call fcn.00467d90
mov eax, dword [0x4e5728]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x1254], edi
mov byte [ebp - 0x1249], 0
call fcn.00473050
add esp, 0xc
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x420da6
push edi
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x420ea4
push 0x800
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.00473050
add esp, 0xc
mov dword [ebp - 0x1250], 0
lea eax, [ebp - 0x1218]
push 0x400
push eax
push 0
push esi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x420e59
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00473050
lea eax, [ebp - 0x1218]
push 0x7e
push eax
call fcn.0047375d
add esp, 0x14
test eax, eax
je 0x420e2d
push 0x400
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
lea eax, [ebp - 0xa18]
jbe 0x420e33
lea eax, [ebp - 0x1218]
push 0x104
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00479673
add esp, 0x10
mov dword [ebp - 0x1250], 1
jmp 0x420e90
push 0x400
lea eax, [ebp - 0x1218]
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
je 0x420e90
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1218]
push eax
call fcn.0041e5b0
add esp, 0xc
mov dword [ebp - 0x1250], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1250], 0
jne 0x420fb1
call fcn.0043c280
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x420f8f
push 0x70
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcutils.cc
lea ecx, [ebp - 0x1230]
mov dword [ebp - 0x1220], eax
mov dword [ebp - 0x121c], 0xf
mov byte [ebp - 0x1230], al
call fcn.004082b0
push 3
push 0x4ba7a4
lea ecx, [ebp - 0x126c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x125c], 0
mov dword [ebp - 0x1258], 0xf
mov byte [ebp - 0x126c], 0
call fcn.004082b0
mov byte [ebp - 4], 1
call fcn.0043c280
mov edi, eax
lea ecx, [ebp - 0x2b0]
push 0x117
lea eax, [ebp - 0x1230]
push eax
lea eax, [ebp - 0x126c]
push eax
call fcn.00403c10
mov esi, eax
push str.get_process_file_path_failed__pid:
push esi
mov byte [ebp - 4], 2
call fcn.00404ba0
add esp, 8
push dword [ebp - 0x1254]
mov ecx, esi
call fcn.00404a00
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2b0]
call fcn.00404e00
lea ecx, [ebp - 0x126c]
call fcn.00404580
lea ecx, [ebp - 0x1230]
call fcn.00404580
mov al, byte [ebp - 0x1249]
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.00467d03
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x125c], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x1258], 7
mov word [ebp - 0x126c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420fd7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x126c]
call fcn.004083b0
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], 3
cmp eax, dword [ebp - 0x125c]
je 0x421017
mov byte [ebp - 0x124a], 1
jmp 0x4211ee
push ebx
lea ecx, [ebp - 0x1230]
call fcn.0040bdd0
lea eax, [ebp - 0x126c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1248]
call fcn.0040bdd0
cmp dword [ebp - 0x121c], 8
lea ecx, [ebp - 0x1230]
mov edx, dword [ebp - 0x1230]
lea edi, [ebp - 0x1230]
mov eax, dword [ebp - 0x1220]
cmovae ecx, edx
push fcn.00479576
cmovae edi, edx
mov byte [ebp - 4], 5
push edi
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x1230]
cmovae ecx, edx
lea eax, [ebp - 0x1250]
push ecx
push eax
call fcn.0041dcb0
cmp dword [ebp - 0x1234], 8
lea ecx, [ebp - 0x1248]
mov edx, dword [ebp - 0x1248]
lea edi, [ebp - 0x1248]
mov eax, dword [ebp - 0x1238]
cmovae ecx, edx
push fcn.00479576
cmovae edi, edx
push edi
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x1248]
cmovae ecx, edx
lea eax, [ebp - 0x1250]
push ecx
push eax
call fcn.0041dcb0
mov eax, dword [ebp - 0x1248]
lea ecx, [ebp - 0x1248]
mov edi, dword [ebp - 0x1230]
lea esi, [ebp - 0x1230]
mov edx, dword [ebp - 0x1220]
add esp, 0x28
cmp dword [ebp - 0x1234], 8
cmovae ecx, eax
cmp dword [ebp - 0x121c], 8
cmovae esi, edi
cmp edx, dword [ebp - 0x1238]
jne 0x421136
test edx, edx
je 0x421127
sub esi, ecx
nop word [eax + eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x421130
add ecx, 2
sub edx, 1
jne 0x421110
mov eax, dword [ebp - 0x1248]
mov byte [ebp - 0x124a], 0
jmp 0x42113d
mov eax, dword [ebp - 0x1248]
mov byte [ebp - 0x124a], 1
mov ecx, dword [ebp - 0x1234]
mov byte [ebp - 4], 4
cmp ecx, 8
jb 0x42118d
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x42117d
mov eax, dword [eax - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x1250], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x421531
mov eax, dword [ebp - 0x1250]
push ecx
push eax
call fcn.00467a3f
mov edi, dword [ebp - 0x1230]
add esp, 8
xor eax, eax
mov dword [ebp - 0x1238], 0
mov word [ebp - 0x1248], ax
mov eax, dword [ebp - 0x121c]
mov dword [ebp - 0x1234], 7
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x4211e8
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4211de
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421531
push ecx
push edi
call fcn.00467a3f
add esp, 8
mov edi, dword [ebp - 0x1254]
mov edx, dword [ebp - 0x1258]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x421235
mov ecx, dword [ebp - 0x126c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42122b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421536
push edx
push ecx
call fcn.00467a3f
add esp, 8
cmp byte [ebp - 0x124a], 0
je 0x421352
call fcn.0043c280
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x420f8f
push 0x70
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcutils.cc
lea ecx, [ebp - 0x1230]
mov dword [ebp - 0x1220], eax
mov dword [ebp - 0x121c], 0xf
mov byte [ebp - 0x1230], al
call fcn.004082b0
push 3
push 0x4ba7a4
lea ecx, [ebp - 0x126c]
mov dword [ebp - 4], 6
mov dword [ebp - 0x125c], 0
mov dword [ebp - 0x1258], 0xf
mov byte [ebp - 0x126c], 0
call fcn.004082b0
mov byte [ebp - 4], 7
call fcn.0043c280
mov dword [ebp - 0x1254], eax
lea ecx, [ebp - 0x2b0]
push 0x11c
lea eax, [ebp - 0x1230]
push eax
lea eax, [ebp - 0x126c]
push eax
call fcn.00403c10
mov esi, eax
push str.will_kill_not_wx_exe__pid:
push esi
mov byte [ebp - 4], 8
call fcn.00404ba0
add esp, 8
mov ecx, esi
push edi
call fcn.00404a00
push str.__wx_exe:
push esi
call fcn.00404ba0
add esp, 8
cmp dword [ebx + 0x14], 8
jb 0x421319
mov ebx, dword [ebx]
test ebx, ebx
mov eax, 0x4baf6c
cmovne eax, ebx
push eax
push esi
call fcn.0040abe0
push str.__get_exe:
push esi
call fcn.00404ba0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040abe0
mov ecx, dword [ebp - 0x1254]
add esp, 0x18
mov eax, dword [ecx]
jmp 0x420f6a
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x421426
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.0043c280
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x420f8f
push 0x70
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcutils.cc
lea ecx, [ebp - 0x1230]
mov dword [ebp - 0x1220], eax
mov dword [ebp - 0x121c], 0xf
mov byte [ebp - 0x1230], al
call fcn.004082b0
push 3
push 0x4ba7a4
lea ecx, [ebp - 0x126c]
mov dword [ebp - 4], 9
mov dword [ebp - 0x125c], edi
mov dword [ebp - 0x1258], 0xf
mov byte [ebp - 0x126c], 0
call fcn.004082b0
mov byte [ebp - 4], 0xa
call fcn.0043c280
mov edi, eax
lea ecx, [ebp - 0x2b0]
push 0x124
lea eax, [ebp - 0x1230]
push eax
lea eax, [ebp - 0x126c]
push eax
call fcn.00403c10
mov esi, eax
push str.Failed_to_open_process._Error:
push esi
mov byte [ebp - 4], 0xb
call fcn.00404ba0
add esp, 8
push ebx
jmp 0x420f5f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x42152a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.0043c280
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x420f8f
push 0x70
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcutils.cc
lea ecx, [ebp - 0x1284]
mov dword [ebp - 0x1274], eax
mov dword [ebp - 0x1270], 0xf
mov byte [ebp - 0x1284], al
call fcn.004082b0
push 3
push 0x4ba7a4
lea ecx, [ebp - 0x1248]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x1238], esi
mov dword [ebp - 0x1234], 0xf
mov byte [ebp - 0x1248], 0
call fcn.004082b0
mov byte [ebp - 4], 0xd
call fcn.0043c280
mov edi, eax
lea ecx, [ebp - 0xab0]
push 0x130
lea eax, [ebp - 0x1284]
push eax
lea eax, [ebp - 0x1248]
push eax
call fcn.00403c10
mov esi, eax
push str.Failed_to_terminate_process._Error:
push esi
mov byte [ebp - 4], 0xe
call fcn.00404ba0
add esp, 8
mov ecx, esi
push ebx
call fcn.00404a00
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xab0]
call fcn.00404e00
lea ecx, [ebp - 0x1248]
call fcn.00404580
lea ecx, [ebp - 0x1284]
jmp 0x420f8a
mov al, 1
jmp 0x420f95
call fcn.004764c9
call fcn.004764c9
int3