Function at 0x1400042d0
Capabilities:
Delete file
Enumerate processes
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x340
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x210], rax
xor r13d, r13d
mov r12d, r13d
mov dword [rsp + 0x20], r13d
lea rdi, str.ROTMG_old.dll
mov qword [rbp + 0xd0], rdi
mov qword [rbp + 0xd8], 0xd
movaps xmm7, xmmword [rbp + 0xd0]
lea rsi, [0x14000e0b8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
test rax, rax
je 0x1400043d9
nop word [rax + rax]
mov r8d, 0x100
lea rdx, [rbp + 0x110]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rdx, str.RealmStock_Exalt_MultiTool
lea rcx, [rbp + 0x110]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
xor r9d, r9d
xor r8d, r8d
test eax, eax
je 0x1400043a8
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
mov rbx, rax
test rax, rax
jne 0x140004360
jmp 0x1400043d9
mov edx, 0x10
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageA]
lea rdx, str.Window_close_request_sent_successfully.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004e50
lea rdx, [0x140005030]
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]
call fcn.140007608
movdqa xmmword [rsp + 0x20], xmm7
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rbp + 0xb0]
call fcn.140001b90
or r12d, 0x60
mov dword [rsp + 0x20], r12d
mov qword [rbp + 0xd0], r13
mov qword [rbp + 0xd8], rsi
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0xb0]
call fcn.140003200
movzx ebx, al
cmp dword [rbp + 0xd0], 0
jne 0x140004a37
mov rdx, qword [rbp + 0xc8]
cmp rdx, 7
jbe 0x140004477
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004472
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a0d
call fcn.14000826c
test bl, bl
je 0x140004484
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
call fcn.140003700
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400044b2
lea rdx, str.Failed_to_create_process_snapshot._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004e50
mov dword [rbp - 0x80], 0x130
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x1400044e6
lea rdx, str.Failed_to_retrieve_the_first_process_entry._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004e50
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r13
mov qword [rbp + 0xc8], r13
lea rax, [rbp - 0x54]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140004510
lea rdx, [rbp - 0x54]
lea rcx, [rbp + 0xb0]
call fcn.140005b10
lea rdx, [0x14000e940]
cmp qword [0x14000e958], 0xf
cmova rdx, qword [0x14000e940]
lea rcx, [rbp + 0xb0]
mov rbx, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xc8]
cmp rdi, 0xf
cmova rcx, rbx
mov r8, qword [rbp + 0xc0]
cmp r8, qword [0x14000e950]
jne 0x14000457c
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000457c
mov sil, 1
jmp 0x14000457f
xor sil, sil
cmp rdi, 0xf
jbe 0x1400045b6
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400045ae
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a14
mov rcx, rbx
call fcn.14000826c
test sil, sil
je 0x140004876
mov rax, qword [0x14000e960]
mov rcx, qword [0x14000e968]
cmp rax, rcx
je 0x1400045e6
mov edx, dword [rbp - 0x78]
cmp dword [rax], edx
je 0x140004876
add rax, 4
cmp rax, rcx
jne 0x1400045d5
lea rdx, str.Found_process_with_ID:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004e50
mov edx, dword [rbp - 0x78]
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, [0x14000a970]
call fcn.140004e50
nop
lea rcx, [rbp + 0xb0]
call fcn.140003310
nop
lea rax, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rax, qword [rbp + 0xb0]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0xc0]
mov qword [rsp + 0x78], rax
call fcn.140007608
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0xe0], xmm0
lea r8, [rbp + 0xe0]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140005070
or r12d, 0xf
mov dword [rsp + 0x20], r12d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400046d1
lea rax, [rsp + 0x50]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
cmova rax, r8
cmp byte [rcx + rax - 1], 0x5c
je 0x1400046d1
cmp rcx, rdx
jae 0x1400046c3
lea rax, [rcx + 1]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rdx, 0xf
cmova rax, r8
mov word [rax + rcx], 0x5c
jmp 0x1400046d1
mov r9b, 0x5c
lea rcx, [rsp + 0x50]
call fcn.140005e60
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 7
jbe 0x140004717
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004712
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a1b
call fcn.14000826c
mov qword [rbp + 0xc0], r13
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], r13w
mov r8d, 9
lea rdx, str.rotmg.dll
lea rcx, [rsp + 0x50]
call fcn.140004d40
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or r12d, 0x10
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x30]
mov ecx, dword [rbp - 0x78]
call fcn.140001920
movzx ebx, al
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400047d0
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400047cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a22
call fcn.14000826c
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
and r12d, 0xfffffffe
mov dword [rsp + 0x20], r12d
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140004829
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004824
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a29
call fcn.14000826c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test bl, bl
lea rdx, str.DLL_injected_successfully._n
jne 0x140004842
lea rdx, str.Failed_to_inject_DLL._n
call fcn.140004e50
mov rdx, qword [0x14000e968]
cmp rdx, qword [0x14000e970]
je 0x140004866
mov eax, dword [rbp - 0x78]
mov dword [rdx], eax
add qword [0x14000e968], 4
jmp 0x140004876
lea r8, [rbp - 0x78]
lea rcx, [0x14000e960]
call fcn.140006df0
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400044e6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm6, xmm6
movdqu xmmword [rbp + 0xe0], xmm6
mov r14, r13
mov qword [rbp + 0xf0], r13
mov r15, qword [0x14000e968]
mov rbx, qword [0x14000e960]
cmp rbx, r15
je 0x14000499b
mov rdi, qword [rbp + 0xe8]
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140004952
lea rdx, [rbp + 0x100]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140004949
cmp dword [rbp + 0x100], 0x103
jne 0x140004949
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, r14
je 0x140004927
mov eax, dword [rbx]
mov dword [rdi], eax
add rdi, 4
mov qword [rbp + 0xe8], rdi
jmp 0x14000497f
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0xe0]
call fcn.140006df0
mov r14, qword [rbp + 0xf0]
mov rdi, qword [rbp + 0xe8]
jmp 0x14000497f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Process
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004e50
mov edx, dword [rbx]
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, str._has_been_closed._n
call fcn.140004e50
add rbx, 4
cmp rbx, r15
jne 0x1400048d0
mov rbx, qword [0x14000e960]
movdqu xmm6, xmmword [rbp + 0xe0]
test rbx, rbx
je 0x1400049df
mov rax, qword [0x14000e970]
sub rax, rbx
sar rax, 2
lea rdx, [rax*4]
cmp rdx, 0x1000
jb 0x1400049d7
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140004a30
mov rbx, rcx
mov rcx, rbx
call fcn.14000826c
movups xmmword [0x14000e960], xmm6
movsd xmm0, qword [rbp + 0xf0]
movsd qword [0x14000e970], xmm0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, str.ROTMG_old.dll
jmp 0x14000433a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
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
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]
nop
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0xd0]
call fcn.140002cd0
int3