Function at 0x140059480
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push rbp
push rbx
push rdi
push r13
lea rbp, [rsp - 0x9e8]
sub rsp, 0xae8
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140d48d38]
xor r13d, r13d
mov edi, r13d
call fcn.140004950
lea rdx, [0x140004d20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor edx, edx
lea rcx, [rbp - 0x4c]
mov r8d, 0x12c
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400595ec
nop dword [rax]
lea rdx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14005956e
nop dword [rax + rax]
lea rdx, [0x140d48d80]
lea rcx, [rbp - 0x24]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140059740
lea rdx, [0x140d48d98]
lea rcx, [rbp - 0x24]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14005967a
lea rdx, [0x140d48db0]
lea rcx, [rbp - 0x24]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400595fe
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140059510
jmp 0x140059577
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140d48f18]
inc edi
call fcn.140004950
mov edx, edi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140d47394]
call fcn.140004950
lea rdx, [0x140004d20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400594f0
mov eax, 0xffffffff
add rsp, 0xae8
pop r13
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140d48ec8]
call fcn.140004950
mov edx, dword [rbp - 0x48]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004d20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, dword [rbp - 0x48]
lea rcx, [0x140d48ee8]
mov dword [0x145d1e388], eax
mov dword [0x145d1e384], 2
call fcn.140059210
mov ecx, eax
mov dword [0x145d1e38c], eax
call fcn.140059170
lea r9, [0x140d48ef8]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExA]
lea r9, [0x140d48f08]
jmp 0x14005971b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140d48e50]
call fcn.140004950
mov edx, dword [rbp - 0x48]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004d20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, dword [rbp - 0x48]
lea rcx, [0x140d48e70]
mov dword [0x145d1e388], eax
mov dword [0x145d1e384], 1
call fcn.140059210
mov ecx, eax
mov dword [0x145d1e38c], eax
call fcn.140059170
lea r9, [0x140d48e80]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExA]
lea r9, [0x140d48e98]
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea r9, [0x140d48eb0]
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea r9, [0x140d48ec4]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExA]
mov qword [0x145d1e390], rax
mov eax, dword [rbp - 0x48]
add rsp, 0xae8
pop r13
pop rdi
pop rbx
pop rbp
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140d48dd0]
mov qword [rsp + 0xb20], r12
mov qword [rsp + 0xae0], r15
call fcn.140004950
mov edx, dword [rbp - 0x48]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004d20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, dword [rbp - 0x48]
lea rcx, [0x140d48dc8]
mov dword [0x145d1e388], eax
mov dword [0x145d1e384], r13d
call fcn.1400593a0
xor r9d, r9d
lea r8, [0x140d48df0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea r9, [0x140d48e08]
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea rcx, [0x140d48e18]
mov qword [0x145d1e390], rax
call fcn.1400593a0
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
movsd xmm0, qword [0x140d48e28]
mov edx, r15d
mov qword [0x145d1e398], rax
mov ecx, 0x18
mov eax, dword [0x140d48e30]
mov rdi, r13
mov dword [rsp + 0x38], eax
movzx eax, byte [0x140d48e34]
mov byte [rsp + 0x3c], al
mov word [rsp + 0x3e], r13w
mov qword [rsp + 0x40], send
mov qword [rsp + 0x48], send
movsd qword [rsp + 0x30], xmm0
mov byte [rsp + 0x3d], r13b
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400598b8
lea rdx, [rbp + 0xe0]
mov dword [rbp + 0xe0], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x1400598af
nop dword [rax]
cmp qword [rsp + 0x48], 0xf
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x110]
cmova rdx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400598a8
lea rdx, [rbp + 0xe0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140059870
jmp 0x1400598af
mov rdi, qword [rbp + 0xf8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x48]
lea r12, [rdi + 0x5e8d5]
cmp rdx, 0xf
jbe 0x1400598ff
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400598fa
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400598fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093434
mov eax, dword [0x140d48e30]
mov edx, r15d
movsd xmm0, qword [0x140d48e28]
mov ecx, 0x18
mov dword [rsp + 0x58], eax
mov rdi, r13
movzx eax, byte [0x140d48e34]
mov byte [rsp + 0x5c], al
mov qword [rsp + 0xb28], r14
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], send
mov byte [rsp + 0x30], r13b
mov word [rsp + 0x5e], r13w
mov qword [rsp + 0x60], send
mov qword [rsp + 0x68], send
movsd qword [rsp + 0x50], xmm0
mov byte [rsp + 0x5d], r13b
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400599da
lea rdx, [rbp + 0x320]
mov dword [rbp + 0x320], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x1400599d1
cmp qword [rsp + 0x68], 0xf
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x350]
cmova rdx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400599ca
lea rdx, [rbp + 0x320]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140059992
jmp 0x1400599d1
mov rdi, qword [rbp + 0x338]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x68]
lea r14, [rdi + 0x5ec25]
cmp rdx, 0xf
jbe 0x140059a21
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059a1c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059a1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093434
mov eax, dword [0x140d48e30]
mov edx, r15d
movsd xmm0, qword [0x140d48e28]
mov ecx, 0x18
mov dword [rsp + 0x78], eax
mov rdi, r13
movzx eax, byte [0x140d48e34]
mov byte [rsp + 0x7c], al
mov qword [rsp + 0xb18], rsi
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], send
mov byte [rsp + 0x50], r13b
mov word [rsp + 0x7e], r13w
mov qword [rbp - 0x80], send
mov qword [rbp - 0x78], send
movsd qword [rsp + 0x70], xmm0
mov byte [rsp + 0x7d], r13b
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140059af9
lea rdx, [rbp + 0x560]
mov dword [rbp + 0x560], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x140059af0
cmp qword [rbp - 0x78], 0xf
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x590]
cmova rdx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140059ae9
lea rdx, [rbp + 0x560]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140059ab2
jmp 0x140059af0
mov rdi, qword [rbp + 0x578]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x78]
lea rsi, [rdi + 0x5d905]
cmp rdx, 0xf
jbe 0x140059b3f
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059b3a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059b3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093434
mov eax, dword [0x140d48e30]
mov edx, r15d
movsd xmm0, qword [0x140d48e28]
mov ecx, 0x18
mov dword [rbp - 0x68], eax
mov rdi, r13
movzx eax, byte [0x140d48e34]
mov byte [rbp - 0x64], al
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], send
mov byte [rsp + 0x70], r13b
mov word [rbp - 0x62], r13w
mov qword [rbp - 0x60], send
mov qword [rbp - 0x58], send
movsd qword [rbp - 0x70], xmm0
mov byte [rbp - 0x63], r13b
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140059c15
lea rdx, [rbp + 0x7a0]
mov dword [rbp + 0x7a0], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x140059c0c
nop dword [rax]
nop word [rax + rax]
cmp qword [rbp - 0x58], 0xf
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x7d0]
cmova rdx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140059c05
lea rdx, [rbp + 0x7a0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140059bd0
jmp 0x140059c0c
mov rdi, qword [rbp + 0x7b8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140059c53
mov rcx, qword [rbp - 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059c4e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059c4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093434
mov rcx, qword [0x145d1e398]
lea r8, [rbp + 0xa10]
mov r9d, 8
mov qword [rbp - 0x60], r13
mov rdx, r12
mov qword [rbp - 0x58], send
mov byte [rbp - 0x70], r13b
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movabs rbx, 0xc4739c033487189
movabs r15, 0xc4739c033909090
cmp qword [rbp + 0xa10], rbx
jne 0x140059cee
mov rcx, qword [0x145d1e398]
lea r8, [rbp + 0xa10]
mov r9d, 8
mov qword [rbp + 0xa10], r15
mov rdx, r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140d48e38]
call fcn.140004950
lea rdx, [0x140004d20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x145d1e398]
lea r8, [rbp + 0xa10]
mov r9d, 8
mov qword [rsp + 0x20], r13
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp qword [rbp + 0xa10], rbx
jne 0x140059d65
mov rcx, qword [0x145d1e398]
lea r8, [rbp + 0xa10]
mov r9d, 8
mov qword [rbp + 0xa10], r15
mov rdx, r14
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140d48e38]
call fcn.140004950
lea rdx, [0x140004d20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x145d1e398]
lea r8, [rbp + 0xa10]
mov r9d, 8
mov qword [rsp + 0x20], r13
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp qword [rbp + 0xa10], rbx
jne 0x140059ddc
mov rcx, qword [0x145d1e398]
lea r8, [rbp + 0xa10]
mov r9d, 8
mov qword [rbp + 0xa10], r15
mov rdx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140d48e38]
call fcn.140004950
lea rdx, [0x140004d20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x145d1e398]
lea r8, [rbp + 0xa10]
mov r9d, 8
mov qword [rsp + 0x20], r13
lea rdx, [rdi + 0x5d8a5]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp qword [rbp + 0xa10], rbx
jne 0x140059e5b
mov rcx, qword [0x145d1e398]
lea r8, [rbp + 0xa10]
mov r9d, 8
mov qword [rbp + 0xa10], r15
lea rdx, [rdi + 0x5d8a5]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140d48e38]
call fcn.140004950
lea rdx, [0x140004d20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, dword [rbp - 0x48]
mov rsi, qword [rsp + 0xb18]
mov r14, qword [rsp + 0xb28]
mov r12, qword [rsp + 0xb20]
mov r15, qword [rsp + 0xae0]
add rsp, 0xae8
pop r13
pop rdi
pop rbx
pop rbp
ret