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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r14, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [rbp + 0x50], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x58], rax
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], sil
jne 0x140006040
mov dword [rbp + 0x68], ecx
mov qword [rbp + 0x70], rsi
mov rax, rdi
inc rax
cmp byte [rbx + rax], sil
jne 0x140006053
mov dword [rbp + 0x78], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x80], rax
mov rax, rdi
inc rax
cmp byte [rbx + rax], sil
jne 0x140006076
mov dword [rbp + 0x90], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
movaps xmm0, xmmword [rbp + 0x50]
movaps xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp], xmm0
movaps xmm0, xmmword [rbp + 0x70]
mov qword [rbp + 0x98], rax
lea r9, [rbp]
mov rdx, r14
movaps xmmword [rbp + 0x20], xmm0
movaps xmm0, xmmword [rbp + 0x90]
movaps xmmword [rbp + 0x10], xmm1
movaps xmm1, xmmword [rbp + 0x80]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm1
call fcn.14000fef0
mov rsi, rax
mov rax, rdi
inc rax
cmp byte [rbx + rax], 0
jne 0x1400060d2
imul r13d, eax, 0x7e
mov rax, rdi
inc rax
cmp byte [rsi + rax], 0
jne 0x1400060e2
lea rcx, [rbp + 0xa0]
xor edx, edx
mov r8d, 0x140
add r13d, eax
call fcn.1400e27d0
lea rdx, [rbp + 0xa0]
lea rcx, str.objective
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, r13d
mov rdx, rax
mov r12, rax
call fcn.140015510
xor ecx, ecx
mov edx, 0x270
lea r8d, [rcx + 0x1c]
mov r15d, eax
mov dword [rsp + 0x64], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rdi
mov qword [rsp + 0x68], rax
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140006144
movzx eax, r15b
imul cl
movzx ecx, al
movzx eax, r12b
imul cl
mov rcx, rdi
lea r15d, [rax - 0xe]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140006163
lea rax, [0x1400ed4d4]
add r15b, cl
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], rax
mov rax, rdi
mov byte [rsp + 0x60], r15b
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140006190
imul eax, dword [rbp + 0x80]
imul eax, r14d
imul ecx, eax, 7
mov rax, rdi
nop word [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x1400061b0
imul eax, r12d
mov edx, 0x2c3
imul eax, dword [rsp + 0x64]
add eax, 2
add eax, ecx
xor ecx, ecx
lea r8d, [rcx + 7]
mov dword [rbp - 0x30], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, qword [rsp + 0x68]
lea r9, [rbp - 0x80]
movups xmm0, xmmword [rbp - 0x40]
mov qword [rbp - 0x28], rax
movzx r8d, r15b
mov rdx, r14
movaps xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x20], r12
movups xmm1, xmmword [rbp - 0x30]
movaps xmmword [rbp - 0x70], xmm1
call fcn.14000c750
mov ecx, 0xffff
movsx r15d, al
lea rax, str.pine
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorCount]
mov r14, rdi
mov dword [rbp - 0x70], eax
lea rax, str.c0a0
mov qword [rbp - 0x68], rax
mov eax, r15d
mov dword [rbp - 0x50], eax
nop
inc r14
cmp byte [rbx + r14], 0
jne 0x140006240
mov rcx, qword [rsp + 0x68]
mov edx, 0x185
mov qword [rbp + 8], rcx
imul eax, ecx
add eax, 0xfffffffe
xor ecx, ecx
add eax, r12d
lea r8d, [rcx + 0x10]
add eax, r13d
add r14d, eax
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x58], rax
lea rax, str.intervenor
mov dword [rbp - 0x60], r14d
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
movsx r8, r15b
mov qword [rbp - 0x10], r8
mov rcx, rdi
mov qword [rbp + 0x10], rax
nop word [rax + rax]
cmp byte [rbx + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400062a0
mov r15, qword [rsp + 0x70]
mov eax, 1
sub eax, r13d
imul eax, r12d
lea edx, [rax + rcx*4]
mov rax, rdi
sub edx, r8d
sub edx, r15d
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x1400062d0
sub edx, eax
add edx, 7
mov dword [rbp + 0x18], edx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rbp + 0x28], r15
mov qword [rbp + 0x20], rax
mov rax, rdi
mov qword [rbp + 0x30], 0
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140006300
mov r8, qword [rbp - 0x10]
movzx ecx, byte [rsp + 0x60]
imul eax, eax, 7
sub eax, r8d
add ecx, 0xfffffffe
mov rdx, rdi
sub eax, r12d
sub eax, r15d
add eax, r13d
add ecx, eax
mov dword [rbp + 0x38], ecx
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140006330
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x140006340
movaps xmm0, xmmword [rbp]
movaps xmm1, xmmword [rbp + 0x10]
mov ecx, r8d
sub ecx, dword [rsp + 0x68]
add eax, r13d
sub ecx, r12d
add eax, edx
lea rdx, [rbp + 0x50]
movaps xmmword [rbp + 0x50], xmm0
movaps xmm0, xmmword [rbp + 0x20]
movaps xmmword [rbp + 0x60], xmm1
add ecx, 0xffffffee
add ecx, r15d
add eax, ecx
lea rcx, [rbp - 0x40]
mov r8d, eax
mov dword [rsp + 0x70], eax
movaps xmm1, xmmword [rbp + 0x30]
movaps xmmword [rbp + 0x70], xmm0
movups xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp + 0x80], xmm1
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x70]
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm1
call fcn.1400157e0
lea rcx, str.c0a4
mov qword [rbp - 0x40], rcx
mov rcx, rdi
mov qword [rbp - 0x38], rax
inc rcx
cmp byte [rsi + rcx], 0
jne 0x1400063c1
imul ecx, r13d
sub ecx, r12d
add ecx, eax
mov rax, rdi
add ecx, r14d
mov r14, qword [rsp + 0x68]
add ecx, r14d
inc rax
cmp byte [rbx + rax], 0
jne 0x1400063e1
add eax, 0xfffffff0
add eax, ecx
mov dword [rbp - 0x30], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
movzx r9d, byte [rsp + 0x60]
mov qword [rbp - 0x28], rax
xor eax, eax
lea r8, [0x140001b00]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbx
mov qword [rbp - 0x20], rax
lea rax, str.coil
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
mov r14d, dword [rbp - 0x50]
movzx eax, ax
mov ecx, r14d
mov dword [rbp - 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x68], rax
nop dword [rax + rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x140006470
movups xmm0, xmmword [rbp - 0x80]
movups xmm1, xmmword [rbp - 0x70]
mov ebx, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x68]
sub r12d, r13d
lea r9, [rbp]
lea eax, [rbx - 7]
lea r8, [rbp - 0x80]
lea rcx, str.piracy
movaps xmmword [rbp], xmm0
movaps xmmword [rbp + 0x10], xmm1
movups xmm1, xmmword [rbp - 0x30]
add eax, r12d
add edi, eax
mov dword [rbp - 0x58], edi
movaps xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp - 0x60], xmm0
call fcn.1400174f0
mov r9d, dword [rsp + 0x70]
xor eax, eax
lea r8, str.pajamas
mov rdx, rsi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x10]
mov ecx, r13d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, rax
call fcn.140016090
lea rax, str.c4a0
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400dd340
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret