Function at 0x140002780
Capabilities:
Access pe header
Get file size
Link many functions at runtime
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp + 0x28], rax
xor edi, edi
lea rcx, str.C:WindowsSystem32driversSAMWARE.dll
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400027f4
mov r13d, edi
mov qword [rsp + 0x58], rdi
jmp 0x14000285c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov rdx, rax
mov qword [rsp + 0x58], rax
mov r8d, ebx
mov rcx, rsi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002842
cmp dword [r13], 0x905a4d
je 0x140002853
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r15, rax
mov dword [rbp + 0x20], edi
nop dword [rax + rax]
xor edx, edx
lea rcx, str.UnrealWindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, 0x14
mov dword [rsp + 0x40], eax
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r14d, dword [rbp + 0x20]
test r14d, r14d
je 0x140002870
test r12d, r12d
je 0x140002d29
mov rcx, qword gs:[0x58]
mov ebx, 4
add rbx, qword [rcx]
mov qword [rsp + 0x50], rbx
mov eax, dword [rbx]
cmp dword [0x14000ab68], eax
jle 0x1400028fd
lea rcx, [0x14000ab68]
call fcn.140004c18
cmp dword [0x14000ab68], 0xffffffff
jne 0x1400028fd
lea rcx, [0x140005ce0]
call fcn.140004f9c
lea rcx, [0x14000ab68]
call fcn.140004bb8
mov eax, dword [r15 + 0x50]
lea rcx, str.win32u.dll
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x40], 4
mov dword [rbp - 0x20], r14d
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x38], rdi
mov dword [rbp], 0x40
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtQueryCompositionSurfaceStatistics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140002966
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____driver::send_instruction_get_NtQueryCompositionSurfaceStatistics_failed
call fcn.1400046e0
mov rcx, rax
lea rdx, [0x1400048b0]
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 0x14000296c
lea rcx, [rbp - 0x40]
call rax
mov rsi, qword [rbp - 8]
mov r8, r15
mov rcx, rsi
mov qword [rsp + 0x48], rsi
mov rdx, r13
call fcn.1400023b0
test eax, eax
jne 0x140002a26
mov eax, dword [rbx]
cmp dword [0x14000ab68], eax
jle 0x1400029c2
lea rcx, [0x14000ab68]
call fcn.140004c18
cmp dword [0x14000ab68], 0xffffffff
jne 0x1400029c2
lea rcx, [0x140005ce0]
call fcn.140004f9c
lea rcx, [0x14000ab68]
call fcn.140004bb8
lea rcx, str.win32u.dll
mov dword [rsp + 0x60], 5
mov dword [rbp - 0x80], r14d
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtQueryCompositionSurfaceStatistics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140002a1f
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____driver::send_instruction_get_NtQueryCompositionSurfaceStatistics_failed
call fcn.1400046e0
mov rcx, rax
lea rdx, [0x1400048b0]
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 0x140002a26
lea rcx, [rsp + 0x60]
call rax
mov rcx, r14
mov r9, r15
mov r8, r13
mov edx, r12d
call fcn.140002540
test eax, eax
jne 0x140002ada
mov eax, dword [rbx]
cmp dword [0x14000ab68], eax
jle 0x140002a76
lea rcx, [0x14000ab68]
call fcn.140004c18
cmp dword [0x14000ab68], 0xffffffff
jne 0x140002a76
lea rcx, [0x140005ce0]
call fcn.140004f9c
lea rcx, [0x14000ab68]
call fcn.140004bb8
lea rcx, str.win32u.dll
mov dword [rsp + 0x60], 5
mov dword [rbp - 0x80], r14d
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtQueryCompositionSurfaceStatistics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140002ad3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____driver::send_instruction_get_NtQueryCompositionSurfaceStatistics_failed
call fcn.1400046e0
mov rcx, rax
lea rdx, [0x1400048b0]
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 0x140002ada
lea rcx, [rsp + 0x60]
call rax
movzx ebx, word [r15 + 0x14]
movzx esi, di
add rbx, 0x2c
cmp di, word [r15 + 6]
jae 0x140002bc7
mov rdi, qword [rsp + 0x50]
add rbx, r15
mov r12, qword [rsp + 0x48]
nop
mov eax, dword [rdi]
cmp dword [0x14000ab68], eax
jle 0x140002b37
lea rcx, [0x14000ab68]
call fcn.140004c18
cmp dword [0x14000ab68], 0xffffffff
jne 0x140002b37
lea rcx, [0x140005ce0]
call fcn.140004f9c
lea rcx, [0x14000ab68]
call fcn.140004bb8
mov eax, dword [rbx - 8]
lea rcx, str.win32u.dll
add rax, r12
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x70], rax
mov eax, dword [rbx]
add rax, r13
mov dword [rbp - 0x80], r14d
mov qword [rsp + 0x68], rax
mov eax, dword [rbx - 4]
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtQueryCompositionSurfaceStatistics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140002ba7
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____driver::send_instruction_get_NtQueryCompositionSurfaceStatistics_failed
call fcn.1400046e0
mov rcx, rax
lea rdx, [0x1400048b0]
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 0x140002bae
lea rcx, [rsp + 0x60]
call rax
inc si
add rbx, 0x28
cmp si, word [r15 + 6]
jb 0x140002b00
mov r12d, dword [rsp + 0x40]
xor edi, edi
mov r8, qword [rsp + 0x48]
mov r9, r15
mov edx, r12d
mov rcx, r14
call fcn.140001fb0
movzx ebx, word [r15 + 0x14]
add rbx, 0x28
cmp di, word [r15 + 6]
jae 0x140002cf8
mov r13, qword [rsp + 0x50]
add rbx, r15
mov eax, dword [rbx]
test eax, eax
je 0x140002ce1
test dword [rbx + 0x14], 0x2000000
je 0x140002ce1
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [r13]
mov rsi, rax
cmp dword [0x14000ab68], ecx
jle 0x140002c5d
lea rcx, [0x14000ab68]
call fcn.140004c18
cmp dword [0x14000ab68], 0xffffffff
jne 0x140002c5d
lea rcx, [0x140005ce0]
call fcn.140004f9c
lea rcx, [0x14000ab68]
call fcn.140004bb8
mov eax, dword [rbx - 4]
lea rcx, str.win32u.dll
add rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov eax, dword [rbx]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x60], 1
mov dword [rbp - 0x80], r14d
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtQueryCompositionSurfaceStatistics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140002cc9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____driver::send_instruction_get_NtQueryCompositionSurfaceStatistics_failed
call fcn.1400046e0
mov rcx, rax
lea rdx, [0x1400048b0]
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 0x140002cd0
lea rcx, [rsp + 0x60]
call rax
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
inc di
add rbx, 0x28
cmp di, word [r15 + 6]
jb 0x140002bf6
mov r13, qword [rsp + 0x58]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, str.inject_success__n
call fcn.140001990
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x1400048b0]
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 rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140004aa0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret