Function at 0x1400668b0
Capabilities:
Copy file
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x560
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x550], rax
movsx r15d, r8b
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
lea r8d, [rcx + 0x12]
mov edx, 0x1ad
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, r15d
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rsp + 0x440]
mov edx, 0x104
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
lea rcx, [rsp + 0x300]
xor edx, edx
mov r8d, 0x140
mov rsi, rax
call fcn.1400e27d0
lea rdx, [rsp + 0x300]
lea rcx, [0x1400ed3f4]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x68], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea eax, [rsi + rsi*4]
add eax, eax
mov dword [rsp + 0x74], eax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorGroupCount]
lea rdx, [0x1400ed3f4]
movzx ebx, ax
lea rcx, [0x1400ed3f4]
mov r8d, r15d
mov dword [rsp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, r15d
imul ecx, r14d
mov r12d, 0xffffffe2
mov dword [rsp + 0x60], eax
sub r12d, ebx
movsxd rbx, eax
add r12d, r12d
sub r12d, ecx
lea rcx, str.c0a0
add r12d, eax
add r12d, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1400ed3f4]
mov r9, rbx
mov r8d, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ecx, ecx
mov edx, 0x226
lea r8d, [rcx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
sub edi, r14d
add edi, 3
mov ecx, r15d
xor edx, edx
add edi, ebx
mov r8d, 0x140
add edi, r12d
imul ecx, ebp
mov rbp, qword [rsp + 0x68]
add edi, dword [rsp + 0x60]
mov eax, ebp
add edi, esi
add esi, 6
imul eax, ebp
sub eax, ecx
lea rcx, [rsp + 0x80]
add eax, esi
mov dword [rsp + 0x68], eax
call fcn.1400e27d0
lea rdx, [rsp + 0x80]
lea rcx, [0x1400ed7c8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
shl r14b, 2
lea rcx, [rsp + 0x1c0]
xor edx, edx
sub bl, r14b
mov r8d, 0x140
sub bl, r15b
add bl, 3
add bl, bl
call fcn.1400e27d0
lea rdx, [rsp + 0x1c0]
lea rcx, [0x1400ed3f4]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
lea rdx, [0x1400ed3f4]
lea rcx, [0x1400ed3f4]
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp bl, 1
je 0x140066b75
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], r12d
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x74]
mov r8, rsi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
mov eax, edi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x70]
lea r8, [0x1400ed4fc]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r12d
lea rdx, str.c1ret
mov r9d, edi
mov ecx, edi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_CreateWindowExA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov edx, 0x378
lea r8d, [rcx + 0x13]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r8d, dword [rsp + 0x68]
lea rdx, [0x1400ed7c8]
lea rcx, [0x1400ed3f4]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
xor ecx, ecx
mov edx, 0x262
lea r8d, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.1400dd340
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret