Function at 0x140006f20
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
mov dword [rsp + 0x40], 0x94
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140006fff
cmp dword [rsp + 0x50], 2
jne 0x140006fff
mov eax, dword [rsp + 0x44]
sub eax, 3
je 0x1400070be
sub eax, 1
je 0x140006fc6
sub eax, 1
je 0x140006fe1
sub eax, 1
je 0x140006fd0
cmp eax, 4
jne 0x140006fff
cmp dword [rsp + 0x48], 0
jmp 0x1400070cf
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400070d5
sub eax, 1
jmp 0x140006fe7
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400070d5
sub eax, 1
je 0x1400070d5
cmp eax, 1
je 0x1400070d5
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140007039
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140007034
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000735b
mov rcx, r8
call fcn.14004c11c
xor esi, esi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], recv
mov byte [rdi], sil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140007084
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000707f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007362
mov rcx, r8
call fcn.14004c11c
mov eax, 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.14004be70
mov rbx, qword [rsp + 0x260]
add rsp, 0x220
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsp + 0x48]
sub eax, 1
je 0x1400070d5
sub eax, 4
je 0x1400070d5
cmp eax, 0x2e
jne 0x140006fff
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x20]
xor r8d, r8d
lea edx, [r8 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x14000713d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140007168
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x140007168
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x20]
xor r8d, r8d
lea edx, [r8 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x14000713d
lea rcx, [0x1400731c0]
call fcn.1400074d0
jmp 0x140007168
mov r8d, 1
mov rcx, qword [rsp + 0x20]
call fcn.1400073c0
test al, al
jne 0x140007168
lea rcx, str.Set_Privilege
call fcn.1400074d0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, recv
lea rdx, str.notepad.exe
mov rcx, rbx
call fcn.1400021e0
xor edx, edx
mov r8d, 0x12c
lea rcx, [rbp - 0x1c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x20], 0x130
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140007239
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400071e7
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400071e2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000735b
mov rcx, r8
call fcn.14004c11c
xor esi, esi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], recv
mov byte [rdi], sil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140007232
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x14000722d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007362
mov rcx, r8
call fcn.14004c11c
xor eax, eax
jmp 0x140007089
xor esi, esi
mov r14d, esi
lea rdx, [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14000728f
nop
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000725d
mov rax, qword [rbx]
lea r8, [rbp + 0xc]
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140007277
inc rax
test ecx, ecx
jne 0x140007264
test edx, edx
cmove r14d, dword [rbp - 0x18]
lea rdx, [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140007250
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r14d
xor edx, edx
mov ecx, 0x42a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
jne 0x1400072fa
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400072e6
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x1400072e1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000735b
mov rcx, r8
call fcn.14004c11c
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
jmp 0x1400071f8
xor r8d, r8d
mov rcx, qword [0x14036e510]
call fcn.1400073c0
mov rcx, qword [0x14036e510]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140007323
mov rcx, qword [rdi]
mov rdx, r14
call fcn.140006bf0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1400072b0
lea rcx, [0x140073198]
call fcn.1400074d0
jmp 0x1400072b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3