Function at 0x140085f80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], 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
movsxd r15, dword [rsp + 0x280]
movzx ebp, byte [rsp + 0x288]
movzx r13d, cl
mov rbx, r8
mov r14d, r13d
mov byte [rsp + 0x62], bpl
mov qword [rsp + 0xa8], rbx
cmp r15d, r13d
jge 0x140086190
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov edx, 0x1db
lea r8d, [rcx + 0x14]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
sub r12d, eax
mov rdi, rax
mov qword [rsp + 0x98], rax
lea ecx, [r13 + r12]
mov al, 7
mov dword [rsp + 0x64], ecx
imul cl
movsx rsi, al
mov byte [rsp + 0x60], sil
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rdx, qword [rbx + 0x10]
mov rax, rsi
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x70], rax
nop dword [rax]
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140086030
imul ecx, r14d
imul eax, eax, 7
movzx ebp, bpl
mov esi, ebp
add edi, 2
mov edx, 0x164
add ecx, eax
sub ecx, r15d
add edi, ecx
xor ecx, ecx
imul esi, dword [rsp + 0x98]
lea r8d, [rcx + 0x10]
add esi, r14d
add esi, dword [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, [0x1400ed3b8]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
movsx ebx, byte [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
lea r8, str.monkey
lea rdx, [0x1400ed3b8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], esi
mov r9d, ebx
mov ecx, ebx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_CreateWindowExA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor ecx, ecx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], ebp
lea r8, [0x1400ed3b8]
lea rdx, str.monkey
mov r9d, ebx
mov ecx, r12d
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r9d, dword [rsp + 0x64]
xor ecx, ecx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
movzx eax, r13b
lea r8, str.thong
lea rdx, [0x1400ed3b8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], r12d
mov ecx, ebp
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_CreateWindowExA]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbx, qword [rsp + 0xa8]
movzx eax, byte [rbx + 8]
imul r13b
movzx esi, al
shl sil, 2
add sil, r15b
movsx eax, sil
mov byte [rsp + 0x60], sil
mov dword [rsp + 0x90], eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov dword [rsp + 0x6c], eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea rcx, [rsp + 0x100]
mov edx, 0x104
mov rdi, rax
mov qword [rsp + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov ebp, r13d
imul ebp, ebx
mov qword [rsp + 0x88], rax
add eax, eax
add ebp, eax
lea rcx, [rsp + 0x100]
mov edx, 0x104
add ebp, edi
mov dword [rsp + 0xb0], eax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
mov ecx, r15d
imul ecx, edi
mov edi, r14d
mov edx, 0x328
imul ecx, ebx
sub edi, ecx
xor ecx, ecx
mov dword [rsp + 0x64], eax
lea r8d, [rcx + 0xf]
mov dword [rsp + 0x68], edi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
cmp byte [rsp + 0x62], r15b
ja 0x140086368
mov r9, qword [rsp + 0x70]
movsxd r10, dword [rsp + 0x64]
mov rax, qword [rsp + 0x88]
movsx r8, r10b
mov ecx, r13d
mov edx, r14d
lea esi, [rbp - 5]
imul ecx, ebx
add ecx, ecx
sub edx, ecx
mov ecx, r9d
sub edx, r15d
sub edx, r9d
sub edx, edi
lea edi, [r14 + 4]
imul ecx, ebp
sub edx, r8d
add edx, eax
add esi, edx
xor edx, edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
imul eax, ebx
sub eax, ecx
mov ecx, r9d
lea ebx, [r8 - 7]
lea edi, [rax + rdi*4]
mov eax, r15d
lea r8, str.monkey
lea rdx, str.emergence
mov r9d, r15d
imul eax, dword [rsp + 0x90]
add edi, eax
mov eax, r15d
sub edi, dword [rsp + 0x80]
add edi, r13d
imul eax, dword [rsp + 0xa0]
add eax, eax
sub ecx, eax
movsx rax, byte [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x6c]
add ecx, ecx
sub ecx, r12d
add ecx, r14d
add ebx, ecx
movsx ecx, r10b
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ebp
mov ecx, ebp
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rsp + 0x30], rax
lea rax, str.tooth
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov r9d, edi
mov r8d, 0x20
mov edx, esi
mov dword [rsp + 0x20], ebx
call fcn.1400da770
movzx esi, byte [rsp + 0x60]
mov edi, dword [rsp + 0x68]
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x88]
movzx eax, dil
imul bpl
movsx rdi, byte [rsp + 0x64]
movzx ecx, al
movzx eax, r8b
mov edx, r12d
imul cl
movzx ecx, al
movzx eax, sil
shl cl, 4
imul edx, r8d
imul byte [rsp + 0x62]
movzx ebx, al
mov rax, qword [rsp + 0xa8]
sub bl, cl
movzx ecx, byte [rax + 0x20]
movzx eax, cl
add al, al
add cl, al
movsx eax, sil
add cl, cl
sub bl, cl
mov rcx, qword [rsp + 0xa0]
sub bl, al
mov eax, r13d
sub bl, r15b
sub bl, r9b
sub bl, cl
add bl, 2
imul eax, ecx
mov ecx, dword [rsp + 0x70]
add bl, byte [rsp + 0x6c]
sub edx, eax
lea eax, [r14 + rdx]
add bl, r14b
imul ecx, r9d
add ecx, eax
lea eax, [rdi + 2]
add ecx, dword [rsp + 0x68]
add eax, ecx
mov dword [rsp + 0x64], eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
movzx r10d, byte [rsp + 0x62]
mov r9, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x6c]
movsx rcx, bl
mov qword [rsp + 0xc8], rcx
lea ecx, [rcx*4]
movsx r11d, sil
lea eax, [r8 + 0x2d]
mov edx, r14d
mov dword [rsp + 0x78], r10d
sub edx, ecx
sub edx, r11d
sub edx, r10d
sub edx, r9d
sub edx, dword [rsp + 0x68]
sub edx, r11d
add edx, dword [rsp + 0x70]
add edx, r13d
add edx, ebp
add eax, edx
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax + 8]
imul r10b
movzx edx, al
movzx eax, bl
mov ebx, dword [rsp + 0x68]
imul byte [rsp + 0x64]
movzx ecx, al
mov al, 7
imul cl
movzx ecx, bl
sub dl, al
shl cl, 4
add dl, cl
sub dl, byte [rsp + 0x98]
xor ecx, ecx
sub r8b, 8
mov qword [rsp + 0x58], rcx
sub dl, r13b
mov qword [rsp + 0x50], rcx
sub dl, byte [rsp + 0x80]
mov qword [rsp + 0x48], rcx
mov eax, r11d
sub dl, r9b
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r11d
add dl, r8b
lea r9d, [rcx + 4]
mov dword [rsp + 0x30], 4
add dl, r11b
lea r8, [0x1400ed3b8]
mov ecx, ebp
add dl, r14b
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
add dl, byte [rsp + 0xa0]
mov byte [rsp + 0x61], dl
lea rdx, str.monkey
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, dword [rsp + 0x98]
mov qword [rsp + 0xb8], rax
movsx rax, sil
mov rsi, qword [rsp + 0xa0]
imul edx, dword [rsp + 0x64]
mov ecx, eax
mov qword [rsp + 0xc0], rax
imul ecx, dword [rsp + 0x78]
imul r8d, ecx, 0xfffffffa
mov ecx, ebx
shl ecx, 4
sub r8d, edx
lea edx, [r13 + 2]
sub r8d, ecx
sub r8d, esi
sub r8d, ebp
sub r8d, edi
mov rdi, qword [rsp + 0x70]
add r8d, r14d
add r8d, edi
add edx, r8d
mov dword [rsp + 0x68], edx
cmp byte [rsp + 0x62], bl
je 0x14008659b
lea rcx, str.c8a4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [rsp + 0x68]
imul r12d, dword [rsp + 0x80]
mov rax, qword [rsp + 0xa8]
imul r13d, dword [rsp + 0x90]
mov eax, dword [rax + 0x28]
imul eax, dword [rsp + 0xc0]
imul eax, r15d
imul eax, dword [rsp + 0x78]
sub r12d, eax
imul eax, dword [rsp + 0x98], 7
lea ecx, [r12*4]
add ecx, r13d
sub ecx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
movzx eax, byte [rsp + 0x61]
sub ecx, eax
mov eax, dword [rsp + 0x6c]
sub ecx, dword [rsp + 0x88]
add eax, 0xffffffea
sub ecx, edi
sub ecx, esi
sub ecx, ebp
add ecx, dword [rsp + 0xc8]
add ecx, dword [rsp + 0xb0]
add ecx, dword [rsp + 0xb8]
add ecx, dword [rsp + 0x64]
add ecx, r14d
add ecx, ebx
add eax, ecx
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400dd340
mov rbx, qword [rsp + 0x268]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret