Function at 0x140067840
Capabilities:
Create thread
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, 0x1b8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
movsxd r15, dword [rsp + 0x228]
mov rax, qword [rsp + 0x220]
mov rsi, r9
mov r13, r8
mov rbp, rdx
movzx r14d, cl
mov qword [rsp + 0x60], rax
cmp cl, r15b
jg 0x1400678bb
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor ecx, ecx
mov edx, 0x254
lea r8d, [rcx + 0x19]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rax, qword [rsp + 0x60]
or rdi, 0xffffffffffffffff
movsx r12, r14b
mov rbx, rdi
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400678c6
imul ebx, r13d
xor r13d, r13d
lea r8, [0x140001b00]
add ebx, r12d
mov r9, r12
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
add ebx, eax
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x140001b00]
mov r9, r15
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea edx, [r13 + 0x1b]
lea r8d, [r13 + 0x1d]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
add ebx, r15d
jne 0x14006793e
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor r9d, r9d
mov r8, r12
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
movsx ecx, r14b
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ecx
lea rdx, str.intestine
mov r9d, ecx
mov r8, rbp
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov r15d, eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
imul eax, ebx, 7
mov ebx, r15d
sub ebx, eax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
movzx r14d, ax
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp r15d, ebx
jge 0x140067a8a
mov rcx, rdi
inc rcx
cmp byte [rsi + rcx], r13b
jne 0x1400679c0
inc ecx
shl eax, 6
imul ecx, dword [rsp + 0x60]
add ecx, eax
sub ecx, ebx
sub ecx, r15d
nop word [rax + rax]
inc rdi
cmp byte [rdi + rbp], r13b
jne 0x1400679e0
lea eax, [r12 + rcx]
xor ecx, ecx
mov edx, 0x32e
add edi, eax
lea eax, [r14 + 0x1c]
lea r8d, [rcx + 1]
add eax, edi
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
lea rcx, [rsp + 0x90]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ecx, ecx
mov edx, 0x2aa
lea r8d, [rcx + 8]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
movzx eax, byte [rsp + 0x70]
lea rcx, [0x1400ed4d4]
add al, 0x42
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1400ed3f4]
mov r9, r14
mov r8d, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rax, str.c5ret
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret