Function at 0x140001300
Capabilities:
Allocate or change rwx memory
Enumerate process modules
Terminate process

Disassembly:
push rsi
push rdi
push r12
push r14
sub rsp, 0x58
mov r12, rdx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x90]
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001542
mov edx, dword [rsp + 0x90]
test edx, edx
je 0x140001542
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x140001370
lea rcx, str.____Error_allocating_memory_to_store_process_modules_handles_n
call fcn.140001020
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8d, dword [rsp + 0x90]
lea r9, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001542
mov qword [rsp + 0x80], rbx
mov rcx, rdi
mov rbx, qword [rdi]
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r9d, 0x18
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rdx, qword [rsp + 0x38]
lea rcx, str.Base_Address:_0x_llu_n
call fcn.140001020
mov edx, dword [rsp + 0x40]
lea rcx, str.Image_Size:____u_n
call fcn.140001020
mov rdx, qword [rsp + 0x48]
lea rcx, str.Entry_Point:__0x_llu_n
call fcn.140001020
lea rcx, [0x140004648]
call fcn.140001020
mov r15, qword [rsp + 0x38]
lea r9, [rsp + 0x98]
mov ebp, dword [rsp + 0x40]
mov rcx, r15
mov edx, ebp
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test rbp, rbp
jne 0x140001447
lea rcx, str.____Error_detecting_main_module_size
call fcn.140001020
lea ecx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor edi, edi
lea ecx, [rdi + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, r15
lea rcx, str.Starting_search_from:_0x_llu_n
mov rsi, rax
call fcn.140001020
add rbp, 0xfffffffffffffff8
je 0x1400014f1
mov rbx, r15
mov r9d, 8
lea rax, [rsp + 0x30]
inc rbx
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, rbx
inc rdi
lea rcx, [r9 - 9]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000152a
cmp qword [rsp + 0x30], 8
je 0x1400014b5
lea rcx, str.____Error_reading_from_memory_n
call fcn.140001020
jmp 0x1400014ec
mov rax, qword [r14]
cmp rax, qword [rsi]
jne 0x1400014ec
mov rdx, rbx
lea rcx, str.Found_at__llu_n
call fcn.140001020
mov r9d, 8
lea rax, [rsp + 0x30]
mov r8, r12
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [r9 - 9]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp rdi, rbp
jb 0x140001471
lea rdx, [rdi + r15]
lea rcx, str.Ended_search_at:___0x_llu_n
call fcn.140001020
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r15, qword [rsp + 0x50]
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, str.____Error_reading_from_memory_n
call fcn.140001020
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.____Error_enumerating_process_modules_n
call fcn.140001020
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3