Function at 0x1400598a0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov edx, dword [0x140197fac]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14005992a
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140059920
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14005991b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140059b52
mov rcx, r8
call fcn.14007eed0
xor edi, edi
mov byte [rbx], dil
jmp 0x140059a67
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Module32First]
xor edi, edi
test eax, eax
je 0x140059a20
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x270], xmm0
mov qword [rsp + 0x280], rdi
mov qword [rsp + 0x288], rdi
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x140059977
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x270]
call fcn.140047b20
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14005999f
mov rdx, qword [rbx]
lea rcx, [rsp + 0x270]
cmp qword [rsp + 0x288], 0xf
cmova rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140059a9a
mov rdx, qword [rsp + 0x288]
cmp rdx, 0xf
jbe 0x140059a0a
inc rdx
mov rcx, qword [rsp + 0x270]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059a05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140059ae2
call fcn.14007eed0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140059950
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140059a64
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140059a5f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140059b52
mov rcx, r8
call fcn.14007eed0
mov byte [rbx], 0
xor eax, eax
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14007ec10
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x288]
cmp rdx, 0xf
jbe 0x140059aee
inc rdx
mov rcx, qword [rsp + 0x270]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059ae9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059ae9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007eed0
mov qword [rsp + 0x280], rdi
mov qword [rsp + 0x288], 0xf
mov byte [rsp + 0x270], dil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140059b40
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140059b3b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140059b4b
mov rcx, r8
call fcn.14007eed0
mov byte [rbx], 0
mov rax, rsi
jmp 0x140059a69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3