Function at 0x140016130
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get file size
Read file on windows
Resume thread
Terminate process
Use process replacement

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 - 0x758]
sub rsp, 0x830
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rbp + 0x710], rax
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x20
lea rcx, [rbp - 0x70]
call fcn.140019f10
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
lea r13, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
test al, al
je 0x1400161b8
lea rdx, str.Erro_ao_abrir_o_arquivo_para_escrita.
jmp 0x1400162bc
mov r8d, 0x586e00
lea rdx, [0x1400540d0]
lea rcx, [rbp - 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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1400161f4
lea rdx, str.Erro_ao_escrever_no_arquivo.
jmp 0x1400162bc
lea rcx, [rbp - 0x68]
call fcn.14001fb30
test rax, rax
jne 0x14001621f
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov dword [rbp + 0xd0], 0x10000b
mov dword [rbp + 0x590], WSASetLastError
xorps xmm0, xmm0
movups xmmword [rbp + 0x598], xmm0
movups xmmword [rbp + 0x5a8], xmm0
movups xmmword [rbp + 0x5b8], xmm0
movups xmmword [rbp + 0x5c8], xmm0
movups xmmword [rbp + 0x5d8], xmm0
movups xmmword [rbp + 0x5e8], xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x590]
mov qword [rsp + 0x40], rax
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400162dd
lea rdx, str.Erro_ao_criar_o_processo.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140027ae0
lea rdx, [0x1400282f0]
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]
jmp 0x140016661
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 1
lea rcx, str.C:WindowsSystem32SysprepSysprep_succeeded.tag
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001631f
lea rdx, str.Erro_ao_abrir_o_arquivo_de_cheat.
jmp 0x140016412
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov edx, eax
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x570]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140016370
lea rdx, str.Erro_ao_ler_o_arquivo_de_cheat.
jmp 0x140016412
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x14001638f
lea rdx, str.Assinatura_DOS_invlida.
jmp 0x140016412
movsxd rsi, dword [rdi + 0x3c]
add rsi, rdi
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtGetContextThread]
mov rdx, qword [rbp + 0x128]
add rdx, 0x10
mov qword [rsp + 0x20], r12
mov r9d, 8
lea r8, [rbp - 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov rdx, qword [rbp - 0x80]
cmp rdx, qword [rsi + 0x30]
jne 0x1400163e2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov r8d, dword [rsi + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x140016443
lea rdx, str.Erro_ao_alocar_memria_no_processo_alvo.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140027ae0
lea rdx, [0x1400282f0]
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]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
jmp 0x140016661
mov qword [rsp + 0x20], r12
mov r9d, dword [rsi + 0x54]
mov r8, rdi
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov ebx, r12d
cmp r12w, word [rsi + 6]
jae 0x1400164b6
nop word [rax + rax]
mov eax, ebx
lea rdx, [rax + rax*4]
movsxd rcx, dword [rdi + 0x3c]
add rcx, rdi
lea r9, [rcx + rdx*8]
mov r8d, dword [r9 + 0x11c]
add r8, rdi
mov edx, dword [r9 + 0x114]
add rdx, r14
mov qword [rsp + 0x20], r12
mov r9d, dword [r9 + 0x118]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
inc ebx
movzx eax, word [rsi + 6]
cmp ebx, eax
jb 0x140016470
mov eax, dword [rsi + 0x28]
add rax, r14
mov qword [rbp + 0x120], rax
mov rdx, qword [rbp + 0x128]
add rdx, 0x10
mov qword [rsp + 0x20], r12
mov r9d, 8
lea r8, [rsi + 0x30]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtSetContextThread]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtResumeThread]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x600]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rcx, [rbp + 0x600]
call fcn.140019f10
nop
cmp qword [rbp + 0x688], 0
jne 0x140016587
lea rdx, str.Erro_ao_abrir_o_arquivo_para_limpeza.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140027ae0
lea rdx, [0x1400282f0]
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]
jmp 0x14001660f
lea rdx, [rbp + 0x578]
lea rcx, [rbp + 0x600]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_ostream_char__struct_std::char_traits_char__::tellp_void____ptr64]
xorps xmm1, xmm1
mov rdx, qword [rbp + 0x580]
add rdx, qword [rbp + 0x578]
xorps xmm0, xmm0
psrldq xmm0, 8
movq rdi, xmm0
movq rbx, xmm1
lea rax, [rdi + rbx]
cmp rax, rdx
jge 0x14001660f
movdqa xmm6, xmmword [0x140045030]
nop
xor edx, edx
lea rcx, [rbp + 0x600]
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__::put_char____ptr64]
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rcx, xmm0
movq rax, xmm6
add rcx, rax
add rbx, rcx
mov rdx, qword [rbp + 0x580]
add rdx, qword [rbp + 0x578]
lea rax, [rbx + rdi]
cmp rax, rdx
jl 0x1400165d0
mov rax, qword [rbp + 0x600]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x600], r13
mov rax, qword [rbp + 0x600]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x5fc], edx
lea rcx, [rbp + 0x608]
call fcn.14001b430
lea rcx, [rbp + 0x610]
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 + 0x6a8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r13
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.14001b430
lea rcx, [rbp - 0x60]
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 + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x710]
xor rcx, rsp
call fcn.14003a7b0
lea r11, [rsp + 0x830]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret