Function at 0x1400d4610
Capabilities:
Create thread
Extract resource via kernel32 functions
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x440
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r14, rdx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x140
mov r13d, eax
call fcn.1400e27d0
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
mov edx, 0x2ff
lea r8d, [rcx + 0xe]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rbp, rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, esi
mov r15d, eax
imul ecx, ebx
imul ecx, ebp
mov ebp, r12d
sub ebp, ecx
sub ebp, eax
sub ebp, r13d
add ebp, 2
cmp dword [rsp + 0x60], eax
jne 0x1400d46ed
mov ecx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov edx, 0xf1
lea r8d, [rcx + 0x1b]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, [rsp + 0x1b0]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0x1b0]
lea rcx, [0x1400ed4d4]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
or rcx, 0xffffffffffffffff
mov rsi, rax
mov rdx, rcx
inc rdx
cmp byte [r14 + rdx], 0
jne 0x1400d4721
shl sil, 3
sub sil, byte [rsp + 0x68]
add sil, r13b
add sil, r12b
sub sil, dl
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400d4740
add sil, cl
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
lea r8, str.vineyard
lea rdx, [0x1400ed3f4]
mov r9d, r13d
mov ecx, r15d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r12, rax
add r12b, 4
add r12b, sil
cmp r15d, r13d
jae 0x1400d489f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8d, [rbx + 0xc]
mov edx, 0x17d
xor ecx, ecx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x305
lea r8d, [rcx + 0xb]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
lea rcx, [rsp + 0x2f0]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0x2f0]
lea rcx, str.c4a1
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor eax, eax
lea rdx, [0x1400ed3f4]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x20
movsx ecx, sil
xor r9d, r9d
mov r8, r14
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_CreateWindowExA]
movsx edx, r12b
movzx eax, dil
mov r9d, r15d
mov r8, r14
imul bl
xor ebx, ebx
movzx ecx, al
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], edx
mov ecx, r13d
mov rdx, r14
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_CreateWindowExA]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorCount]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea r8, [0x140001b00]
movsx r9, sil
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9d, dword [rsp + 0x60]
movsx eax, sil
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov ebx, ebp
lea rdx, str.vineyard
movsx edi, r12b
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov r8, r14
mov ecx, r13d
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], 0x20
lea r8, str.c5a0
lea rdx, [0x1400ed4d4]
mov r9d, edi
mov ecx, r15d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400dd340
mov rbx, qword [rsp + 0x490]
add rsp, 0x440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret