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

Disassembly:
push rsi
push rdi
push r12
push r14
sub rsp, 0x78
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12, rdx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14000150e
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x14000150e
mov edx, ecx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x14000132b
lea rcx, str.____Error_allocating_memory_to_store_process_modules_handles_n
call fcn.140001250
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14000150e
mov qword [rsp + 0xa0], rbx
mov rcx, rdi
mov rbx, qword [rdi]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0x70], 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.140001250
mov edx, dword [rsp + 0x40]
lea rcx, str.Image_Size:____u_n
call fcn.140001250
mov rdx, qword [rsp + 0x48]
lea rcx, str.Entry_Point:__0x_llu_n
call fcn.140001250
lea rcx, [0x140003420]
call fcn.140001250
mov r15, qword [rsp + 0x38]
lea r9, [rsp + 0x58]
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 0x1400013f9
lea rcx, str.____Error_detecting_main_module_size
call fcn.140001250
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.140001250
add rbp, 0xfffffffffffffff8
je 0x1400014b0
mov rbx, r15
nop dword [rax]
nop word [rax + rax]
mov r9d, 8
lea rax, [rsp + 0x50]
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 0x1400014f6
cmp qword [rsp + 0x50], 8
je 0x140001474
lea rcx, str.____Error_reading_from_memory_n
call fcn.140001250
jmp 0x1400014ab
mov rax, qword [r14]
cmp rax, qword [rsi]
jne 0x1400014ab
mov rdx, rbx
lea rcx, str.Found_at__llu_n
call fcn.140001250
mov r9d, 8
lea rax, [rsp + 0x50]
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 0x140001430
lea rdx, [rdi + r15]
lea rcx, str.Ended_search_at:___0x_llu_n
call fcn.140001250
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001ac0
add rsp, 0x78
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, str.____Error_reading_from_memory_n
call fcn.140001250
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.140001250
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3