Function at 0x140044190
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6e0
mov rax, qword [0x1400e9070]
xor rax, rsp
mov qword [rsp + 0x6d0], rax
mov r13, rdx
mov rdi, rcx
xor edx, edx
mov r14, r8
mov r12d, 1
xor r15d, r15d
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rax
mov qword [rsp + 0x50], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea ebp, [r12 - 2]
test eax, eax
je 0x14004452d
mov qword [rsp + 0x738], rsi
lea rsi, [0x1400c3148]
nop dword [rax]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14004421d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x14004450c
xor edx, edx
lea rcx, [rsp + 0x2b0]
mov r8d, 0x208
call fcn.14007cb40
xor edx, edx
lea rcx, [rsp + 0x4c0]
mov r8d, 0x208
call fcn.14007cb40
call fcn.140044610
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x100410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbp, rbp
je 0x14004450c
cmp qword [r14 + 0x10], 0
je 0x14004430a
lea r9, [rsp + 0x2a0]
mov dword [rsp + 0x2a0], 0x104
lea r8, [rsp + 0x2b0]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x14004430a
cmp qword [r14 + 0x18], 8
mov r8, r14
jb 0x1400442c4
mov r8, qword [r14]
mov r9d, dword [r14 + 0x10]
lea rcx, [rsp + 0x4c0]
call fcn.14003d010
xor edx, edx
lea rcx, [rsp + 0x4c0]
lea r8d, [rdx + 0x10]
call qword [sym.imp.SHELL32.dll_PathResolve]
mov r8, qword [r14 + 0x10]
lea rdx, [rsp + 0x4c0]
lea rcx, [rsp + 0x2b0]
call fcn.1400932bc
test eax, eax
jne 0x140044503
mov ecx, dword [rsp + 0x68]
call fcn.140043950
test al, al
je 0x140044503
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x100411
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
test rbx, rbx
je 0x14004445e
mov edx, 9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140044373
lea rdx, [rsp + 0x2b0]
mov rcx, r13
call fcn.140002cb0
mov r12d, 0xffffffff
mov edx, 0x1388
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x140044392
cmp eax, 0x102
je 0x140044392
inc r15d
jmp 0x1400443a8
lea rdx, [rsp + 0x2b0]
mov rcx, r13
call fcn.140002cb0
mov r12d, 0xffffffff
cmp qword [0x1400ed810], 0
je 0x140044407
cmp qword [rdi + 0x18], 8
mov rbx, rdi
jb 0x1400443bf
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov r9, rsi
mov qword [rsp + 0x30], rbx
lea r8, str.ProcessUtils
lea rax, str.Killing_Process:_s_Error:__u
mov ecx, 0x1e
mov qword [rsp + 0x28], rax
lea rdx, str.OOBEUtils
mov rax, qword [0x1400ed810]
mov qword [rsp + 0x20], rsi
call qword [case.0x140049d6d.0]
jmp 0x1400444fe
mov rbx, qword [0x1400ed818]
test rbx, rbx
je 0x1400444fe
cmp qword [rdi + 0x18], 8
mov rsi, rdi
jb 0x140044424
mov rsi, qword [rdi]
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400ed818]
mov edx, 0x1e
mov dword [rsp + 0x30], eax
lea rax, str.Killing_Process:_s_Error:__u
mov qword [rsp + 0x28], rsi
lea rsi, [0x1400c3148]
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 0x68]
jmp 0x1400444ee
mov r10, qword [0x1400ed810]
test r10, r10
je 0x1400444b3
cmp qword [rdi + 0x18], 8
mov rax, rdi
jb 0x140044477
mov rax, qword [rdi]
mov dword [rsp + 0x38], r8d
lea rdx, str.OOBEUtils
mov qword [rsp + 0x30], rax
lea r8, str.ProcessUtils
lea rax, str.Not_able_to_kill_process:__s_Error:__u
mov r9, rsi
mov qword [rsp + 0x28], rax
mov ecx, PathResolve
mov rax, r10
mov qword [rsp + 0x20], rsi
call qword [case.0x140049d6d.0]
jmp 0x1400444fe
mov rcx, qword [0x1400ed818]
test rcx, rcx
je 0x1400444fe
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1400444cc
mov rdx, qword [rdi]
mov rax, qword [rcx]
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x28], rdx
lea rdx, str.Not_able_to_kill_process:__s_Error:__u
mov qword [rsp + 0x20], rdx
mov edx, PathResolve
mov rax, qword [rax + 0x68]
lea r9, str.ProcessUtils
mov r8, rsi
call qword [case.0x140049d6d.0]
mov rbx, qword [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140044210
mov rsi, qword [rsp + 0x738]
lea ebp, [rax - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r12d, 0xffffffff
cmove r15d, ebp
mov eax, r15d
mov rcx, qword [rsp + 0x6d0]
xor rcx, rsp
call fcn.140079b50
add rsp, 0x6e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret