Function at 0x14006cfb0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10750]
mov eax, 0x10850
call fcn.1400ec150
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x10890], rbx
mov r13, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x14006d34d
xor esi, esi
mov dword [rbp + 0x107a0], esi
lea r9, [rbp + 0x107a0]
mov r8d, 0x10000
lea rdx, [rbp + 0x750]
mov rcx, r12
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14006d342
mov r15d, esi
test dword [rbp + 0x107a0], 0xfffffff8
jbe 0x14006d342
movabs r14, 0x555555555555554
nop word [rax + rax]
mov edx, r15d
mov r9d, 0x800
lea r8, [rsp + 0x50]
mov rdx, qword [rbp + rdx*8 + 0x750]
mov rcx, r12
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x14006d2ba
call fcn.14000b6b4
test rax, rax
je 0x14006d337
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x107a8], rbx
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
test rax, 0xffffffffffff0000
jne 0x14006d0d6
movzx ebx, cx
xor edx, edx
mov ecx, ebx
call fcn.14000b0cc
test rax, rax
je 0x14006d1c8
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp + 0x107a8]
call fcn.1400080f4
jmp 0x14006d1c8
lea rax, [rsp + 0x50]
or rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x14006d0e0
test edi, edi
jne 0x14006d148
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14006d1c8
cmp dword [rdx + 0x10], 0
jge 0x14006d119
cmp dword [rbx - 0xc], 0
jl 0x14006d2f1
mov dword [rbx - 0x10], esi
mov byte [rbx], 0
jmp 0x14006d1c8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006d12f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp + 0x107a8], rax
jmp 0x14006d1c8
mov r14d, dword [rbx - 0x10]
lea rsi, [rsp + 0x50]
sub rsi, rbx
test edi, edi
js 0x14006d32c
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14006d182
mov edx, edi
lea rcx, [rbp + 0x107a8]
call fcn.14000799c
mov rbx, qword [rbp + 0x107a8]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp rsi, r14
ja 0x14006d19c
lea r8, [rsi + rbx]
mov r9d, edi
call fcn.140008348
jmp 0x14006d1a9
movsxd r9, edi
lea r8, [rsp + 0x50]
call fcn.140072d10
cmp edi, dword [rbx - 0xc]
jg 0x14006d321
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov byte [rax + rbx], 0
xor esi, esi
movabs r14, 0x555555555555554
lea rcx, [rbp + 0x107a8]
call fcn.140005ce4
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], rsi
mov byte [rsp + 0x20], 0
mov rbx, qword [rbp + 0x107a8]
cmp byte [rbx], 0
jne 0x14006d1f8
mov r8, rsi
jmp 0x14006d20a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x14006d200
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000d058
nop
mov rdi, qword [r13]
lea r9, [rsp + 0x20]
mov r8, qword [rdi + 8]
mov rdx, rdi
mov rcx, r13
call fcn.140009d2c
mov rdx, qword [r13 + 8]
mov rcx, r14
sub rcx, rdx
cmp rcx, 1
jb 0x14006d314
lea rcx, [rdx + 1]
mov qword [r13 + 8], rcx
mov qword [rdi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x38]
cmp rax, 0x10
jb 0x14006d2a0
inc rax
mov rcx, qword [rsp + 0x20]
cmp rax, 0x1000
jb 0x14006d29a
test cl, 0x1f
jne 0x14006d30e
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14006d308
sub rcx, rax
cmp rcx, 8
jb 0x14006d302
cmp rcx, 0x27
ja 0x14006d2fc
mov rcx, rax
call fcn.1400eb7f4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006d2ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, 0xcccccccd
mul r15d
shr edx, 4
lea ecx, [rdx + rdx*4]
shl ecx, 2
cmp r15d, ecx
jne 0x14006d2db
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r15d
mov eax, dword [rbp + 0x107a0]
shr eax, 3
cmp r15d, eax
jae 0x14006d342
jmp 0x14006d050
mov ecx, 0x80070057
call fcn.14000b9ec
nop
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
int3
call fcn.140128ff4
nop
lea rcx, str.list_T__too_long
call fcn.1400bc800
nop
mov ecx, 0x80070057
call fcn.14000b9ec
int3
mov ecx, 0x80070057
call fcn.14000b9ec
nop
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x10890]
add rsp, 0x10850
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret