Function at 0x14002a870
Capabilities:
Enumerate process modules

Disassembly:
push rbx
push rdi
push r13
mov eax, 0x11b0
call fcn.1400366d0
sub rsp, rax
mov rax, qword [0x140064018]
xor rax, rsp
mov qword [rsp + 0x1190], rax
mov qword [rsp + 0x60], rdx
mov rdi, rdx
mov r13, rcx
test rdx, rdx
je 0x14002ac9b
mov ecx, 0x20
call fcn.140038534
mov qword [rdi], rax
mov rbx, rax
test rax, rax
je 0x14002ac9b
mov ecx, 0x40
mov qword [rax + 8], 0
call fcn.140038534
mov qword [rbx], rax
test rax, rax
je 0x14002ac9b
lea r8, [rsp + 0x70]
mov qword [rbx + 0x10], 8
mov edx, 0x1000
mov dword [rbx + 0x18], 0x100
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x14002ac9b
mov qword [rsp + 0x11d0], rbp
lea rdx, [rsp + 0x40]
mov ebp, dword [rsp + 0x70]
lea rcx, [0x14005e1a8]
shr rbp, 2
mov qword [rsp + 0x11e0], rsi
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x11a8], r14
mov qword [rsp + 0x40], 0
call fcn.14002e1f0
mov r14, qword [rsp + 0x40]
xor esi, esi
mov dword [rsp + 0x30], esi
test rbp, rbp
je 0x14002ac77
lea rbx, [rsp + 0x80]
mov qword [rsp + 0x11e8], r12
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x11a0], r15
nop
mov r8d, dword [rbx]
test r8d, r8d
je 0x14002ac4c
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14002ac4c
lea r9, [rsp + 0x74]
mov dword [rsp + 0x20], 3
mov r8d, 8
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x14002ac3c
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x1080]
mov rcx, qword [rsp + 0x50]
mov r9d, 0x104
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x14002ac3c
mov edx, 0x5c
lea rcx, [rsp + 0x1080]
call fcn.140037158
xor r12d, r12d
xor r15d, r15d
lea rbp, [rax + 1]
cmp qword [r13 + 8], r12
jbe 0x14002ac37
nop dword [rax]
mov rcx, qword [rdi]
mov rdx, rbp
call fcn.14002af00
test eax, eax
jne 0x14002abd4
test rbp, rbp
je 0x14002abd4
mov rax, qword [r13]
mov rcx, qword [rax + r15*8]
mov r9, qword [rcx]
test r9, r9
je 0x14002abd4
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rcx + rbp], 0
jne 0x14002aa57
test rcx, rcx
je 0x14002abd4
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r9 + rax], 0
jne 0x14002aa70
test rax, rax
je 0x14002abd4
cmp rcx, rax
jne 0x14002abd4
cmp byte [rbp], 0
je 0x14002aad1
mov rcx, rbp
sub r9, rbp
nop dword [rax + rax]
movsx eax, byte [r9 + rcx]
test al, al
je 0x14002aad1
movsx edx, byte [rcx]
cmp dl, al
je 0x14002aac9
mov r8d, edx
mov edx, eax
lea eax, [r8 + 0x20]
cmp eax, edx
je 0x14002aac9
lea eax, [rdx + 0x20]
cmp r8d, eax
jne 0x14002abd4
inc rcx
cmp byte [rcx], 0
jne 0x14002aaa0
xor ebx, ebx
lea rcx, [rsp + 0x58]
mov r8, rbp
mov qword [rsp + 0x58], rbx
mov rdx, r14
call fcn.14002f890
mov rcx, qword [0x140065f40]
mov r14d, eax
mov esi, ebx
test rcx, rcx
je 0x14002abc7
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], bl
jne 0x14002ab04
test rdx, rdx
je 0x14002abc7
lea rdx, [0x14005e594]
call fcn.14002b010
mov rdi, rax
test rax, rax
je 0x14002abc2
mov r11, qword [rax + 8]
mov r10d, ebx
test r11, r11
je 0x14002aba2
mov r9, qword [rax]
nop dword [rax]
mov rax, qword [r9]
test rax, rax
je 0x14002ab67
mov r8, rbp
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14002ab63
inc rax
test ecx, ecx
jne 0x14002ab50
test edx, edx
je 0x14002ab78
inc r10d
add r9, 8
movsxd rax, r10d
cmp rax, r11
jb 0x14002ab40
jmp 0x14002ab7d
mov esi, 1
test r11, r11
je 0x14002aba2
mov rcx, qword [rdi]
mov rcx, qword [rcx + rbx*8]
call fcn.140038520
mov rax, qword [rdi]
mov qword [rax + rbx*8], 0
inc rbx
cmp rbx, qword [rdi + 8]
jb 0x14002ab82
mov rcx, qword [rdi]
call fcn.140038520
xor ebx, ebx
mov rcx, rdi
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov dword [rdi + 0x18], ebx
call fcn.140038520
mov rdi, qword [rsp + 0x60]
lea eax, [rsi + r14]
test eax, eax
je 0x14002abe9
mov r14, qword [rsp + 0x40]
inc r12d
inc r15
movsxd rax, r12d
cmp rax, qword [r13 + 8]
jb 0x14002aa20
jmp 0x14002ac2e
mov ecx, SafeArrayCopy
call fcn.140038534
mov rbx, rax
test rax, rax
je 0x14002ac2e
mov rdx, qword [r13]
lea rcx, [rsp + 0x1080]
mov r8, qword [rdx + r15*8]
mov qword [rax + 0x10], r8
call fcn.140038618
mov rcx, rbp
mov qword [rbx + 8], rax
call fcn.140038618
mov qword [rbx], rax
mov rdx, rbx
mov rcx, qword [rdi]
call section..text
mov esi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x40]
inc esi
add rbx, 4
movsxd rax, esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x48], rbx
cmp rax, rbp
jb 0x14002a980
mov r15, qword [rsp + 0x11a0]
mov r12, qword [rsp + 0x11e8]
mov rcx, r14
call fcn.140038520
mov r14, qword [rsp + 0x11a8]
xor eax, eax
mov rsi, qword [rsp + 0x11e0]
mov rbp, qword [rsp + 0x11d0]
jmp 0x14002aca0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1190]
xor rcx, rsp
call fcn.140036180
add rsp, 0x11b0
pop r13
pop rdi
pop rbx
ret