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 0x14000155b
mov edx, dword [rsp + 0x90]
test edx, edx
je 0x14000155b
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x140001372
lea rcx, str.____Error_allocating_memory_to_store_process_modules_handles_n
call fcn.140001020
mov ecx, 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 0x14000155b
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 0x14000144b
lea rcx, str.____Error_detecting_main_module_size
call fcn.140001020
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0x40
xor edi, edi
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 0x14000150a
mov rbx, r15
nop word [rax + rax]
lea rax, [rsp + 0x30]
inc rbx
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 8
mov r8, rsi
mov rcx, 0xffffffffffffffff
inc rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140001543
cmp qword [rsp + 0x30], 8
je 0x1400014c7
lea rcx, str.____Error_reading_from_memory_n
call fcn.140001020
jmp 0x140001501
mov rax, qword [r14]
cmp rax, qword [rsi]
jne 0x140001501
mov rdx, rbx
lea rcx, str.Found_at__llu_n
call fcn.140001020
lea rax, [rsp + 0x30]
mov r9d, 8
mov r8, r12
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp rdi, rbp
jb 0x140001480
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