Function at 0x14004b370
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x1170
call fcn.14005c0b0
sub rsp, rax
mov rax, qword [0x14006f040]
xor rax, rsp
mov qword [rsp + 0x1160], rax
lea rcx, str.ntdll.dll
mov qword [0x14006fc68], 0
mov rbx, rdx
mov dword [0x14006fc70], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtReadVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll.dll
mov qword [0x14006fc78], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtWriteVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14006fc68], 0
mov rdi, qword [rbx + 8]
mov r14, qword [rbx]
mov qword [0x14006fc80], rax
jne 0x14004b491
xor edx, edx
mov dword [rsp + 0x30], 0x130
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x14004b491
lea rax, [rsp + 0x5c]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004b450
cmp rbx, rdi
lea rdx, [rsp + 0x5c]
mov r8, rdi
mov rcx, r14
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004b47f
cmp rdi, rbx
jb 0x14004b47f
jbe 0x14004b567
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14004b440
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x14004b528
mov ebp, dword [rsp + 0x20]
xor esi, esi
shr ebp, 2
test ebp, ebp
je 0x14004b528
mov rcx, qword [0x14006fc68]
test rcx, rcx
je 0x14004b522
mov r9d, 0x104
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x14004b51b
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004b4f0
cmp rbx, rdi
lea rdx, [rsp + 0x30]
mov r8, rdi
mov rcx, r14
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004b51b
cmp rdi, rbx
jb 0x14004b51b
jbe 0x14004b56d
mov rcx, qword [0x14006fc68]
inc esi
cmp esi, ebp
jl 0x14004b4c1
mov dword [0x14006fc70], 0
lea rax, [0x14006fc68]
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.14005b070
lea r11, [rsp + 0x1170]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov ecx, dword [rsp + 0x38]
jmp 0x14004b577
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x160]
mov dword [0x14006fc70], ecx
test ecx, ecx
je 0x14004b532
call fcn.14004aff0
mov qword [0x14006fc68], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x14004b532
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_Handle_Hijacking.
call fcn.14004c2e0
lea rdx, [0x14004c4c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14004b532