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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x128]
sub rsp, 0x228
mov r15, rcx
call fcn.140082ed0
mov r14, rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea rcx, str.atelier
mov qword [rsp + 0x28], rax
mov rbx, rax
mov qword [rbp - 0x58], rax
lea rax, str.snakebite
mov r8d, r14d
mov edx, r14d
mov qword [rsp + 0x20], rax
call fcn.1400d6650
xor r12d, r12d
mov rsi, rax
mov qword [rbp - 0x38], rax
lea eax, [rbx + rbx*8]
mov dword [rsp + 0x60], eax
lea ecx, [r14 + r14]
lea r8, [0x140001b00]
sub ecx, eax
lea eax, [rsi + 0xf]
mov r9d, r14d
add eax, ecx
xor edx, edx
xor ecx, ecx
mov dword [rbp + 0x20], eax
mov eax, 9
mov qword [rsp + 0x28], r12
sub eax, r14d
mov dword [rbp + 0x10], r12d
mov qword [rbp + 0x18], r12
mov dword [rbp - 0x30], eax
mov dword [rbp + 0x24], eax
mov eax, r14d
mov qword [rbp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov qword [rbp + 0x170], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdi, rax
mov qword [rbp + 0x40], rax
mov dword [rbp - 0x80], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [rbp - 0x70], r12d
mov qword [rbp - 0x78], rax
lea eax, [rbx*8]
mov ebx, eax
mov dword [rbp - 0x24], eax
imul ebx, r14d
add ebx, esi
mov dword [rbp + 0x178], ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea r9, str.collar
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rbp - 0x80]
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0xb0]
lea rdx, str.c1a4
movaps xmmword [rbp + 0xb0], xmm0
movsd xmm0, qword [rbp - 0x70]
movups xmmword [rbp + 0xc0], xmm1
movups xmm1, xmmword [rbp + 0x20]
lea rcx, [rbp - 0x20]
mov r13, rax
mov qword [rbp - 0x40], rax
movaps xmmword [rbp - 0x10], xmm1
mov dword [rsp + 0x20], ebx
movsd qword [rbp + 0xd0], xmm0
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x20], xmm0
call fcn.140060960
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorGroupCount]
movzx ecx, ax
mov dword [rbp + 0x50], ecx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rbp + 0x58], rax
lea rax, str.helmet
movups xmm0, xmmword [rbp - 0x80]
mov qword [rbp + 0x60], rax
lea rax, str.co_producer
mov qword [rbp + 0x70], rax
xor r8d, r8d
mov dword [rbp + 0x68], 0x40
psrldq xmm0, 8
mov qword [rbp + 0x78], r8
mov qword [rbp + 0x80], rsi
movd eax, xmm0
imul eax, r13d
lea eax, [rax + rax*2]
lea ecx, [rax*2 + 2]
imul ecx, r14d
add ecx, 7
add ecx, r12d
lea ecx, [rcx + rsi*8]
mov dword [rbp + 0x88], ecx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, r12d
mov rbx, rax
imul eax, r14d, 7
mov dword [rbp + 0x180], eax
sub eax, r12d
sub eax, edi
add eax, 6
add eax, esi
mov dword [rbp - 0x20], eax
lea eax, [r14*2 - 0x10]
mov dword [rbp - 0x1c], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x18], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, 0xffff
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
lea r9, [rbp + 0xb0]
movups xmm0, xmmword [rbp - 0x20]
mov dword [rbp - 8], eax
lea r8, str.c1a3
lea rcx, [rbp + 0xe0]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmm0, xmmword [rbp + 0x50]
movups xmm1, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0xe0], xmm0
movaps xmm0, xmmword [rbp + 0x70]
mov rdx, rbx
movaps xmmword [rbp + 0xc0], xmm1
movaps xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp + 0x100], xmm0
movaps xmmword [rbp + 0xf0], xmm1
movaps xmm1, xmmword [rbp + 0x80]
movaps xmmword [rbp + 0x110], xmm1
call fcn.1400bae70
mov rdi, rax
mov qword [rbp - 0x68], rax
cmp r14d, r12d
jge 0x140050750
xor eax, eax
lea r8, str.c1a3
lea rdx, str.c1a4
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x170]
mov r9d, r14d
mov ecx, r12d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rbp - 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.collar
mov esi, eax
mov dword [rbp + 0x170], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
movzx r8d, sil
mov rsi, qword [rbp - 0x48]
lea rdx, str.soap
mov rcx, rsi
mov qword [rbp - 0x50], rax
call fcn.1400a4770
mov qword [rbp - 0x60], rax
movzx eax, dil
imul byte [rbp - 8]
movzx ecx, al
movzx eax, bl
imul cl
movzx ecx, r14b
add cl, cl
lea edi, [rcx + rax]
sub dil, r12b
sub dil, sil
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x68], rax
call fcn.14009ef40
mov ecx, dword [rbp - 0x60]
imul ecx, dword [rbp - 0x68]
mov rsi, rax
movzx eax, dil
imul ecx, dword [rbp - 8]
mov rdi, qword [rsp + 0x68]
lea r9, str.c2a1
shl ecx, 2
add edi, 0xffffffee
mov edx, 0x10
sub ecx, eax
mov dword [rbp - 0x28], eax
sub ecx, dword [rbp + 0x40]
sub ecx, dword [rbp - 0x58]
add edi, ecx
lea rcx, [rbp + 0xb0]
mov r8d, edi
mov dword [rbp + 0x188], edi
call fcn.1400829b0
lea r8, [0x140001b00]
mov r9d, edi
xor edx, edx
xor ecx, ecx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbp + 0x60], xmm1
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
movups xmmword [rbp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp - 0x68]
lea eax, [rax*4]
mov dword [rbp - 0x2c], eax
or rdi, 0xffffffffffffffff
mov rdx, rdi
inc rdx
cmp byte [rsi + rdx], 0
jne 0x140050423
mov r8, qword [rbp - 0x38]
mov r11, qword [rbp - 0x58]
mov r9d, dword [rbp + 0x178]
mov ecx, eax
mov eax, ebx
mov byte [rsp + 0x20], 0
imul ecx, dword [rbp - 0x20]
imul eax, r8d
sub eax, ecx
mov rcx, qword [rbp - 0x50]
lea ecx, [rax + rcx*8]
mov eax, dword [rsp + 0x60]
sub ecx, dword [rbp + 0x188]
add eax, 0xffffffeb
sub ecx, r13d
mov r13d, dword [rbp + 0x180]
add eax, ecx
mov ecx, dword [rbp - 0x1c]
add edx, eax
inc r13d
add ecx, ecx
sub ecx, dword [rbp + 0x188]
lea rax, str.intestine
mov dword [rbp + 0xa0], edx
imul r13d, r14d
movups xmm0, xmmword [rbp + 0x98]
mov rdx, qword [rbp - 0x40]
mov qword [rbp + 0xa8], rax
movzx eax, byte [rbp + 0x170]
movaps xmmword [rbp + 0xb0], xmm0
movsd xmm1, qword [rbp + 0xa8]
movsd qword [rbp + 0xc0], xmm1
imul eax, dword [rbp - 0x60]
shl eax, 3
shl ecx, 4
sub r13d, eax
mov eax, r8d
sub r13d, dword [rbp - 0x48]
sub r13d, r12d
imul eax, r11d
lea eax, [rax + rax*8]
sub r13d, edx
sub ecx, eax
sub r13d, r11d
sub ecx, dword [rbp + 0x180]
add r13d, dword [rbp + 0x70]
add r13d, dword [rsp + 0x68]
lea eax, [rbx + rcx]
mov rcx, qword [rbp - 0x50]
add eax, dword [rbp - 0x60]
add r13d, r9d
add r9d, 4
add eax, edx
add r13d, r8d
add eax, r9d
mov r8d, r13d
add eax, r14d
mov r9d, eax
mov dword [rbp + 0x180], eax
call fcn.1400a1ec0
mov ecx, dword [rsp + 0x70]
lea r9d, [r14*8]
lea r8d, [rcx*4]
mov r11, rax
mov qword [rbp + 0x90], rax
mov dword [rsp + 0x60], r9d
mov rdx, rdi
mov dword [rbp], r8d
nop dword [rax + rax]
inc rdx
cmp byte [rsi + rdx], 0
jne 0x140050550
imul eax, dword [rbp + 0x180]
mov ecx, dword [rbp - 0x40]
mov r10, qword [rbp - 0x50]
imul ecx, dword [rbp - 0x38]
sub ecx, eax
mov eax, r8d
imul eax, dword [rbp + 0x20]
sub ecx, eax
mov eax, dword [rbp + 0x170]
movzx r8d, al
mov eax, r8d
shl eax, 4
add ecx, eax
lea eax, [r10 + r10]
sub ecx, eax
lea eax, [r9 + rcx]
mov r9, qword [rsp + 0x68]
add edx, eax
mov eax, dword [rbp + 0x188]
add eax, 0x13
add edx, r9d
add eax, edx
mov dword [rbp + 0x188], eax
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400505b0
mov esi, dword [rbp + 0x180]
mov ecx, r8d
mov eax, ebx
shl eax, 6
mov rdx, r11
imul ecx, dword [rbp - 0x48]
imul ecx, r10d
imul ecx, r9d
sub ecx, eax
lea eax, [rsi + 0xd]
sub ecx, dword [rsp + 0x60]
sub ecx, r13d
add eax, ecx
xor ecx, ecx
add edi, eax
add edi, r14d
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, qword [rsp + 0x68]
mov ecx, dword [rbp - 0x28]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp - 0x68]
lea eax, [rax*8 + 0x10]
imul ecx, edx
xor r8d, r8d
sub eax, ecx
mov ecx, dword [rbp + 0x188]
mov dword [rsp + 0x30], r8d
sub eax, esi
mov qword [rsp + 0x78], r8
mov dword [rbp - 0x70], 0x10
movups xmm0, xmmword [rsp + 0x70]
sub eax, dword [rbp - 0x20]
lea r9, str.c2a3
mov r8d, 0x10
movaps xmmword [rbp + 0x10], xmm0
movsd xmm0, qword [rbp - 0x70]
movsd qword [rbp + 0x30], xmm0
sub eax, dword [rbp - 0x40]
mov edx, edi
add eax, dword [rsp + 0x60]
add eax, dword [rbp]
add eax, r12d
add eax, dword [rbp + 0x20]
mov dword [rbp - 0x80], eax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x78], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, str.nonconformist
movups xmm1, xmmword [rbp - 0x80]
mov qword [rsp + 0x20], rax
movaps xmmword [rbp + 0x20], xmm1
call fcn.140078f20
xor ecx, ecx
mov edx, 0x368
lea r8d, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, qword [rbp - 0x60]
mov r8, qword [rbp + 0x90]
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x78], rax
mov eax, dword [rbp + 0x50]
movups xmm0, xmmword [rsp + 0x70]
lea ecx, [rax + rcx*2]
lea eax, [rsi + rsi*8]
mov rsi, qword [rbp - 0x38]
shl ecx, 2
sub ecx, eax
mov eax, dword [rbp + 0x170]
movzx edx, al
sub ecx, edx
sub ecx, r8d
sub ecx, esi
add ecx, dword [rbp - 0x2c]
lea eax, [rcx - 7]
mov rcx, qword [rsp + 0x68]
add eax, r14d
mov qword [rbp - 0x70], rcx
mov dword [rbp - 0x78], eax
movups xmm1, xmmword [rbp - 0x80]
imul edx, ebx
lea r9d, [r14 - 0x14]
imul edx, r12d
movaps xmmword [rbp + 0x10], xmm0
movsd xmm0, qword [rbp - 0x70]
imul edx, dword [rbp - 0x30]
movaps xmmword [rbp + 0x20], xmm1
movsd qword [rbp + 0x30], xmm0
lea eax, [rdx + rdx*2]
mov rdx, r14
add eax, eax
sub edi, eax
lea eax, [r13 - 1]
sub edi, ecx
mov rcx, qword [rbp - 0x50]
shl edi, 4
imul eax, ecx
add edi, eax
lea rcx, [rbp + 0x10]
sub edi, r8d
xor r8d, r8d
sub edi, dword [rbp - 0x24]
add r9d, edi
call fcn.1400bf2c0
mov r13, qword [rbp - 0x40]
movsxd rax, dword [rbp + 0x178]
xor ecx, ecx
lea r8, str.snakebite
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], eax
lea rdx, str.c1a3
mov r9d, r12d
mov ecx, r13d
mov dword [rsp + 0x28], r12d
mov rdi, rax
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea r8, str.atelier
lea rdx, str.question
mov qword [r15], rax
xor eax, eax
mov r9d, r14d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov ecx, r14d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, 0x62
xor ecx, ecx
mov qword [r15 + 8], rax
lea rax, str.c2a3
lea r8d, [rdx - 0x59]
mov qword [r15 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, qword [rbp - 0x68]
mov qword [r15 + 0x20], rdi
mov qword [r15 + 0x18], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [r15 + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 1
imul r12d, r13d
mov qword [r15 + 0x30], rax
lea eax, [r14*8]
add edi, 0x10
sub edx, eax
mov rax, qword [rbp + 0x40]
mov qword [r15 + 0x38], rsi
add eax, ebx
imul edx, r14d
lea ecx, [rax + rax*2]
lea eax, [rdx + rcx*2]
add eax, r12d
sub eax, dword [rbp - 0x10]
sub eax, dword [rbp + 0x178]
sub eax, dword [rbp - 0x58]
add eax, edi
add eax, esi
mov dword [r15 + 0x40], eax
mov rax, r15
add rsp, 0x228
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret