Function at 0x14007e5d0
Capabilities:
Extract resource via kernel32 functions
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x220
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov dword [rsp + 0x28], r8d
mov r14, rdx
mov qword [rsp + 0x78], rdx
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
or rdi, 0xffffffffffffffff
mov rbp, rax
mov qword [rsp + 0x60], rax
movzx eax, byte [r14 + 0x18]
mov rsi, rdi
inc rsi
cmp byte [rbx + rsi], 0
jne 0x14007e623
sub sil, al
mov rcx, rdi
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14007e632
imul cl
mov byte [rsp + 0x20], al
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x30], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rdi
mov r12, rax
nop dword [rax + rax]
cmp byte [rbx + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14007e660
lea r15d, [rcx + rcx*2]
shl r15d, 4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rdi
mov r13d, eax
nop
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14007e680
movzx eax, bpl
mov edx, 0x227
imul cl
xor ecx, ecx
movzx ebp, al
movzx eax, sil
lea r8d, [rcx + 0x14]
imul byte [rsp + 0x20]
sub bpl, al
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rdi
mov r8, rax
mov qword [rsp + 0x50], rax
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x14007e6c0
movzx eax, byte [rsp + 0x20]
movzx r9d, bpl
mov dword [rsp + 0x2c], r9d
imul byte [rsp + 0x28]
movzx ecx, al
movzx eax, sil
imul cl
mov ecx, 8
sub cl, al
movzx eax, r13b
add dl, cl
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x48], eax
imul eax, r12d
imul eax, r15d
sub ecx, eax
movsx edx, dl
sub ecx, r9d
mov dword [rsp + 0x24], edx
sub ecx, edx
sub ecx, r8d
mov qword [rsp + 0x30], rcx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, str.vineyard
mov dword [rsp + 0x88], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x90], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea rcx, [rsp + 0xd0]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0xd0]
lea rcx, str.vineyard
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x58], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, rax
mov qword [rsp + 0x38], rax
cmp sil, 0x23
je 0x14007e7ce
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [rsp + 0x38]
mov rdx, qword [r14]
mov rbp, rdi
inc rbp
cmp byte [rdx + rbp], 0
jne 0x14007e7d4
mov rax, rdi
inc rax
cmp byte [rbx + rax], 0
jne 0x14007e7e0
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x58]
add bpl, al
movzx eax, byte [rsp + 0x50]
imul r9b
movzx ecx, al
movzx eax, r13b
imul cl
movzx ecx, r10b
shl cl, 6
sub al, cl
mov rcx, rdi
sub al, byte [rsp + 0x88]
sub al, byte [rsp + 0x28]
sub al, r8b
movsx r8, sil
sub al, r12b
mov qword [rsp + 0x70], r8
sub al, 0xf
add al, r15b
add al, r11b
add bpl, al
nop dword [rax]
inc rcx
cmp byte [rdx + rcx], 0
jne 0x14007e840
mov edx, dword [rsp + 0x2c]
imul eax, r11d, 0x78
imul edx, dword [rsp + 0x24]
imul edx, r12d
sub edx, eax
mov rax, rdi
sub edx, r9d
sub edx, dword [rsp + 0x30]
add edx, dword [rsp + 0x90]
add edx, r8d
add edx, r10d
sub edx, ecx
inc rax
cmp byte [rbx + rax], 0
jne 0x14007e875
lea r14d, [rdx - 0x16]
add r14d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor ecx, ecx
lea r8d, [rcx + 6]
mov edx, 0x23f
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x94
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov eax, r14d
imul eax, dword [rsp + 0x38]
imul r13d, eax, 0xfffffffb
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
movzx r8d, byte [rsp + 0x20]
lea rdx, str.c0ret
mov r9d, r14d
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
xor ecx, ecx
mov edx, 0x9f
lea r8d, [rcx + 0x17]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rax, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, qword [rax]
nop word [rax + rax]
inc rdx
cmp byte [rcx + rdx], 0
jne 0x14007e900
imul edx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rsp + 0x20]
imul edx, dword [rsp + 0x60]
imul r12d, r15d
imul esi, r13d
shl r12d, 3
sub r12d, dword [rsp + 0x68]
add eax, r12d
add ecx, eax
lea eax, [rsi + rsi*4]
lea r8d, [rdx + rcx*2]
add r8d, eax
mov eax, dword [rsp + 0x24]
imul eax, dword [rsp + 0x30]
add r8d, eax
movsx rax, bpl
add r8d, eax
sub r8d, r14d
sub r8d, dword [rsp + 0x70]
add r8d, dword [rsp + 0x2c]
add r8d, dword [rsp + 0x48]
add r8d, dword [rsp + 0x40]
add r8d, dword [rsp + 0x38]
add r8d, dword [rsp + 0x50]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x14007e971
lea eax, [r8 - 0x4d]
add eax, edi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400dd340
mov rbx, qword [rsp + 0x278]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret