Function at 0x140006140
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4da0]
mov eax, 0x4ea0
call fcn.140032a60
sub rsp, rax
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rbp + 0x4d90], rax
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x3e80
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x38]
mov r8d, 0x3e80
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x14000653b
mov eax, dword [rsp + 0x38]
xor r15d, r15d
mov qword [rsp + 0x50], r15
test rax, 0xfffffffffffffff8
jbe 0x14000649e
lea r13, [0x140062178]
nop
xor edx, edx
lea rcx, [rbp + 0x3df0]
mov r8d, 0xfa0
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + r15*8 + 0x70]
lea rdx, [rbp + 0x3df0]
mov r8d, 0x7cf
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rbp + 0x3df0]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140006220
mov r12, qword [rsp + r15*8 + 0x70]
add bx, bx
mov qword [rsp + 0x58], r12
test r12, r12
je 0x140006485
test bx, bx
je 0x140006485
xorps xmm0, xmm0
lea esi, [rbx + 2]
movups xmmword [rsp + 0x40], xmm0
movzx r14d, si
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r14d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x1400062a3
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
movzx r8d, bx
lea rdx, [rbp + 0x3df0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + 0x40], bx
mov word [rsp + 0x42], si
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], ecx
test rdi, rdi
je 0x14000647c
lea rdx, [rsp + 0x40]
lea rcx, [0x1400611d0]
call fcn.1400079a0
mov r15, qword [rsp + 0x48]
mov r14, rax
mov qword [rsp + 0x60], rax
test r15, r15
je 0x1400064ca
movzx ebx, word [rsp + 0x40]
movzx edi, word [rsp + 0x42]
movzx esi, byte [rsp + 0x40]
test bx, bx
je 0x1400064ca
cmp bx, di
ja 0x140006318
test sil, 1
jne 0x140006318
mov edx, ebx
lea r8, [0x1400611d8]
shr rdx, 1
mov rcx, r15
call fcn.140004590
test eax, eax
jne 0x140006359
test bx, bx
je 0x1400064ca
cmp bx, di
ja 0x1400063a1
test sil, 1
jne 0x1400063a1
mov rax, 0xffffffffffffffff
inc rax
cmp word [r13 + rax*2], 0
jne 0x140006333
test rax, rax
je 0x1400063a1
mov rdx, rbx
mov r8, r13
shr rdx, 1
mov rcx, r15
call fcn.140004590
test eax, eax
je 0x1400063a1
test r14, r14
je 0x140006368
cmp byte [r14], 0
je 0x14000644a
mov rcx, r15
call fcn.14000bc70
test eax, eax
jne 0x14000644a
test r14, r14
je 0x140006383
mov rdx, qword [r14 + 0x10]
jmp 0x140006385
xor edx, edx
xor r9d, r9d
lea r8, [rsp + 0x34]
test rdx, rdx
mov rcx, r15
sete r9b
call fcn.14000a1c0
jmp 0x140006504
test bx, bx
je 0x1400064ca
cmp bx, di
ja 0x1400064ca
test sil, 1
jne 0x1400064ca
mov rax, qword [0x140063118]
mov r13, rbx
shr r13, 1
xor r12d, r12d
test rax, rax
je 0x1400064c5
nop word [rax + rax]
mov rbx, qword [0x140063120]
mov rbx, qword [rbx + r12*8]
test r13, r13
je 0x1400064b4
test rbx, rbx
je 0x1400064b4
mov rsi, 0xffffffffffffffff
inc rsi
cmp word [rbx + rsi*2], 0
jne 0x140006404
cmp rsi, r13
ja 0x1400064b4
xor r14d, r14d
test rsi, rsi
je 0x14000644a
sub r15, rbx
movzx ecx, word [r15 + rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
movzx ecx, word [rbx]
movzx edi, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
cmp di, ax
jne 0x1400064a8
inc r14
add rbx, 2
cmp r14, rsi
jb 0x140006422
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140006470
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [rsp + 0x30]
mov r15, qword [rsp + 0x50]
lea r13, [0x140062178]
cmp ecx, 1
je 0x14000653b
mov eax, dword [rsp + 0x38]
inc r15
shr rax, 3
mov qword [rsp + 0x50], r15
cmp r15, rax
jb 0x1400061e0
mov eax, 1
jmp 0x14000653d
mov rax, qword [0x140063118]
mov r15, qword [rsp + 0x48]
inc r12
cmp r12, rax
jb 0x1400063e0
mov r14, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
test r14, r14
je 0x1400064dd
cmp byte [r14 + 1], 0
je 0x1400064dd
mov eax, 0xbaadfeee
jmp 0x140006510
cmp dword [0x1400611d4], 0
je 0x14000644a
cmp dword [0x140063230], 0
je 0x14000644a
lea rdx, [rsp + 0x34]
mov rcx, r15
call fcn.14000a410
test eax, eax
jne 0x14000644a
mov eax, dword [rsp + 0x34]
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8, r12
lea rdx, [rsp + 0x40]
lea rcx, [0x1400611d0]
call fcn.140006bc0
xor ecx, ecx
test eax, eax
sete cl
mov dword [rsp + 0x30], ecx
jmp 0x14000644e
xor eax, eax
mov rcx, qword [rbp + 0x4d90]
xor rcx, rsp
call fcn.1400325f0
lea r11, [rsp + 0x4ea0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret