Function at 0x18005c880
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rdi, rdx
call fcn.18005c270
mov r8, qword [rdi + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18005c8b2
mov rcx, qword [rdi]
xor ebp, ebp
cmp r8, 2
jne 0x18005ca53
lea rdx, [0x1800b4780]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18005ca53
cmp byte [0x1802d1f86], bpl
je 0x18005c8e7
mov byte [0x1802d1f86], bpl
jmp 0x18005ca53
mov ecx, 0x12c
cmp byte [0x1802d1f87], bpl
je 0x18005c9a1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [0x1802d1f87], bpl
call fcn.18005c7e0
mov esi, eax
mov dword [rsp + 0x30], 0x238
mov edx, eax
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x18005c968
nop word [rax + rax]
lea rdx, str.winx.dll
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rbx
test eax, eax
je 0x18005c994
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x18005c940
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rbp
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [rsp + 0x2a8], 0x100
jmp 0x18005ca2f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x48]
jmp 0x18005c974
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [0x1802d1f87], 1
call fcn.18005c7e0
mov esi, eax
mov dword [rsp + 0x30], 0x238
mov edx, eax
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x18005ca0c
nop
lea rdx, str.winx.dll
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rbx
test eax, eax
je 0x18005cba0
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x18005c9e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rbp
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [rsp + 0x2a8], ebp
mov qword [rsp + 0x20], rbp
mov r9d, 4
lea r8, [rsp + 0x2a8]
lea rdx, [rbx + 0xeb60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x18005ca8d
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18005ca88
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18005cbb1
mov rcx, r8
call fcn.18009707c
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rbx, qword [rsp + 0x2b0]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x18005cade
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x18005cad9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18005cbb8
mov rcx, r8
call fcn.18009707c
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rbx, qword [rsp + 0x2b8]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x18005cb2f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x18005cb2a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18005cbbf
mov rcx, r8
call fcn.18009707c
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rbx, qword [rsp + 0x2c0]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x18005cb7c
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18005cb77
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18005cbc6
mov rcx, r8
call fcn.18009707c
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov al, 1
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rbx, qword [rsp + 0x48]
jmp 0x18005ca18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3