Function at 0x14005a3b0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x2a0
mov rax, qword [0x140103080]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov edx, dword [0x140104fa0]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14005a442
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14005a437
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14005a432
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005a77f
mov rcx, r8
call fcn.1400d25bc
xor r15d, r15d
mov byte [rbx], r15b
jmp 0x14005a745
mov dword [rsp + 0x30], 0x238
cmp qword [rbx + 0x18], 0xf
jbe 0x14005a45d
mov rbp, qword [rbx]
mov rsi, rbp
add rbp, qword [rbx + 0x10]
jmp 0x14005a467
mov rsi, rbx
mov rbp, qword [rbx + 0x10]
add rbp, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x270], xmm0
mov edi, 7
xor r15d, r15d
cmp rsi, rbp
jne 0x14005a48d
mov word [rsp + 0x270], r15w
jmp 0x14005a5c9
mov rax, rbp
sub rax, rsi
mov r14, r15
mov qword [rsp + 0x280], r15
mov qword [rsp + 0x288], rdi
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x14005a78c
cmp rax, rdi
jbe 0x14005a560
mov rdi, rax
or rdi, 7
cmp rdi, rcx
jbe 0x14005a4e1
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14005a510
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14005a786
add rcx, rcx
cmp rcx, 0x1000
jb 0x14005a53f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005a786
mov rcx, rax
call fcn.1400d28e8
mov rcx, rax
test rax, rax
je 0x14005a675
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14005a54e
test rcx, rcx
je 0x14005a54b
call fcn.1400d28e8
jmp 0x14005a54e
mov rax, r15
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x288], rdi
nop
lea rcx, [rsp + 0x270]
cmp rdi, 7
cmova rcx, qword [rsp + 0x270]
movsx eax, byte [rsi]
mov word [rcx + r14*2], ax
mov r14, qword [rsp + 0x280]
inc r14
mov qword [rsp + 0x280], r14
inc rsi
cmp rsi, rbp
je 0x14005a5a2
mov rdi, qword [rsp + 0x288]
jmp 0x14005a560
lea rax, [rsp + 0x270]
cmp qword [rsp + 0x288], 7
cmova rax, qword [rsp + 0x270]
mov word [rax + r14*2], r15w
mov rdi, qword [rsp + 0x288]
lea rdx, [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x14005a629
nop dword [rax + rax]
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14005a5ed
mov r8, qword [rbx]
lea rax, [rsp + 0x60]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14005a613
inc rax
test ecx, ecx
jne 0x14005a600
mov rcx, r12
test edx, edx
je 0x14005a67c
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x14005a5e0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 7
jbe 0x14005a70c
lea rdx, [rdi*2 + 2]
mov rcx, qword [rsp + 0x270]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a706
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a706
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x48]
cmp rdi, 7
jbe 0x14005a6c4
lea rdx, [rdi*2 + 2]
mov rcx, qword [rsp + 0x270]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a6be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a675
call fcn.1400d25bc
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14005a6fe
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14005a6f9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005a77f
mov rcx, r8
call fcn.1400d25bc
mov byte [rbx], 0
mov rax, rsi
jmp 0x14005a747
call fcn.1400d25bc
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14005a742
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14005a73d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005a77f
mov rcx, r8
call fcn.1400d25bc
mov byte [rbx], 0
xor eax, eax
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r15
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400d2300
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14004ae80
nop
call fcn.14004af20
int3