Function at 0x1400041f0
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
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rbp + 0x220], rax
xor r13d, r13d
mov r12d, r13d
mov dword [rsp + 0x28], r13d
lea rsi, [0x14000e048]
mov r14d, 0x16d
lea rdi, str.ROTMG_old.dll
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
test rax, rax
je 0x1400042d9
nop dword [rax]
mov r8d, pe_nt_image_headers64
lea rdx, [rbp + 0x120]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rdx, str.RealmStock_Exalt_MultiTool
lea rcx, [rbp + 0x120]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
xor r9d, r9d
xor r8d, r8d
test eax, eax
je 0x1400042a8
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
mov rbx, rax
test rax, rax
jne 0x140004260
jmp 0x1400042d9
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.140004e20
lea rdx, [0x140004ff0]
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.14000772c
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 0xd
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp + 0xb0]
call fcn.140001b30
or r12d, 0xc0
mov dword [rsp + 0x28], r12d
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp + 0xf8]
call fcn.140007a7c
mov r8d, eax
test eax, eax
jne 0x14000438e
mov edx, dword [rbp + 0x108]
test dl, 1
mov ecx, 0x1ff
cmovne ecx, r14d
mov dword [rbp + 0xd4], ecx
bt edx, 0xa
jae 0x140004380
mov eax, dword [rbp + 0x10c]
cmp eax, 0xa000000c
jne 0x140004372
lea eax, [r8 + 4]
jmp 0x1400043b4
cmp eax, 0xa0000003
jne 0x140004380
mov eax, 0xa
jmp 0x1400043b4
movzx eax, dl
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x1400043b4
mov dword [rbp + 0xd4], 0xffff
sub eax, 2
je 0x1400043af
sub eax, 1
je 0x1400043af
sub eax, 0x32
je 0x1400043af
cmp eax, 0x46
mov eax, r13d
jne 0x1400043b4
mov eax, 1
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0x68], rsi
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0xd0], xmm0
test eax, eax
je 0x1400043d7
cmp eax, 1
setne bl
jmp 0x1400043e2
xor bl, bl
test r8d, r8d
jne 0x140004a00
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x140004428
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004423
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400049d6
call fcn.1400083ac
test bl, bl
je 0x140004435
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
call fcn.140003560
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140004461
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.140004e20
mov dword [rbp - 0x80], 0x130
lea rdx, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x140004495
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.140004e20
mov rcx, r15
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 + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400044c0
lea rdx, [rbp - 0x54]
lea rcx, [rbp + 0xb0]
call fcn.140005a70
lea rdx, [0x14000e8d0]
cmp qword [0x14000e8e8], 0x10
cmovae rdx, qword [0x14000e8d0]
lea rcx, [rbp + 0xb0]
mov rsi, qword [rbp + 0xc8]
cmp rsi, 0x10
setae r14b
mov rbx, qword [rbp + 0xb0]
cmovae rcx, rbx
mov r8, qword [rbp + 0xc0]
cmp r8, qword [0x14000e8e0]
jne 0x140004530
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140004530
mov dil, 1
jmp 0x140004533
xor dil, dil
test r14b, r14b
je 0x140004569
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140004561
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400049dd
mov rcx, rbx
call fcn.1400083ac
test dil, dil
je 0x140004842
mov rax, qword [0x14000e8f0]
mov rcx, qword [0x14000e8f8]
cmp rax, rcx
je 0x140004599
mov edx, dword [rbp - 0x78]
cmp dword [rax], edx
je 0x140004842
add rax, 4
cmp rax, rcx
jne 0x140004588
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.140004e20
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.140004e20
nop
lea rcx, [rbp + 0xb0]
call fcn.140003250
nop
lea rax, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rax, qword [rbp + 0xb0]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0xc0]
mov qword [rsp + 0x78], rax
call fcn.14000772c
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0xd0], xmm0
lea r8, [rbp + 0xd0]
mov edx, eax
lea rcx, [rbp + 0xf8]
call fcn.140005030
or r12d, 0x1d
mov dword [rsp + 0x28], r12d
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x140004697
lea rax, [rbp + 0xf8]
mov rdx, qword [rbp + 0x110]
cmp rdx, 0x10
setae r9b
mov r8, qword [rbp + 0xf8]
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x5c
je 0x140004697
cmp rcx, rdx
jae 0x140004687
lea rax, [rcx + 1]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0xf8]
test r9b, r9b
cmovne rax, r8
mov word [rax + rcx], 0x5c
jmp 0x140004697
mov r9b, 0x5c
lea rcx, [rbp + 0xf8]
call fcn.140005f40
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x1400046dd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400046d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400049e4
call fcn.1400083ac
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, [rbp + 0xf8]
call fcn.140004d10
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, 0x20
mov dword [rsp + 0x28], r12d
lea rdx, [rsp + 0x30]
mov ecx, dword [rbp - 0x78]
call fcn.140001840
movzx ebx, al
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140004798
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004793
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400049eb
call fcn.1400083ac
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
and r12d, 0xfffffffe
mov dword [rsp + 0x28], r12d
mov rdx, qword [rbp + 0x110]
cmp rdx, 0x10
jb 0x1400047f5
inc rdx
mov rcx, qword [rbp + 0xf8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400047f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400049f2
call fcn.1400083ac
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 0x14000480e
lea rdx, str.Failed_to_inject_DLL._n
call fcn.140004e20
mov rdx, qword [0x14000e8f8]
cmp rdx, qword [0x14000e900]
je 0x140004832
mov eax, dword [rbp - 0x78]
mov dword [rdx], eax
add qword [0x14000e8f8], 4
jmp 0x140004842
lea r8, [rbp - 0x78]
lea rcx, [0x14000e8f0]
call fcn.140006cc0
lea rdx, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140004495
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm6, xmm6
movdqu xmmword [rbp + 0xd0], xmm6
mov r14, r13
mov qword [rbp + 0xe0], r13
mov r15, qword [0x14000e8f8]
mov rbx, qword [0x14000e8f0]
cmp rbx, r15
je 0x14000496b
mov rdi, qword [rbp + 0xd8]
nop dword [rax]
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 0x140004922
lea rdx, [rbp + 0xf0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140004919
cmp dword [rbp + 0xf0], 0x103
jne 0x140004919
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, r14
je 0x1400048f7
mov eax, dword [rbx]
mov dword [rdi], eax
add rdi, 4
mov qword [rbp + 0xd8], rdi
jmp 0x14000494f
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0xd0]
call fcn.140006cc0
mov r14, qword [rbp + 0xe0]
mov rdi, qword [rbp + 0xd8]
jmp 0x14000494f
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.140004e20
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.140004e20
add rbx, 4
cmp rbx, r15
jne 0x1400048a0
mov rbx, qword [0x14000e8f0]
movdqu xmm6, xmmword [rbp + 0xd0]
test rbx, rbx
je 0x1400049af
mov rax, qword [0x14000e900]
sub rax, rbx
sar rax, 2
lea rdx, [rax*4]
cmp rdx, 0x1000
jb 0x1400049a7
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400049f9
mov rbx, rcx
mov rcx, rbx
call fcn.1400083ac
movups xmmword [0x14000e8f0], xmm6
movsd xmm0, qword [rbp + 0xe0]
movsd qword [0x14000e900], xmm0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140004236
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.140002c40
int3