Function at 0x140017bd0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x508], rbx
mov rax, qword [0x1400a1640]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov ebx, r8d
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x58], rdx
xor r15d, r15d
mov dword [rsp + 0x48], r15d
call fcn.140001e70
mov rcx, rax
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x140017c43
mov ecx, 0x80004005
call fcn.140001bf0
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], r15
xor r8d, r8d
lea rdx, [0x140089d70]
lea rcx, [rsp + 0x38]
call fcn.140009350
nop
test ebx, ebx
jne 0x140017ce2
mov rax, qword [rsp + 0x20]
mov qword [r14], rax
mov rax, qword [rsp + 0x28]
mov qword [r14 + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [r14 + 0x10], rax
mov rdi, qword [rsp + 0x38]
lea rcx, [rdi - 0x18]
call fcn.140001420
add rax, 0x18
mov qword [r14 + 0x18], rax
lock add dword [rdi - 8], 0xffffffff
jg 0x140017cc0
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + 8]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140017f24
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x140017f24
mov edx, ebx
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x140017d40
mov rax, qword [rsp + 0x20]
mov qword [r14], rax
mov rax, qword [rsp + 0x28]
mov qword [r14 + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [r14 + 0x10], rax
mov rdi, qword [rsp + 0x38]
lea rcx, [rdi - 0x18]
call fcn.140001420
add rax, 0x18
mov qword [r14 + 0x18], rax
lock add dword [rdi - 8], r13d
jg 0x140017f0c
mov rcx, qword [rdi - 0x18]
lea rdx, [rdi - 0x18]
jmp 0x140017f05
mov dword [rsp + 0x60], 0x438
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x140017ebd
lea rdx, [rbp - 0x70]
mov rcx, qword [r12]
call fcn.1400411dc
test eax, eax
je 0x140017d83
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x140017d5a
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov eax, dword [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x190]
mov rdi, rbx
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140017db0
mov rsi, qword [rsp + 0x38]
test edi, edi
jne 0x140017e1f
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140017ec2
cmp dword [rdx + 0x10], 0
jge 0x140017df8
cmp dword [rsi - 0xc], 0
jge 0x140017deb
mov ecx, 0x80070057
call fcn.140001bf0
int3
mov dword [rsi - 0x10], r15d
mov word [rsi], r15w
jmp 0x140017ec2
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140017e08
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
jmp 0x140017ec2
mov eax, dword [rsi - 0x10]
mov dword [rsp + 0x40], eax
lea r15, [rbp + 0x190]
sub r15, rsi
sar r15, 1
test edi, edi
jns 0x140017e42
mov ecx, 0x80070057
call fcn.140001bf0
int3
mov ecx, 1
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140017e64
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140001b70
mov rsi, qword [rsp + 0x38]
mov eax, dword [rsp + 0x40]
movsxd rdx, dword [rsi - 0xc]
mov rcx, rsi
add rdx, rdx
cmp r15, rax
movsxd rax, edi
ja 0x140017e8e
add rax, rax
lea r8, [rsi + r15*2]
mov r15, rax
mov r9, rax
call fcn.140040850
jmp 0x140017ea1
lea r15, [rax + rax]
mov r9, r15
lea r8, [rbp + 0x190]
call fcn.14003fd44
cmp edi, dword [rsi - 0xc]
jg 0x140017eb2
mov dword [rsi - 0x10], edi
xor eax, eax
mov word [r15 + rsi], ax
jmp 0x140017ec2
mov ecx, 0x80070057
call fcn.140001bf0
int3
mov rsi, qword [rsp + 0x38]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x20]
mov qword [r14], rax
mov rax, qword [rsp + 0x28]
mov qword [r14 + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [r14 + 0x10], rax
lea rcx, [rsi - 0x18]
call fcn.140001420
add rax, 0x18
mov qword [r14 + 0x18], rax
lock add dword [rsi - 8], 0xffffffff
jg 0x140017f0c
mov rcx, qword [rsi - 0x18]
lea rdx, [rsi - 0x18]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140017f24
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r14
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14003fb60
mov rbx, qword [rsp + 0x508]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret