Function at 0x1400208f0
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 [0x14006a040]
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 0x1400209b9
movups xmm0, xmmword [str._XSWYY]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [0x14005c5d8]
movups xmmword [rbp - 0x48], xmm1
movsd xmm0, qword [0x14005c5e8]
movsd qword [rbp - 0x38], xmm0
mov eax, dword [0x14005c5f0]
mov dword [rbp - 0x30], eax
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.140045220
xor al, al
jmp 0x1400212e9
movsd xmm0, qword [0x140058c40]
movsd qword [rbp + 0x110], xmm0
movzx eax, word [0x140058c48]
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 0x140020a22
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 0x140020a40
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x58]
call fcn.140004c00
nop
mov r8d, 4
lea rdx, str..dmp
lea rcx, [rbp - 0x58]
call fcn.140041d80
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 0x140020ae1
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020adc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020adc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
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, [0x140058c54]
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
jne 0x140021295
cmp qword [rsp + 0x68], 0
je 0x140021295
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x18], r14
movabs rcx, 0x100000027
call fcn.14004de58
test rax, rax
je 0x14002128e
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 0x140020bae
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140020b96
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.140018590
xor bl, bl
jmp 0x1400211f4
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 0x140020c0d
mov rcx, qword [rbp - 0x70]
cmp dword [rbp - 0x68], 0x1000
jne 0x140020bed
mov eax, dword [rbp - 0x64]
test al, 1
jne 0x140020bed
bt eax, 8
jb 0x140020bed
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 0x140020bd0
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 0x1400211cc
lea rdi, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
movsd xmm6, qword [0x14005ce30]
cmp dword [rbp - 0x68], 0x1000
jne 0x1400211a2
mov eax, dword [rbp - 0x64]
test al, 1
jne 0x1400211a2
bt eax, 8
jb 0x1400211a2
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 0x140020f86
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 0x140021245
add r14, rcx
xorps xmm0, xmm0
js 0x140020cce
cvtsi2sd xmm0, r14
jmp 0x140020ce6
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 0x140020cf5
cvtsi2sd xmm1, rsi
jmp 0x140020d0d
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, [0x14005bc60]
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]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rax
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]
mov qword [rbp + 0x28], rdi
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.140044180
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, [0x140058c58]
call fcn.140044180
lea rdx, str.__Bytes_Read_:
lea rcx, [rbp + 0x20]
call fcn.140044180
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.140044180
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.1400431f0
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.14004e1ac
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, [0x1400559ac]
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.14004de50
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140020f43
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020f3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002123e
call fcn.14004de50
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 rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x1c], edx
lea rdi, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
jmp 0x140021174
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x14005bc60]
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]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rax
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]
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x90], rbx
mov dword [rbp + 0x98], 4
lea rdx, str.ReadProcessMemory_failed_at_address
lea rcx, [rbp + 0x20]
call fcn.140044180
mov rdx, r12
mov rcx, rax
call fcn.140044180
lea rdx, str._with_error_code:
mov rcx, rax
call fcn.140044180
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.1400431f0
or r13d, 4
lea rcx, [rsp + 0x40]
mov r9, qword [rsp + 0x50]
cmp qword [rsp + 0x58], 0xf
jbe 0x14002107f
mov rdx, qword [rsp + 0x40]
add r9, rdx
jmp 0x140021087
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 0x1400210ac
mov eax, 7
mov qword [rbp - 0x40], rax
mov word [rbp - 0x58], bx
jmp 0x1400210bc
sub r9, rdx
lea rcx, [rbp - 0x58]
call fcn.140049fa0
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 0x140021110
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002110a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021280
call fcn.14004de50
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14002114e
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021148
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021287
call fcn.14004de50
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x1c], edx
mov qword [rbp + 0x28], rdi
lea rcx, [rbp + 0x28]
call fcn.140043140
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
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 0x140020c42
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400211e1
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.140018820
mov bl, 1
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400212a8
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021229
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002128e
call fcn.14004de50
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
xor edi, edi
mov qword [rbp - 0x18], rdi
jmp 0x1400212a8
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 0x140021258
call fcn.14004de50
test rbx, rbx
je 0x140021266
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.140018590
xor bl, bl
jmp 0x1400211f4
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.140018590
xor bl, bl
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x1400212e6
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400212e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400212e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004de50
movzx eax, bl
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.14004de30
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