Function at 0x140005670
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov ebx, ecx
xor edx, edx
lea rcx, [rbp + 0x3b0]
mov r8d, 0x208
call fcn.14001fdd0
xor edi, edi
lea r8, str.BaseNamedObjectsCor_Private_IPCBlock_v4__d
mov r9d, ebx
mov dword [rsp + 0x5c], edi
mov edx, 0x104
mov dword [rsp + 0x2c], edi
lea rcx, [rbp + 0x3b0]
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rdi
call fcn.140005330
lea rcx, [rbp + 0x3b0]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400056f2
add ax, ax
mov dword [rsp + 0x28], 0x30
mov word [rsp + 0x58], ax
lea r8, [rsp + 0x28]
add ax, 2
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x5a], ax
lea rcx, [rsp + 0x20]
lea rax, [rbp + 0x3b0]
mov dword [rsp + 0x40], 0x40
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x58]
mov edx, 1
mov qword [rsp + 0x38], rax
movdqu xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSection]
mov esi, 0x80000000
mov ecx, eax
add eax, esi
test esi, eax
jne 0x14000590b
cmp ecx, 0xc0000022
je 0x14000590b
mov r9d, ebx
lea r8, str.BaseNamedObjectsCor_Private_IPCBlock__d
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call fcn.140005330
lea rcx, [rbp + 0x3b0]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x1400057a0
add ax, ax
mov dword [rsp + 0x28], 0x30
mov word [rsp + 0x58], ax
lea r8, [rsp + 0x28]
add ax, 2
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x5a], ax
lea rcx, [rsp + 0x20]
lea rax, [rbp + 0x3b0]
mov dword [rsp + 0x40], 0x40
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x58]
mov edx, 1
mov qword [rsp + 0x38], rax
movdqu xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSection]
mov ecx, eax
add eax, esi
test esi, eax
jne 0x14000590b
cmp ecx, 0xc0000022
je 0x14000590b
mov edx, ebx
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140005910
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x438
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x140005860
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005910
mov r11, qword [0x140031ff0]
mov r8, qword [0x140031fe8]
cmp r8, r11
je 0x1400058da
lea rax, [rbp - 0x60]
mov r10, 0xffffffffffffffff
nop
inc r10
cmp word [rax + r10*2], di
jne 0x140005880
nop word [rax + rax]
cmp qword [r8 + 0x18], 7
mov r9, r8
jbe 0x14000589d
mov r9, qword [r8]
mov rdx, qword [r8 + 0x10]
cmp rdx, r10
jne 0x1400058cc
lea rax, [rbp - 0x60]
test rdx, rdx
je 0x1400058d5
lea rcx, [rbp - 0x60]
sub r9, rcx
movzx ecx, word [rax]
cmp word [r9 + rax], cx
jne 0x1400058cc
add rax, 2
sub rdx, 1
jne 0x1400058b6
jmp 0x1400058d5
add r8, 0x20
cmp r8, r11
jne 0x140005890
cmp r8, r11
jne 0x1400058fb
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140005860
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005910
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005910
mov edi, 1
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140005920
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140007640
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret