Function at 0x140001c40
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 [0x140006040]
xor rax, rsp
mov qword [rbp + 0x28], rax
lea rcx, str.___trying_to_find_injection_module..._n
call fcn.140001010
xor edi, edi
lea rcx, [0x1400046a0]
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 0x140001cc0
mov r12d, edi
mov qword [rsp + 0x58], rdi
jmp 0x140001d2d
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 r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001d0e
cmp dword [r12], 0x905a4d
je 0x140001d1f
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
jne 0x140001d39
lea rcx, str.____DLL_INVALID_ERROR_n
call fcn.140001010
mov rcx, r12
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r15, rax
test rax, rax
jne 0x140001d56
lea rcx, str.____INVALID_PE_HEADER_n
call fcn.140001010
mov dword [rbp + 0x20], edi
nop dword [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 r13d, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r14d, dword [rbp + 0x20]
test r14d, r14d
je 0x140001d60
lea rcx, str.___found_dll_module_n
call fcn.140001010
lea rcx, str.___injection__1_3__n
call fcn.140001010
test r13d, r13d
je 0x1400022b0
lea rcx, str.___allocating_base_module_n
call fcn.140001010
mov rax, qword gs:[0x58]
mov ebx, 4
add rbx, qword [rax]
mov qword [rsp + 0x50], rbx
mov eax, dword [rbx]
cmp dword [0x140006778], eax
jle 0x140001e11
lea rcx, [0x140006778]
call fcn.140002f3c
cmp dword [0x140006778], 0xffffffff
jne 0x140001e11
lea rcx, [0x140003d60]
call fcn.1400031dc
lea rcx, [0x140006778]
call fcn.140002ed0
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 0x140001e7a
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.140002c20
mov rcx, rax
lea rdx, [0x140002df0]
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 0x140001e80
lea rcx, [rbp - 0x40]
call rax
mov rsi, qword [rbp - 8]
lea rcx, str.___succesfully_allocated_base_module_n
mov qword [rsp + 0x48], rsi
call fcn.140001010
lea rcx, str.___reading_image_size_n
call fcn.140001010
mov r8, r15
mov rdx, r12
mov rcx, rsi
call fcn.140001870
test eax, eax
jne 0x140001f5e
mov eax, dword [rbx]
cmp dword [0x140006778], eax
jle 0x140001eee
lea rcx, [0x140006778]
call fcn.140002f3c
cmp dword [0x140006778], 0xffffffff
jne 0x140001eee
lea rcx, [0x140003d60]
call fcn.1400031dc
lea rcx, [0x140006778]
call fcn.140002ed0
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 0x140001f4b
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.140002c20
mov rcx, rax
lea rdx, [0x140002df0]
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 0x140001f52
lea rcx, [rsp + 0x60]
call rax
lea rcx, str.____PROGRAM_REOLOCATION_FATAL_n
call fcn.140001010
mov rcx, r14
mov r9, r15
mov r8, r12
mov edx, r13d
call fcn.140001a00
test eax, eax
jne 0x14000201e
mov eax, dword [rbx]
cmp dword [0x140006778], eax
jle 0x140001fae
lea rcx, [0x140006778]
call fcn.140002f3c
cmp dword [0x140006778], 0xffffffff
jne 0x140001fae
lea rcx, [0x140003d60]
call fcn.1400031dc
lea rcx, [0x140006778]
call fcn.140002ed0
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 0x14000200b
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.140002c20
mov rcx, rax
lea rdx, [0x140002df0]
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 0x140002012
lea rcx, [rsp + 0x60]
call rax
lea rcx, str.____PROCCES_RESOLVER_MEMORY_FATAL_n
call fcn.140001010
lea rcx, str.___injection__2_3__n
call fcn.140001010
lea rcx, str.___writing_to_proccess_n
call fcn.140001010
movzx ebx, word [r15 + 0x14]
movzx esi, di
add rbx, 0x2c
cmp di, word [r15 + 6]
jae 0x140002127
mov rdi, qword [rsp + 0x50]
add rbx, r15
mov r13, qword [rsp + 0x48]
nop word [rax + rax]
mov eax, dword [rdi]
cmp dword [0x140006778], eax
jle 0x140002097
lea rcx, [0x140006778]
call fcn.140002f3c
cmp dword [0x140006778], 0xffffffff
jne 0x140002097
lea rcx, [0x140003d60]
call fcn.1400031dc
lea rcx, [0x140006778]
call fcn.140002ed0
mov eax, dword [rbx - 8]
lea rcx, str.win32u.dll
add rax, r13
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x70], rax
mov eax, dword [rbx]
add rax, r12
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 0x140002107
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.140002c20
mov rcx, rax
lea rdx, [0x140002df0]
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 0x14000210e
lea rcx, [rsp + 0x60]
call rax
inc si
add rbx, 0x28
cmp si, word [r15 + 6]
jb 0x140002060
mov r13d, dword [rsp + 0x40]
xor edi, edi
lea rcx, str.___wrote_to_process_n
call fcn.140001010
mov r8, qword [rsp + 0x48]
mov r9, r15
mov edx, r13d
mov rcx, r14
call fcn.140001470
lea rcx, str.___calling_thread_dll_main_n
call fcn.140001010
movzx ebx, word [r15 + 0x14]
add rbx, 0x28
cmp di, word [r15 + 6]
jae 0x140002272
mov r12, qword [rsp + 0x50]
add rbx, r15
nop
mov eax, dword [rbx]
test eax, eax
je 0x14000225b
test dword [rbx + 0x14], 0x2000000
je 0x14000225b
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [r12]
mov rsi, rax
cmp dword [0x140006778], ecx
jle 0x1400021d7
lea rcx, [0x140006778]
call fcn.140002f3c
cmp dword [0x140006778], 0xffffffff
jne 0x1400021d7
lea rcx, [0x140003d60]
call fcn.1400031dc
lea rcx, [0x140006778]
call fcn.140002ed0
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 0x140002243
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.140002c20
mov rcx, rax
lea rdx, [0x140002df0]
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 0x14000224a
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 0x140002170
mov r12, qword [rsp + 0x58]
lea rcx, str.___erasing_memory_nt_header_n
call fcn.140001010
lea rcx, str.___injection__3_3__n
call fcn.140001010
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, str.___releasing_virtual_memory_dll_image_n
call fcn.140001010
lea rcx, str.___sucessfully_injected_n
jmp 0x1400022b7
lea rcx, str.____WINDOW_CLASS_NOT_FOUND_n
call fcn.140001010
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140002eb0
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