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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x238
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbp, qword [rsp + 0x2a0]
mov r15, qword [rsp + 0x2a8]
mov r12, r9
mov r13d, r8d
mov dword [rsp + 0x64], r8d
mov r14, rdx
mov qword [rsp + 0x78], rbp
mov rdi, rcx
mov qword [rsp + 0x90], rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x70], rax
mov rbx, rsi
inc rbx
cmp byte [r12 + rbx], 0
jne 0x14006ec96
imul ebx, ebp
imul ebx, edi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rsi
mov qword [rsp + 0xe8], rax
inc rcx
cmp byte [r12 + rcx], 0
jne 0x14006ecc0
movzx eax, r13b
imul cl
mov rcx, rsi
movzx edx, al
inc rcx
cmp byte [r14 + rcx], 0
jne 0x14006ecd6
movzx eax, dil
mov rbp, rsi
imul cl
add dl, al
mov eax, dword [rsp + 0xe8]
movzx ecx, dl
sub eax, ecx
mov dword [rsp + 0x68], ecx
add eax, dword [rsp + 0x70]
mov dword [rsp + 0x6c], eax
inc rbp
cmp byte [r14 + rbp], 0
jne 0x14006ed03
imul ebp, r13d
mov rax, rsi
sub ebp, ecx
add ebp, edi
nop dword [rax + rax]
inc rax
cmp byte [r15 + rax], 0
jne 0x14006ed20
xor ecx, ecx
sub ebp, eax
mov edx, 0x8c
lea r8d, [rcx + 4]
add ebp, 0xb
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorGroupCount]
mov rcx, r13
movzx eax, ax
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorGroupCount]
movzx ecx, ax
mov dword [rsp + 0xd0], ecx
mov rcx, rsi
inc rcx
cmp byte [r15 + rcx], 0
jne 0x14006ed74
mov edx, dword [rsp + 0x68]
mov rax, rsi
imul edx, dword [rsp + 0x6c]
sub edx, dword [rsp + 0x70]
add edx, edi
add edx, r13d
sub edx, ecx
inc rax
cmp byte [r14 + rax], 0
jne 0x14006ed95
add edx, 0xc
xor ecx, ecx
add eax, edx
mov edx, 0x72
lea r8d, [rdx - 0x6c]
mov dword [rsp + 0x80], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, dword [rsp + 0x60]
mov qword [rsp + 0x98], rax
cmp edx, ebp
je 0x14006eeb2
lea rcx, [rsp + 0x110]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov rdx, rsi
nop dword [rax]
inc rdx
cmp byte [r15 + rdx], 0
jne 0x14006edf0
mov rax, qword [rsp + 0x98]
imul ecx, ebp, 0xfffffffa
add edi, 0x1a
lea eax, [rax + rax*8]
sub ecx, eax
mov eax, dword [rsp + 0x68]
sub ecx, r13d
sub ecx, dword [rsp + 0x88]
add eax, ecx
mov ecx, 0xffff
add edx, eax
add edx, dword [rsp + 0x78]
add edx, dword [rsp + 0x64]
add edx, edi
add edx, dword [rsp + 0x60]
add ebx, edx
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov edi, eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov r9d, dword [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x64]
mov ecx, ebx
lea r8, str.desk
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
lea rdx, str.midi
mov ecx, edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rdi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x60]
mov rcx, rsi
inc rcx
cmp byte [r15 + rcx], 0
jne 0x14006eeb5
movzx eax, byte [rsp + 0x78]
movzx ebx, dil
add bl, bl
add bl, bpl
imul cl
movzx ecx, al
movzx eax, byte [rsp + 0x70]
imul cl
movzx ecx, bl
add cl, cl
add bl, cl
add bl, bl
sub bl, al
mov rax, rsi
sub bl, dl
sub bl, byte [rsp + 0xd0]
inc rax
cmp byte [r14 + rax], 0
jne 0x14006eef0
add bl, al
mov rax, rsi
nop
inc rax
cmp byte [r12 + rax], 0
jne 0x14006ef00
add bl, al
xor ecx, ecx
mov edx, 0xb5
add bl, byte [rsp + 0x88]
lea r8d, [rcx + 0x15]
add bl, r13b
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r9, qword [rsp + 0x78]
lea rcx, [0x1400ed3b8]
mov qword [rsp + 0x90], rax
movzx r8d, bl
mov qword [rsp + 0x38], rcx
lea rcx, str.boot
mov rdx, rdi
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea rax, str.brian
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
call fcn.1400dc840
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xa0], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rsp + 0xb0], xmm1
movups xmmword [rsp + 0xc0], xmm0
nop word [rax + rax]
inc rcx
cmp byte [r14 + rcx], 0
jne 0x14006efa0
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [r12 + rax], 0
jne 0x14006efb0
mov rdx, qword [rsp + 0x78]
imul ecx, eax
imul r13d, ebp
movzx eax, bl
imul ecx, edx
imul eax, edx
imul r13d, ebp
imul ecx, dword [rsp + 0x64]
imul edx, r13d, 0xffffffcf
sub edx, eax
sub edx, ecx
inc rsi
cmp byte [r15 + rsi], 0
jne 0x14006efe0
imul esi, dword [rsp + 0x70]
mov eax, dword [rsp + 0xc8]
sub edx, esi
lea ecx, [rdx + rax*2]
mov eax, dword [rsp + 0x6c]
sub ecx, dword [rsp + 0x98]
add eax, 0xffffffeb
sub ecx, dword [rsp + 0x80]
sub ecx, dword [rsp + 0x60]
add ecx, dword [rsp + 0x68]
add ecx, dword [rsp + 0x90]
add ecx, dword [rsp + 0x88]
add eax, ecx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret