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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8dc5
mov eax, dword fs:[0]
push eax
mov eax, 0x1278
call fcn.0045f2a0
mov eax, dword [0x4da720]
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.0046a630
add esp, 0xc
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x41fab6
push edi
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41fbb4
push 0x800
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.0046a630
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 0x41fb69
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.0046a630
lea eax, [ebp - 0x1218]
push 0x7e
push eax
call fcn.0046ad3d
add esp, 0x14
test eax, eax
je 0x41fb3d
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 0x41fb43
lea eax, [ebp - 0x1218]
push 0x104
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00470b77
add esp, 0x10
mov dword [ebp - 0x1250], 1
jmp 0x41fba0
push 0x400
lea eax, [ebp - 0x1218]
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
je 0x41fba0
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1218]
push eax
call fcn.0041d950
add esp, 0xc
mov dword [ebp - 0x1250], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1250], 0
jne 0x41fcc1
call fcn.00437e50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41fc9f
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.00408280
push 3
push 0x4b1c38
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.00408280
mov byte [ebp - 4], 1
call fcn.00437e50
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.0045f213
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 0x41fce7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x126c]
call fcn.00408380
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], 3
cmp eax, dword [ebp - 0x125c]
je 0x41fd27
mov byte [ebp - 0x124a], 1
jmp 0x41fefe
push ebx
lea ecx, [ebp - 0x1230]
call fcn.0040bda0
lea eax, [ebp - 0x126c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1248]
call fcn.0040bda0
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.00470a7a
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.0041d6d0
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.00470a7a
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.0041d6d0
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 0x41fe46
test edx, edx
je 0x41fe37
sub esi, ecx
nop word [eax + eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x41fe40
add ecx, 2
sub edx, 1
jne 0x41fe20
mov eax, dword [ebp - 0x1248]
mov byte [ebp - 0x124a], 0
jmp 0x41fe4d
mov eax, dword [ebp - 0x1248]
mov byte [ebp - 0x124a], 1
mov ecx, dword [ebp - 0x1234]
mov byte [ebp - 4], 4
cmp ecx, 8
jb 0x41fe9d
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x41fe8d
mov eax, dword [eax - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x1250], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x420241
mov eax, dword [ebp - 0x1250]
push ecx
push eax
call fcn.0045ef4f
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 0x41fef8
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x41feee
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420241
push ecx
push edi
call fcn.0045ef4f
add esp, 8
mov edi, dword [ebp - 0x1254]
mov edx, dword [ebp - 0x1258]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x41ff45
mov ecx, dword [ebp - 0x126c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ff3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420246
push edx
push ecx
call fcn.0045ef4f
add esp, 8
cmp byte [ebp - 0x124a], 0
je 0x420062
call fcn.00437e50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41fc9f
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.00408280
push 3
push 0x4b1c38
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.00408280
mov byte [ebp - 4], 7
call fcn.00437e50
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 0x420029
mov ebx, dword [ebx]
test ebx, ebx
mov eax, 0x4b1f68
cmovne eax, ebx
push eax
push esi
call fcn.0040abb0
push str.__get_exe:
push esi
call fcn.00404ba0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040abb0
mov ecx, dword [ebp - 0x1254]
add esp, 0x18
mov eax, dword [ecx]
jmp 0x41fc7a
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x420136
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00437e50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41fc9f
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.00408280
push 3
push 0x4b1c38
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.00408280
mov byte [ebp - 4], 0xa
call fcn.00437e50
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 0x41fc6f
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 0x42023a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.00437e50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41fc9f
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.00408280
push 3
push 0x4b1c38
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.00408280
mov byte [ebp - 4], 0xd
call fcn.00437e50
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 0x41fc9a
mov al, 1
jmp 0x41fca5
call fcn.0046daa9
call fcn.0046daa9
int3