Function at 0x1400119b0
Capabilities:
Enumerate process modules
Get graphical window text
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x440]
sub rsp, 0x540
movaps xmmword [rsp + 0x530], xmm6
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov qword [rsp + 0x60], r9
mov rdi, rdx
mov qword [rsp + 0x38], rdx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov r8d, 0x100
lea rdx, [rbp + 0x220]
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x220]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
jne 0x140011a79
movups xmm0, xmmword [str._9rT____]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [0x140035fe8]
movups xmmword [rbp - 0x48], xmm1
movsd xmm0, qword [0x140035ff8]
movsd qword [rbp - 0x38], xmm0
mov eax, dword [0x140036000]
mov dword [rbp - 0x30], eax
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.140029300
xor al, al
jmp 0x14001238d
movsd xmm0, qword [str._unknown_]
movsd qword [rbp + 0x110], xmm0
movzx eax, word [0x140033930]
mov word [rbp + 0x118], ax
xor edx, edx
mov r8d, 0xfa
lea rcx, [rbp + 0x11a]
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x18]
mov r8d, 8
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140011ae2
mov r9d, 0x104
lea r8, [rbp + 0x110]
mov rdx, qword [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r14
lea rax, [rbp + 0x110]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], r14b
jne 0x140011b00
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x58]
call fcn.1400040c0
nop
mov r8d, 4
lea rdx, str..dmp
lea rcx, [rbp - 0x58]
call fcn.140027300
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 8], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r13d, 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140011ba1
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011b9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011b9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova rdx, qword [rbp - 8]
lea r8, [0x14003393c]
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
jne 0x140012339
cmp qword [rsp + 0x68], 0
je 0x140012339
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x18], r14
movabs rcx, 0x100000027
call fcn.14002dd78
test rax, rax
je 0x140012332
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rbp - 0x28], rcx
movabs rbx, 0x100000000
add rbx, rcx
mov qword [rbp - 0x18], rbx
xor edx, edx
movabs r8, 0x100000000
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x20], rbx
cmp qword [rbp - 0x28], 0
jne 0x140011c6e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140011c56
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14000f790
xor bl, bl
jmp 0x140012298
mov rsi, r14
mov rbx, r14
mov r9d, gethostbyname
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
jne 0x140011ccd
mov rcx, qword [rbp - 0x70]
cmp dword [rbp - 0x68], 0x1000
jne 0x140011cad
mov eax, dword [rbp - 0x64]
test al, 1
jne 0x140011cad
bt eax, 8
jb 0x140011cad
add rsi, rcx
add rbx, rcx
mov r9d, gethostbyname
lea r8, [rsp + 0x78]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
je 0x140011c90
xor ebx, ebx
mov r12d, ebx
mov r14d, ebx
lea r9d, [rbx + 0x30]
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
jne 0x140012270
lea rdi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
movsd xmm6, qword [0x140036030]
cmp dword [rbp - 0x68], 0x1000
jne 0x140012246
mov eax, dword [rbp - 0x64]
test al, 1
jne 0x140012246
bt eax, 8
jb 0x140012246
mov r9, qword [rbp - 0x70]
movabs rax, 0x100000000
cmp r9, rax
cmova r9, rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r8, qword [rbp - 0x28]
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14001203f
mov r9, qword [rsp + 0x68]
mov r8, qword [rbp - 0x10]
mov edx, 1
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp - 0x10]
cmp rax, rcx
jne 0x1400122e9
add r14, rcx
xorps xmm0, xmm0
js 0x140011d8e
cvtsi2sd xmm0, r14
jmp 0x140011da6
mov rcx, r14
shr rcx, 1
mov rax, r14
and eax, 1
or rcx, rax
cvtsi2sd xmm0, rcx
addsd xmm0, xmm0
xorps xmm1, xmm1
test rsi, rsi
js 0x140011db5
cvtsi2sd xmm1, rsi
jmp 0x140011dcd
mov rcx, rsi
shr rcx, 1
mov rax, rsi
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
divsd xmm0, xmm1
mulsd xmm0, xmm6
cvttsd2si ebx, xmm0
movsxd r8, ebx
xor r9d, r9d
mov edx, 0x402
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140035970]
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r13d, 8
mov dword [rsp + 0x30], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], rdi
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x88]
mov dword [rbp + rcx + 0x1c], r8d
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x28], rax
xor edi, edi
mov qword [rbp + 0x90], rdi
mov dword [rbp + 0x98], 4
lea rdx, str.Memory_Dump_In_Progress...__
lea rcx, [rbp + 0x20]
call fcn.1400287b0
mov edx, ebx
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, [0x140033940]
call fcn.1400287b0
lea rdx, str.__Bytes_Read_:
lea rcx, [rbp + 0x20]
call fcn.1400287b0
mov rdx, r14
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_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, str.__Memory_Size:
call fcn.1400287b0
mov rdx, rsi
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_long_unsigned___int64_____ptr64]
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x28]
call fcn.140027f70
or r13d, 0x10
lea r8, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova r8, qword [rbp - 0x58]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov rdi, 0xffffffffffffffff
mov r9d, edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rdi
mov rcx, rax
call fcn.14002e0cc
mov rdi, rax
lea r8, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova r8, qword [rbp - 0x58]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov rbx, 0xffffffffffffffff
mov r9d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor r9d, r9d
mov r8, rbx
mov edx, 0xbb
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, 0xffffffffffffffff
mov r8, rax
mov edx, 0xb1
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [0x140033518]
xor r8d, r8d
mov edx, 0xc2
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, rdi
xor r8d, r8d
mov edx, 0xc2
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rdi
call fcn.14002dd70
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140012003
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011ffe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400122e2
call fcn.14002dd70
xor ebx, ebx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], bl
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rdi
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x1c], edx
jmp 0x140012226
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140035970]
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r13d, 2
mov dword [rsp + 0x30], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], rdi
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x90], rbx
mov dword [rbp + 0x98], 4
lea rdx, str.ReadProcessMemory_failed_at_address
lea rcx, [rbp + 0x20]
call fcn.1400287b0
mov rdx, r12
mov rcx, rax
call fcn.1400287b0
lea rdx, str._with_error_code:
mov rcx, rax
call fcn.1400287b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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, [rsp + 0x40]
lea rcx, [rbp + 0x28]
call fcn.140027f70
or r13d, 4
lea rcx, [rsp + 0x40]
mov r9, qword [rsp + 0x50]
cmp qword [rsp + 0x58], 0xf
jbe 0x140012138
mov rdx, qword [rsp + 0x40]
add r9, rdx
jmp 0x140012140
add r9, rcx
lea rdx, [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xor ebx, ebx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
cmp rdx, r9
jne 0x140012165
mov eax, 7
mov qword [rbp - 0x40], rax
mov word [rbp - 0x58], bx
jmp 0x140012175
sub r9, rdx
lea rcx, [rbp - 0x58]
call fcn.14002b730
mov rax, qword [rbp - 0x40]
lea rcx, [rbp - 0x58]
cmp rax, 7
cmova rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x1400121c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400121c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012324
call fcn.14002dd70
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140012207
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012201
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001232b
call fcn.14002dd70
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], rdi
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x28]
call fcn.140026dc0
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xa8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
add r12, qword [rbp - 0x70]
mov r9d, gethostbyname
lea r8, [rsp + 0x78]
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
je 0x140011d02
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140012285
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsp + 0x68], rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14000fa20
mov bl, 1
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14001234c
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400122cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012332
call fcn.14002dd70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
xor edi, edi
mov qword [rbp - 0x18], rdi
jmp 0x14001234c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400122fc
call fcn.14002dd70
test rbx, rbx
je 0x14001230a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
call fcn.14000f790
xor bl, bl
jmp 0x140012298
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, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14000f790
xor bl, bl
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x14001238a
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012385
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012385
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
movzx eax, bl
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.14002dd50
mov rbx, qword [rsp + 0x590]
movaps xmm6, xmmword [rsp + 0x530]
add rsp, 0x540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret