Function at 0x140016c70
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x2c8
mov rax, qword [0x14008d010]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0xa0]
lea rcx, [0x14002fbd8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x14
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xb4]
mov rdi, rax
xor eax, eax
mov ecx, 0x1f6
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
cmp word [rax + rcx*2], 0
jne 0x140016ce7
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x70], rax
mov eax, 2
mov rcx, qword [rsp + 0x70]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400207f8
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0
cmp qword [rsp + 0x28], 0
jne 0x140016d5c
mov eax, dword [rsp + 0x20]
jmp 0x140016fbb
mov rax, qword [rsp + 0x48]
inc rax
mov r8, qword [rsp + 0x2e8]
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8d, dword [rsp + 0x2e0]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140016f77
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x140016f77
cmp dword [rsp + 0x2f0], 1
jne 0x140016e28
lea r9, [rsp + 0x98]
mov r8d, 8
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140016dfe
mov r9d, 0x105
lea r8, [rsp + 0xa0]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
jmp 0x140016e23
mov r8d, 0x105
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jbe 0x140016e23
mov dword [rsp + 0x38], 1
jmp 0x140016eaf
mov r9d, 0x105
lea r8, [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jbe 0x140016e65
mov r8d, 0x105
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x140016eaf
mov r8d, 0x105
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jbe 0x140016eaf
mov rax, qword [rsp + 0x2e8]
add rax, 4
mov rcx, qword [rsp + 0x48]
inc rcx
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov dword [rsp + 0x38], 1
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x2e8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140016ed6
mov dword [rsp + 0x20], 1
jmp 0x140016f6c
cmp dword [rsp + 0x38], 0
je 0x140016f6c
lea rcx, [rsp + 0xa0]
call fcn.14001c3c0
mov rax, qword [rsp + 0x48]
inc rax
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xa0]
call fcn.140015a50
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140016f6c
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
cmp word [rax + rcx*2], 0
jne 0x140016f39
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140016f6c
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140020528
cmp qword [rsp + 0x60], 0
jne 0x140016fa1
mov qword [rsp + 0x88], 0
jmp 0x140016fb7
mov qword [rsp + 0x28], 0x8123
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140020090
add rsp, 0x2c8
pop rdi
pop rsi
ret