Function at 0x140042520
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x140129200]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov r12, rdx
mov qword [rbp - 0x68], rdx
xor r14d, r14d
mov r13d, r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
lea ecx, [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
je 0x1400428ca
mov dword [rbp - 0x60], 0x438
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400425c0
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x70]
call fcn.140040840
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov rsi, r14
mov qword [rsp + 0x38], r14
mov r15d, 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x28], r14w
or r13d, 1
mov dword [rsp + 0x20], r13d
mov rdi, qword [rbp - 0x80]
cmp rdi, 8
jb 0x140042625
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140045670
mov qword [rsp + 0x38], r14
mov r15, qword [rsp + 0x40]
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
seta cl
mov rdx, qword [rsp + 0x70]
mov qword [rbp - 0x70], rdx
cmova rbx, rdx
lea rax, [rsp + 0x70]
test cl, cl
cmovne rax, rdx
lea rdi, [rax + rdi*2]
cmp rbx, rdi
je 0x1400426ad
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmp rsi, r15
jae 0x140042685
lea rcx, [rsi + 1]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x28]
cmp r15, 7
cmova rcx, qword [rsp + 0x28]
mov word [rcx + rsi*2], ax
mov word [rcx + rsi*2 + 2], r14w
jmp 0x14004269a
movzx r9d, ax
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x28]
call fcn.1400457f0
add rbx, 2
mov r15, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
cmp rbx, rdi
jne 0x140042653
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov rbx, r14
mov qword [rsp + 0x58], rbx
mov r14d, 7
mov qword [rsp + 0x60], r14
xor edi, edi
mov word [rsp + 0x48], di
or r13d, 2
mov dword [rsp + 0x20], r13d
mov rdx, qword [r12 + 0x10]
mov rcx, rdx
cmp rdx, r14
jbe 0x140042700
lea rcx, [rsp + 0x48]
call fcn.140045670
mov ebx, edi
mov qword [rsp + 0x58], rbx
mov rcx, qword [r12 + 0x10]
mov r14, qword [rsp + 0x60]
mov rax, r12
cmp qword [r12 + 0x18], 7
jbe 0x140042714
mov rax, qword [r12]
mov rdx, rax
jmp 0x140042717
mov rdx, r12
mov rdi, rax
lea r12, [rdx + rcx*2]
cmp rax, r12
je 0x140042785
xor r15d, r15d
movzx ecx, word [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmp rbx, r14
jae 0x140042758
lea rcx, [rbx + 1]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x48]
cmp r14, 7
cmova rcx, qword [rsp + 0x48]
mov word [rcx + rbx*2], ax
mov word [rcx + rbx*2 + 2], r15w
jmp 0x14004276d
movzx r9d, ax
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x48]
call fcn.1400457f0
add rdi, 2
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
cmp rdi, r12
jne 0x140042726
mov r15, qword [rsp + 0x40]
lea rcx, [rsp + 0x28]
mov rdi, qword [rsp + 0x28]
cmp r15, 7
cmova rcx, rdi
lea rdx, [rsp + 0x48]
mov r8, qword [rsp + 0x48]
cmp r14, 7
cmova rdx, r8
cmp rbx, rsi
jne 0x1400427cd
test rbx, rbx
je 0x1400427c9
sub rdx, rcx
movzx eax, word [rcx + rdx]
cmp ax, word [rcx]
jne 0x1400427cd
add rcx, 2
sub rbx, 1
jne 0x1400427b6
mov bl, 1
jmp 0x1400427cf
xor bl, bl
and r13d, 0xfffffffd
cmp r14, 7
jbe 0x14004280e
lea rdx, [r14*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x140042806
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400428ac
mov rcx, r8
call fcn.1400d8070
and r13d, 0xfffffffe
cmp r15, 7
jbe 0x14004284a
lea rdx, [r15*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140042841
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400428b3
mov rcx, rdi
call fcn.1400d8070
nop
mov rax, qword [rbp - 0x78]
cmp rax, 7
jbe 0x140042886
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042881
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400428ba
call fcn.1400d8070
test bl, bl
jne 0x1400428ce
lea rdx, [rbp - 0x60]
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
je 0x1400428c1
mov r12, qword [rbp - 0x68]
xor r14d, r14d
jmp 0x1400425a0
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
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400428dd
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.1400d7f80
mov rbx, qword [rsp + 0x540]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret