Function at 0x140001da0
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 [0x140007040]
xor rax, rsp
mov qword [rbp + 0x28], rax
xor edi, edi
lea rcx, str.Microsoft.Uev.AppAgent.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 0x140001e14
mov r12d, edi
mov qword [rsp + 0x58], rdi
jmp 0x140001e81
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 0x140001e62
cmp dword [r12], 0x905a4d
je 0x140001e73
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 0x140001e8d
lea rcx, str.invalid_dll_n
call fcn.140001010
mov rcx, r12
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r14, rax
test rax, rax
jne 0x140001eaa
lea rcx, str.pe:_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 r15d, dword [rbp + 0x20]
test r15d, r15d
je 0x140001eb0
lea rcx, str.injecting..._n
call fcn.140001010
test r13d, r13d
je 0x14000238a
mov rax, qword gs:[0x58]
mov ebx, 4
add rbx, qword [rax]
mov qword [rsp + 0x50], rbx
mov eax, dword [rbx]
cmp dword [0x140007818], eax
jle 0x140001f49
lea rcx, [0x140007818]
call fcn.140002b44
cmp dword [0x140007818], 0xffffffff
jne 0x140001f49
lea rcx, [0x140003b50]
call fcn.140002e20
lea rcx, [0x140007818]
call fcn.140002ad8
mov eax, dword [r14 + 0x50]
lea rcx, str.win32u.dll
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x40], 4
mov dword [rbp - 0x20], r15d
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 0x140001fab
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002670
mov rcx, rax
lea rdx, [0x140002820]
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 0x140001fb1
lea rcx, [rbp - 0x40]
call rax
mov rsi, qword [rbp - 8]
mov r8, r14
mov rcx, rsi
mov qword [rsp + 0x48], rsi
mov rdx, r12
call fcn.1400019d0
test eax, eax
jne 0x140002070
mov eax, dword [rbx]
cmp dword [0x140007818], eax
jle 0x140002007
lea rcx, [0x140007818]
call fcn.140002b44
cmp dword [0x140007818], 0xffffffff
jne 0x140002007
lea rcx, [0x140003b50]
call fcn.140002e20
lea rcx, [0x140007818]
call fcn.140002ad8
lea rcx, str.win32u.dll
mov dword [rsp + 0x60], 5
mov dword [rbp - 0x80], r15d
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 0x14000205d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002670
mov rcx, rax
lea rdx, [0x140002820]
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 0x140002064
lea rcx, [rsp + 0x60]
call rax
lea rcx, str.reloc_failed_n
call fcn.140001010
mov rcx, r15
mov r9, r14
mov r8, r12
mov edx, r13d
call fcn.140001b60
test eax, eax
jne 0x140002129
mov eax, dword [rbx]
cmp dword [0x140007818], eax
jle 0x1400020c0
lea rcx, [0x140007818]
call fcn.140002b44
cmp dword [0x140007818], 0xffffffff
jne 0x1400020c0
lea rcx, [0x140003b50]
call fcn.140002e20
lea rcx, [0x140007818]
call fcn.140002ad8
lea rcx, str.win32u.dll
mov dword [rsp + 0x60], 5
mov dword [rbp - 0x80], r15d
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 0x140002116
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002670
mov rcx, rax
lea rdx, [0x140002820]
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 0x14000211d
lea rcx, [rsp + 0x60]
call rax
lea rcx, str.import_failed_n
call fcn.140001010
movzx ebx, word [r14 + 0x14]
movzx esi, di
add rbx, 0x2c
cmp di, word [r14 + 6]
jae 0x140002210
mov rdi, qword [rsp + 0x50]
add rbx, r14
mov r13, qword [rsp + 0x48]
nop dword [rax]
mov eax, dword [rdi]
cmp dword [0x140007818], eax
jle 0x140002187
lea rcx, [0x140007818]
call fcn.140002b44
cmp dword [0x140007818], 0xffffffff
jne 0x140002187
lea rcx, [0x140003b50]
call fcn.140002e20
lea rcx, [0x140007818]
call fcn.140002ad8
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], r15d
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 0x1400021f0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002670
mov rcx, rax
lea rdx, [0x140002820]
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 0x1400021f7
lea rcx, [rsp + 0x60]
call rax
inc si
add rbx, 0x28
cmp si, word [r14 + 6]
jb 0x140002150
mov r13d, dword [rsp + 0x40]
xor edi, edi
lea rcx, str.injecting..._almost_done_n
call fcn.140001010
mov r8, qword [rsp + 0x48]
mov r9, r14
mov edx, r13d
mov rcx, r15
call fcn.1400015e0
movzx ebx, word [r14 + 0x14]
add rbx, 0x28
cmp di, word [r14 + 6]
jae 0x14000234b
mov r12, qword [rsp + 0x50]
add rbx, r14
nop dword [rax + rax]
mov eax, dword [rbx]
test eax, eax
je 0x140002334
test dword [rbx + 0x14], 0x2000000
je 0x140002334
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 [0x140007818], ecx
jle 0x1400022b7
lea rcx, [0x140007818]
call fcn.140002b44
cmp dword [0x140007818], 0xffffffff
jne 0x1400022b7
lea rcx, [0x140003b50]
call fcn.140002e20
lea rcx, [0x140007818]
call fcn.140002ad8
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], r15d
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 0x14000231c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002670
mov rcx, rax
lea rdx, [0x140002820]
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 0x140002323
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 [r14 + 6]
jb 0x140002250
mov r12, qword [rsp + 0x58]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, str.JOEWARE_ON_TOP_n
call fcn.140001010
lea rcx, str.inject_success__n
call fcn.140001010
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140002820]
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 0x140002396
lea rcx, str.process_not_found__n
call fcn.140001010
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140002ab0
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