Function at 0x180042900
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x2398
call fcn.1800c5560
sub rsp, rax
mov rax, qword [0x1804ccc80]
xor rax, rsp
mov qword [rsp + 0x2380], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x180042944
xor al, al
jmp 0x180042c69
mov dword [rsp + 0xf0], 0x130
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x180042977
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x180042c69
mov r8d, dword [rsp + 0xf8]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x180042c42
lea r9, [rsp + 0x220]
mov r8d, 0x2000
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x180042c36
mov dword [rsp + 0x34], 0
jmp 0x1800429d9
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x48], rax
mov ecx, dword [rsp + 0x220]
xor edx, edx
mov eax, ecx
mov ecx, 8
div rcx
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
jae 0x180042c36
mov eax, dword [rsp + 0x34]
mov r9d, 0x104
lea r8, [rsp + 0x2270]
mov rdx, qword [rsp + rax*8 + 0x270]
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x180042c31
lea rdx, [rsp + 0x2270]
lea rcx, [rsp + 0x248]
call fcn.180019960
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x248]
call fcn.18004d7e0
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x248]
call fcn.180053f10
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x248]
call fcn.18004d7e0
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xc8]
call fcn.180036de0
nop
mov rdx, qword [rsp + 0x23a0]
lea rcx, [rsp + 0x228]
call fcn.180038020
nop
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x228]
call fcn.18004d7e0
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x228]
call fcn.180053f10
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x228]
call fcn.18004d7e0
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0xe8]
call fcn.180036de0
nop
xor r8d, r8d
lea rdx, [rsp + 0x228]
lea rcx, [rsp + 0x248]
call fcn.180054e30
cmp rax, 0xffffffffffffffff
je 0x180042c16
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x228]
call fcn.180019cf0
lea rcx, [rsp + 0x248]
call fcn.180019cf0
movzx eax, byte [rsp + 0x30]
jmp 0x180042c69
lea rcx, [rsp + 0x228]
call fcn.180019cf0
lea rcx, [rsp + 0x248]
call fcn.180019cf0
nop
jmp 0x1800429cf
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x180042977
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x2380]
xor rcx, rsp
call fcn.1800c5020
add rsp, 0x2398
ret