Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x6d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
xor r14d, r14d
mov dword [rsp + 0x480], 0x238
xor edx, edx
mov ecx, 2
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x480]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000110f
lea rsi, str.cs2.exe
nop word [rax + rax]
mov rcx, r14
lea rdx, [rsp + 0x4ac]
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [rsi + rcx*2 - 2]
jne 0x140001187
cmp rcx, 8
jne 0x1400010f0
mov edi, dword [rsp + 0x488]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400013a7
mov r8d, edi
mov dword [0x140005670], edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400013a7
mov edx, dword [0x140005670]
mov ecx, 0x18
mov rsi, r14
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400011a5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_snapshot.
call fcn.140001470
mov rcx, rax
lea rdx, [0x140001650]
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]
jmp 0x140001250
lea rdx, [rsp + 0x480]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400010e0
jmp 0x14000110f
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x6e0], rbp
mov rcx, rbx
mov dword [rsp + 0x30], 0x438
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000121c
lea rbp, str.client.dll
nop
lea rdx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rbp + rax*2 + 2]
jne 0x140001201
add rax, 2
cmp rax, 0xb
je 0x140001215
movzx ecx, word [rdx + rax*2]
cmp cx, word [rbp + rax*2]
je 0x1400011e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400011d0
jmp 0x14000123f
mov rsi, qword [rsp + 0x48]
jmp 0x14000123f
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_retrieve_module_information.
call fcn.140001470
mov rcx, rax
lea rdx, [0x140001650]
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, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x6e0]
mov rdx, rsi
mov qword [0x140005668], rsi
lea rcx, str.addy_____p
call fcn.140001010
mov rbx, qword [0x140005668]
lea rax, [rsp + 0x470]
add rbx, 0x72aa12
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov r9d, 0x40
mov r8d, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400012fd
mov r9d, 3
mov qword [rsp + 0x20], r14
lea r8, [0x1400033fc]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400012e8
mov r9d, dword [rsp + 0x470]
lea rax, [rsp + 0x470]
mov r8d, 3
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x140001333
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_write_memory.
call fcn.140001470
jmp 0x140001323
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_change_memory_protection.
mov ebx, eax
call fcn.140001470
mov rcx, rax
mov edx, ebx
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]
lea rdx, [0x140001650]
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 rdx, qword [0x140005668]
lea r8, [rsp + 0x470]
add rdx, 0x19c53c8
mov dword [rsp + 0x470], r14d
mov r9d, 4
mov qword [rsp + 0x20], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [0x140005668]
lea r8, [rsp + 0x470]
add rdx, 0x19d9760
mov dword [rsp + 0x470], 0x100
mov r9d, 4
mov qword [rsp + 0x20], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400013cf
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_process_handle.
call fcn.140001470
mov rcx, rax
lea rdx, [0x140001650]
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, 1
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.1400016a0
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret