Function at 0x1400052f0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140005315
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
cmp qword [0x140021aa0], 0
jne 0x140005429
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0xa
lea rdx, str.ExFreePool
lea rcx, [rsp + 0x40]
call fcn.140004350
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0xc
lea rdx, [0x14000d148]
lea rcx, [rsp + 0x20]
call fcn.140004350
nop
lea rcx, [rsp + 0x20]
call fcn.14000a540
mov rdx, rax
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.140005450
mov qword [0x140021aa0], rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400053d6
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400053d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab9c
movdqa xmm0, xmmword [0x140015f40]
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140005429
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005424
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005424
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab9c
mov r9, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
jmp 0x140006450
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r12, r9
mov rdi, rcx
mov rax, qword [0x140021aa0]
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140006a4a
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x4c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x50], 0x114
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea r8, [rbp - 0x78]
lea rdx, str.kernel32.dll
mov ecx, 2
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
xorps xmm0, xmm0
mov r15d, eax
movdqu xmmword [rbp - 0x70], xmm0
xor esi, esi
mov qword [rbp - 0x60], rsi
xor r13d, r13d
xor ebx, ebx
test eax, eax
je 0x14000654e
cmp r15, 0x1000
jb 0x14000651e
lea rcx, [r15 + 0x27]
cmp rcx, r15
jbe 0x140006a74
call fcn.14000ab60
test rax, rax
je 0x14000669d
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140006529
mov rcx, r15
call fcn.14000ab60
mov rbx, rax
mov r14, rbx
mov qword [rbp - 0x70], rbx
lea rsi, [rbx + r15]
mov r13, rsi
mov qword [rbp - 0x60], rsi
mov r8, r15
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x68], rsi
jmp 0x140006552
mov r14, qword [rbp - 0x70]
sub r13, rbx
mov qword [rsp + 0x20], r14
mov r9d, r13d
mov r8d, dword [rbp - 0x78]
lea rdx, str.kernel32.dll
mov ecx, 2
call qword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
xor r13d, r13d
mov qword [rsp + 0x70], r13
mov dword [rbp - 0x74], r13d
lea r9, [rbp - 0x74]
lea r8, [rsp + 0x70]
lea rdx, [0x14000cfa4]
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rbx, qword [rsp + 0x70]
lea rdx, [0x14000d26c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003c80
movzx edx, word [rbx + 0xa]
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_short_int____ptr64]
mov rcx, rax
mov dl, 0x2e
call fcn.140003e50
movzx edx, word [rbx + 8]
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_short_int____ptr64]
mov rcx, rax
mov dl, 0x2e
call fcn.140003e50
movzx edx, word [rbx + 0xe]
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_short_int____ptr64]
mov rcx, rax
mov dl, 0x2e
call fcn.140003e50
movzx edx, word [rbx + 0xc]
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_short_int____ptr64]
mov rcx, rax
mov dl, 0xa
call fcn.140003e50
movzx eax, word [rbx + 0xe]
mov ecx, 0x4a61
cmp ax, cx
jb 0x140006839
lea rcx, [0x14000d290]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtQueryInformationAtom
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
jne 0x1400066a4
lea rdx, str.____Failed_to_get_export_ntdll.NtQueryInformationAtom
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003c80
lea rdx, [0x140004020]
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]
xor bl, bl
test r14, r14
je 0x140006a47
sub rsi, r14
mov rax, r14
cmp rsi, 0x1000
jb 0x140006a3c
add rsi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006a3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov word [rbp + 0xd0], 0xb848
mov word [rbp + 0xda], 0xe0ff
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0xd2], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0x16
lea rdx, str.NtQueryInformationAtom
lea rcx, [rsp + 0x50]
call fcn.140004350
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0xc
lea rdx, [0x14000d148]
lea rcx, [rsp + 0x30]
call fcn.140004350
nop
lea rcx, [rsp + 0x30]
call fcn.14000a540
mov rdx, rax
lea r8, [rsp + 0x50]
mov rcx, rdi
call fcn.140005450
mov rbx, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140006770
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000676b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000676b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab9c
movdqa xmm0, xmmword [0x140015f40]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400067c3
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400067be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400067be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ab9c
test rbx, rbx
jne 0x1400067d4
lea rdx, str.____Failed_to_get_export_ntoskrnl.NtQueryInformationAtom
jmp 0x14000664a
mov r9d, 0xc
mov r8, rbx
lea rdx, [rbp + 0xe0]
mov rcx, rdi
call fcn.140004de0
test al, al
je 0x140006666
mov r9d, 0xc
lea r8, [rbp + 0xd0]
mov rdx, rbx
mov rcx, rdi
call fcn.140004f20
test al, al
je 0x140006666
mov rcx, r12
call r15
mov r9d, 0xc
lea r8, [rbp + 0xe0]
mov rdx, rbx
mov rcx, rdi
call fcn.140004f20
mov bl, 1
jmp 0x140006668
mov ecx, 0x47ba
cmp ax, cx
jb 0x14000698e
lea rcx, str.gdi32full.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtGdiDdDDIReclaimAllocations2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtGdiGetCOPPCompatibleOPMInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rbx, rbx
jne 0x14000689d
test rax, rax
jne 0x14000689d
lea rdx, str.____Failed_to_get_export_gdi32full.NtGdiDdDDIReclaimAllocations2___win32u.NtGdiGetCOPPCompatibleOPMInformation
jmp 0x14000664a
mov qword [rsp + 0x78], r13
mov qword [rbp + 0xd0], 0xb848
mov dword [rbp + 0xd8], 0xe0ff0000
mov qword [rbp + 0xe0], r13
lea rdx, [rsp + 0x78]
mov rcx, rdi
test rbx, rbx
je 0x140006925
lea r8, [rbp + 0xe0]
call fcn.140005790
test al, al
je 0x140006666
mov r9d, 8
lea r8, [rbp - 0x80]
mov r15, qword [rsp + 0x78]
mov rdx, r15
mov rcx, rdi
call fcn.140004f20
test al, al
je 0x140006666
mov rcx, r12
call rbx
mov r9d, 8
lea r8, [rbp + 0xe0]
mov rdx, r15
mov rcx, rdi
call fcn.140004f20
mov bl, 1
jmp 0x140006668
lea r8, [rbp + 0xf0]
call fcn.140005990
test al, al
je 0x140006666
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0xd2], rax
mov r9d, 0xc
lea r8, [rbp + 0xd0]
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
mov rcx, rdi
call fcn.140004f20
test al, al
je 0x140006666
mov rcx, r12
call r15
mov r9d, 0xc
lea r8, [rbp + 0xf0]
mov rdx, rbx
mov rcx, rdi
call fcn.140004f20
mov bl, 1
jmp 0x140006668
mov ecx, 0x42ee
cmp ax, cx
jb 0x140006666
lea rcx, str.gdi32full.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtGdiDdDDIReclaimAllocations2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
jne 0x1400069cd
lea rdx, str.____Failed_to_get_export_gdi32full.NtGdiDdDDIReclaimAllocations2
jmp 0x14000664a
mov qword [rbp + 0xe0], r13
mov qword [rsp + 0x78], r13
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0xe0]
mov rcx, rdi
call fcn.140005790
test al, al
je 0x140006666
mov r9d, 8
lea r8, [rbp - 0x80]
mov rbx, qword [rbp + 0xe0]
mov rdx, rbx
mov rcx, rdi
call fcn.140004f20
test al, al
je 0x140006666
mov rcx, r12
call r15
mov r9d, 8
lea r8, [rsp + 0x78]
mov rdx, rbx
mov rcx, rdi
call fcn.140004f20
mov bl, 1
jmp 0x140006668
mov rdx, rsi
mov rcx, r14
call fcn.14000ab9c
movzx eax, bl
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14000ab40
mov rbx, qword [rsp + 0x258]
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140001130
int3