Function at 0x180002970
Capabilities:
Copy file
Get disk size
Get uefi variable
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
lea rax, str.SoftwareHaye_CosqNoqotApp
mov qword [rbp - 0x48], rax
xor edi, edi
mov dword [rbp + 0x118], edi
mov dword [rbp + 0x128], 4
lea rax, [rbp - 0x70]
mov qword [rbp - 0x50], rax
mov dword [rbp + 0x110], 0x20019
mov dword [rbp + 0x120], edi
mov qword [rbp - 0x80], 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add rax, 0x1e1
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], 0x1e1
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x110]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x120]
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.18000cbf0
test eax, eax
jne 0x180002c7b
lea rax, [rbp + 0x128]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x118]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LastLoox
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rcx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rcx, 0x214
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x78], 0x214
xor eax, eax
mov word [rsp + 0x30], ax
mov byte [rsp + 0x32], al
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov ecx, 0x10
call fcn.180045fdc
mov qword [rax + 8], rdi
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
mov qword [rax], rcx
mov word [rsp + 0x68], di
mov qword [rsp + 0x6e], rdi
mov qword [rsp + 0x76], rdi
xor eax, eax
mov word [rsp + 0x6b], ax
mov byte [rsp + 0x6d], al
mov word [rsp + 0x6e], ax
mov byte [rsp + 0x70], al
mov word [rsp + 0x71], ax
mov byte [rsp + 0x73], al
mov word [rsp + 0x74], ax
mov byte [rsp + 0x76], al
mov word [rsp + 0x77], ax
mov byte [rsp + 0x79], al
mov word [rsp + 0x7a], ax
mov byte [rsp + 0x7c], al
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x64], edi
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x60], xmm0
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.180010920
nop
lea rcx, [rsp + 0x38]
call fcn.180011150
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], rdi
mov edx, 0x10
call fcn.180045ef0
test ebx, ebx
jne 0x180002c69
cmp dword [0x1800d5574], 0x9728ef82
jne 0x180002c58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
mov qword [rsp + 0x20], rdi
mov r9d, dword [rbp + 0x118]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessHeaps]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ApplicationRecoveryFinished]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenJobObjectW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ReOpenFile]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DisableThreadProfiling]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_IsThreadpoolTimerSet]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [rbp + 0x118]
add rsp, 0x1f0
pop rdi
pop rbx
pop rbp
ret
lea rcx, str.Value_does_not_exist_or_error_reading_value.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x180002d57
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rax, 0x1de
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 0x1de
xor eax, eax
mov word [rsp + 0x30], ax
mov byte [rsp + 0x32], al
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov ecx, 0x10
call fcn.180045fdc
mov qword [rax + 8], rdi
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
mov qword [rax], rcx
mov word [rsp + 0x68], di
mov qword [rsp + 0x6e], rdi
mov qword [rsp + 0x76], rdi
xor eax, eax
mov word [rsp + 0x6b], ax
mov byte [rsp + 0x6d], al
mov word [rsp + 0x6e], ax
mov byte [rsp + 0x70], al
mov word [rsp + 0x71], ax
mov byte [rsp + 0x73], al
mov word [rsp + 0x74], ax
mov byte [rsp + 0x76], al
mov word [rsp + 0x77], ax
mov byte [rsp + 0x79], al
mov word [rsp + 0x7a], ax
mov byte [rsp + 0x7c], al
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x64], edi
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x60], xmm0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.180010730
nop
lea rcx, [rsp + 0x38]
call fcn.180011150
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], rdi
mov edx, 0x10
call fcn.180045ef0
lea r9, [rbp - 0x20]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x30]
lea rcx, [0x180075fc8]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x180002d91
mov r9, qword [rbp - 0x40]
shr r9, 0x14
lea r8, str.Total_disk_space_on_C:_is__lu_MB.
mov edx, 0x100
lea rcx, [rbp - 0x10]
call fcn.1800010f0
xor eax, eax
add rsp, 0x1f0
pop rdi
pop rbx
pop rbp
ret