Function at 0x18001f850
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, rdx
mov r15, rcx
mov edi, 0x10
xor r13d, r13d
mov dword [rsp + 0x20], r13d
nop word [rax + rax]
add edi, edi
movsxd rbx, edi
shl rbx, 2
mov r8, rbx
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x18001fad2
lea edx, [rdi*4]
lea r8, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x18001facb
mov edx, dword [rsp + 0x20]
cmp rdx, rbx
je 0x18001f8a0
shr edx, 2
mov rbx, r13
mov r14d, edx
test edx, edx
jle 0x18001fa99
nop word [rax + rax]
mov edi, dword [rsi + rbx*4]
test edi, edi
je 0x18001fa8d
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x18001fa8d
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], r13
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], r13
mov word [rbp - 0x29], r13w
lea rdx, [rbp - 0x29]
mov rcx, rax
call fcn.180020c20
cmp qword [rbp - 0x19], 0
je 0x18001fa6c
mov dword [rbp - 0x79], r13d
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x59], 7
mov qword [rbp - 0x61], r13
mov word [rbp - 0x71], r13w
xor r8d, r8d
lea rdx, [0x180100a4c]
lea rcx, [rbp - 0x71]
call fcn.1800166f0
nop
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x39], 7
mov qword [rbp - 0x41], r13
mov word [rbp - 0x51], r13w
xor r8d, r8d
lea rdx, [0x180100a4c]
lea rcx, [rbp - 0x51]
call fcn.1800166f0
nop
mov dword [rbp - 0x79], edi
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.1800270a0
mov rdi, rax
lea rax, [rbp - 0x71]
cmp rax, rdi
je 0x18001f9fc
cmp qword [rbp - 0x59], 8
jb 0x18001f9de
mov rcx, qword [rbp - 0x71]
call fcn.1800b5700
mov qword [rbp - 0x59], 7
mov qword [rbp - 0x61], r13
mov word [rbp - 0x71], r13w
mov rdx, rdi
lea rcx, [rbp - 0x71]
call fcn.180016260
nop
cmp qword [rbp + 0xf], 8
jb 0x18001fa0c
mov rcx, qword [rbp - 9]
call fcn.1800b5700
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r13
mov word [rbp - 9], r13w
lea rdx, [rbp - 0x79]
mov rcx, r15
call fcn.180021590
nop
cmp qword [rbp - 0x39], 8
jb 0x18001fa3a
mov rcx, qword [rbp - 0x51]
call fcn.1800b5700
mov qword [rbp - 0x39], 7
mov qword [rbp - 0x41], r13
mov word [rbp - 0x51], r13w
cmp qword [rbp - 0x59], 8
jb 0x18001fa5b
mov rcx, qword [rbp - 0x71]
call fcn.1800b5700
mov qword [rbp - 0x59], 7
mov qword [rbp - 0x61], r13
mov word [rbp - 0x71], r13w
cmp qword [rbp - 0x11], 8
jb 0x18001fa7c
mov rcx, qword [rbp - 0x29]
call fcn.1800b5700
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], r13
mov word [rbp - 0x29], r13w
inc rbx
cmp rbx, r14
jl 0x18001f900
mov r8, rsi
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [r15 + 8]
sub rcx, qword [r15]
movabs rax, 0xe38e38e38e38e39
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rax, rdx
jmp 0x18001fad7
mov eax, 0xfffffffd
jmp 0x18001fad7
mov eax, 0xfffffffe
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800b6c40
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret