Function at 0x1400028f0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x21d8
call fcn.1400084d0
sub rsp, rax
mov rax, qword [0x14000f340]
xor rax, rsp
mov qword [rsp + 0x21c0], rax
lea rax, [rsp + 0x21e8]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x20a0], 0xb8
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20a1], al
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20a2], al
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20a3], al
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x48]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20a4], al
mov byte [rsp + 0x20a5], 0xff
mov byte [rsp + 0x20a6], 0xe0
mov r8d, 1
xor edx, edx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140002a13
lea rdx, str.e_31m
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001320
lea rdx, str.Error:_could_not_load_the_jmpMod_to_ntdll.dll
mov rcx, rax
call fcn.140001320
lea rdx, [0x14000a608]
mov rcx, rax
call fcn.140001320
mov qword [rsp + 0x60], rax
lea rdx, [0x140002090]
mov rcx, qword [rsp + 0x60]
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 eax, eax
jmp 0x140002ca6
lea rdx, str.RtlpWow64CtxFromAmd64
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x38], 0
lea r9, [rsp + 0x88]
mov r8d, 0x2000
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x21e0]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140002b22
mov dword [rsp + 0x30], 0
jmp 0x140002a82
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov ecx, dword [rsp + 0x88]
xor edx, edx
mov eax, ecx
mov ecx, 8
div rcx
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
jae 0x140002b22
movsxd rax, dword [rsp + 0x30]
mov r9d, 0x104
lea r8, [rsp + 0x20b0]
mov rdx, qword [rsp + rax*8 + 0xa0]
mov rcx, qword [rsp + 0x21e0]
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x140002b1d
lea rcx, [rsp + 0x20b0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
lea rcx, str.ntdll.dll
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140002b00
inc rax
test dl, dl
jne 0x140002aed
xor eax, eax
jmp 0x140002b05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140002b1d
movsxd rax, dword [rsp + 0x30]
mov rax, qword [rsp + rax*8 + 0xa0]
mov qword [rsp + 0x38], rax
jmp 0x140002b22
jmp 0x140002a78
cmp qword [rsp + 0x38], 0
jne 0x140002b79
lea rdx, str.e_31m
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001320
lea rdx, str.Error:_could_not_find_the_function_in_ntdll
mov rcx, rax
call fcn.140001320
lea rdx, [0x14000a608]
mov rcx, rax
call fcn.140001320
mov qword [rsp + 0x70], rax
lea rdx, [0x140002090]
mov rcx, qword [rsp + 0x70]
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 eax, eax
jmp 0x140002ca6
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rax
je 0x140002c0a
lea rdx, str.e_31m
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001320
lea rdx, str.Error:_the_function_is_not_at_the_expected_address
mov rcx, rax
call fcn.140001320
lea rdx, [0x14000a608]
mov rcx, rax
call fcn.140001320
mov qword [rsp + 0x78], rax
lea rdx, [0x140002090]
mov rcx, qword [rsp + 0x78]
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 [rsp + 0x40]
lea rcx, str.proc_address_RtlpWow64CtxFromAmd64_VA_:__d_n
call fcn.140004d00
mov rdx, qword [rsp + 0x38]
lea rcx, str.ptr_RtlpWow64CtxFromAmd64_in_ntdll____:__d_n
call fcn.140004d00
xor eax, eax
jmp 0x140002ca6
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, [rsp + 0x20a0]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x21e0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp qword [rsp + 0x90], 7
je 0x140002ca1
lea rdx, str.e_31m
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001320
lea rdx, str.Error:_could_not_write_the_jump_to_the_shellcode
mov rcx, rax
call fcn.140001320
lea rdx, [0x14000a608]
mov rcx, rax
call fcn.140001320
mov qword [rsp + 0x80], rax
lea rdx, [0x140002090]
mov rcx, qword [rsp + 0x80]
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 eax, eax
jmp 0x140002ca6
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x21c0]
xor rcx, rsp
call fcn.140008530
add rsp, 0x21d8
ret