Function at 0x180057ed0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
lea rbp, [rsp + 0x40]
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rbp + 0x2a8], rbx
mov qword [rbp + 0x2b0], rsi
mov qword [rbp + 0x2b8], rdi
mov rax, qword [0x1800d1eb0]
xor rax, rbp
mov qword [rbp + 0x260], rax
mov rsi, rcx
mov qword [rbp + 0x10], rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
mov dword [rbp + 0x20], 0x238
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x180057f5a
cmp qword [rsi + 0x18], 8
jb 0x180057f50
mov rcx, qword [rsi]
call fcn.18007a7a4
xor r12d, r12d
xor eax, eax
jmp 0x18005815c
lea rdx, [rbp + 0x20]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32NextW]
xor r12d, r12d
test eax, eax
je 0x180058148
movabs r15, 0xffffffffffffff0
or r14, 0xffffffffffffffff
lea rcx, [rbp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9d, [rax + 1]
cmp r9d, 0x3fffffff
jg 0x180057ff6
movsxd rax, r9d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x180057fa9
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18007fc70
sub rsp, rcx
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x180057ff6
mov byte [rdi], 0
lea eax, [r9 + r9]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, r14d
lea r8, [rbp + 0x4c]
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, r12
jmp 0x180057ff9
mov rdi, r12
lea rcx, [0x1800d1878]
mov rax, qword [0x1800d1878]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp], rbx
test rdi, rdi
je 0x180058040
test rdi, 0xffffffffffff0000
jne 0x180058040
movzx edi, di
mov ecx, edi
call fcn.18000d310
test rax, rax
je 0x180058050
mov r8d, edi
mov rdx, rax
lea rcx, [rbp]
call fcn.18000d5c0
jmp 0x18005804c
mov rdx, rdi
lea rcx, [rbp]
call fcn.18000bfd0
mov rbx, qword [rbp]
cmp dword [rbx - 8], 1
jle 0x180058066
mov edx, dword [rbx - 0x10]
lea rcx, [rbp]
call fcn.18000d450
mov rbx, qword [rbp]
xor eax, eax
mov rcx, r14
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8, rcx
mov r9, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x18005808a
mov rdx, qword [rsi]
jmp 0x18005808d
mov rdx, rsi
mov rdi, rcx
cmp r9, rcx
cmovb rdi, r9
mov rcx, rbx
test rdi, rdi
je 0x1800580c5
nop
movzx eax, word [rcx]
cmp word [rdx], ax
jne 0x1800580b7
add rdx, 2
add rcx, 2
dec rdi
jne 0x1800580a0
jmp 0x1800580c5
mov edi, 1
cmp word [rdx], ax
cmovb edi, r14d
jmp 0x1800580c8
mov edi, r12d
movsxd rax, edi
test edi, edi
jne 0x1800580e2
cmp r9, r8
jae 0x1800580d9
mov eax, r14d
jmp 0x1800580e2
mov eax, r12d
cmp r9, r8
setne al
test eax, eax
sete al
test al, al
je 0x180058118
mov r8d, dword [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180058133
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rbp + 0x20]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180057f80
cmp qword [rsi + 0x18], 8
jb 0x180058157
mov rcx, qword [rsi]
call fcn.18007a7a4
mov eax, 1
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r12
mov word [rsi], r12w
mov rcx, qword [rbp + 0x260]
xor rcx, rbp
call fcn.18007a7c0
mov rbx, qword [rbp + 0x2a8]
mov rsi, qword [rbp + 0x2b0]
mov rdi, qword [rbp + 0x2b8]
lea rsp, [rbp + 0x270]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret