Function at 0x14012b560
Capabilities:
Enumerate process modules

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xaa8]
sub rsp, 0xb70
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0xa60], rax
mov r15, r9
mov r12, r8
mov r14b, dl
mov byte [rsp + 0x30], dl
mov esi, ecx
mov dword [rsp + 0x38], ecx
mov rax, qword [r8]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [r8]
mov qword [rax + 8], rax
xor r13d, r13d
mov qword [r8 + 8], r13
cmp rcx, qword [r8]
je 0x14012b5da
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
cmp rbx, qword [r12]
jne 0x14012b5c8
mov rax, qword [r15]
mov rdi, qword [rax]
mov qword [rax], rax
mov rax, qword [r15]
mov qword [rax + 8], rax
mov qword [r15 + 8], r13
cmp rdi, qword [r15]
je 0x14012b615
mov rbx, qword [rdi]
lea rcx, [rdi + 0x10]
xor r8d, r8d
mov dl, 1
call fcn.140007eb8
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
cmp rbx, qword [r15]
jne 0x14012b5f3
lea rax, vtable.RefCounted.0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r13d
lea rax, vtable.OHandle.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], r13
mov byte [rsp + 0x58], r13b
mov dword [rsp + 0x5c], 0x55
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r13
mov word [rbp - 0x78], r13w
test r14b, r14b
sete al
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x40]
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call fcn.14012bba0
xor r14d, r14d
test al, al
jne 0x14012b6a7
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140007eb8
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14012b6a0
cmp byte [rsp + 0x58], r14b
je 0x14012b6a0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14012b97e
mov dword [rsp + 0x34], 0x2000
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r14
mov eax, 0x400
mov r13d, dword [rbp + 0xad0]
mov rsi, qword [rsp + 0x50]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14012c87c
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov ecx, 0xffffffff
sub rdi, rbx
sar rdi, 3
mov rax, rdi
shl rax, 3
test r13d, r13d
jne 0x14012b717
cmp rax, rcx
ja 0x14012b759
lea r9, [rsp + 0x34]
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModules
jmp 0x14012b738
cmp rax, rcx
ja 0x14012b94a
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x34]
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModulesEx
test eax, eax
je 0x14012b8bf
mov r14d, dword [rsp + 0x34]
shr r14d, 3
mov eax, r14d
cmp rdi, rax
jae 0x14012b796
xor r14d, r14d
jmp 0x14012b6ce
mov dword [rbp + 0x340], 0x5d
mov dword [rbp + 0x544], r14d
mov word [rbp + 0x648], r14w
mov word [rbp + 0x548], r14w
mov word [rbp + 0x344], r14w
lea rdx, [0x1401e5908]
lea rcx, [rbp + 0x340]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
xor r13d, r13d
test r14d, r14d
je 0x14012b87a
mov eax, 0xffffffff
add r14d, eax
mov rcx, qword [rbx + r14*8]
mov qword [rsp + 0x78], rcx
mov rdi, qword [r12]
lea r9, [rsp + 0x78]
mov r8, qword [rdi + 8]
mov rdx, rdi
mov rcx, r12
call fcn.14012aa30
mov rdx, qword [r12 + 8]
movabs rcx, 0xaaaaaaaaaaaaaa9
sub rcx, rdx
cmp rcx, 1
jb 0x14012b86c
lea rcx, [rdx + 1]
mov qword [r12 + 8], rcx
mov qword [rdi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
lea r8, [rbp - 0x78]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.14012b110
mov rdi, qword [r15]
lea r9, [rbp - 0x78]
mov r8, qword [rdi + 8]
mov rdx, rdi
mov rcx, r15
call fcn.140029b2c
mov rdx, qword [r15 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x14012b85e
lea rcx, [rdx + 1]
mov qword [r15 + 8], rcx
mov qword [rdi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
test r14d, r14d
jne 0x14012b7a2
mov rsi, qword [rsp + 0x50]
jmp 0x14012b87a
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
test rbx, rbx
je 0x14012b894
mov rdx, qword [rsp + 0x70]
sub rdx, rbx
sar rdx, 3
mov rcx, rbx
call fcn.140029c24
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140007eb8
nop
test rsi, rsi
je 0x14012b8b8
cmp byte [rsp + 0x58], r13b
je 0x14012b8b8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14012b97e
cmp byte [rsp + 0x30], r14b
je 0x14012b90b
test rbx, rbx
je 0x14012b8e0
mov rdx, qword [rsp + 0x70]
sub rdx, rbx
sar rdx, 3
mov rcx, rbx
call fcn.140029c24
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140007eb8
nop
test rsi, rsi
je 0x14012b6a0
cmp byte [rsp + 0x58], r14b
je 0x14012b6a0
mov rcx, rsi
jmp 0x14012b69a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, str.::EnumProcessModules___failed_to_enumerate_the_list_of_modules_for_the_processid:__d
mov edx, 0xf
lea rcx, [rbp + 0x6d0]
call fcn.14012a1d0
lea rdx, [0x1401e5908]
lea rcx, [rbp + 0x6d0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov dword [rbp - 0x50], 0x5d
mov dword [rbp + 0x1b4], r14d
mov word [rbp + 0x2b8], r14w
mov word [rbp + 0x1b8], r14w
mov word [rbp - 0x4c], r14w
lea rdx, [0x1401e5908]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0xa60]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0xbb8]
add rsp, 0xb70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret