Function at 0x1400316a0
Capabilities:
Create thread
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, qword [rbp + 0x200]
mov rdi, rcx
lea rcx, str.egypt
mov qword [rbp - 0x80], r9
mov r12, r8
mov rbx, rdx
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x70], rdx
call fcn.14007a6e0
mov r14d, eax
mov dword [rsp + 0x68], eax
call fcn.14008d6a0
mov dword [rsp + 0x60], eax
cmp r14d, eax
jne 0x14003171f
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x1400ed4d4]
mov rcx, rax
call fcn.140097660
or r15, 0xffffffffffffffff
mov r13, r15
inc r13
cmp byte [r12 + r13], 0
jne 0x140031726
mov rax, r15
inc rax
cmp byte [rdi + rax], 0
jne 0x140031733
imul r13d, eax
lea rax, str.mustard
lea r9, [0x1400ed4fc]
mov qword [rsp + 0x30], rax
imul r13d, ebx
lea rbx, [0x1400ed3b4]
lea rax, str.cupola
sub r13d, 5
lea r8, str.pine
mov qword [rsp + 0x28], rax
mov ecx, r13d
mov rdx, rbx
mov qword [rsp + 0x20], rbx
call fcn.1400b86d0
mov rcx, r15
mov byte [rsp + 0x64], al
nop dword [rax]
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140031790
mov rax, r15
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x1400317a0
imul cl
movzx ecx, al
shl cl, 2
lea r14d, [rcx + rax]
movzx ecx, byte [rsp + 0x60]
shl cl, 2
sub r14b, cl
movzx ecx, r14b
call fcn.1400b7fe0
movsxd rax, dword [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov ecx, dword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov rdx, rbx
mov ebx, dword [rsp + 0x60]
lea r8, str.pine
mov r9d, eax
mov ecx, ebx
mov rsi, rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
xor ecx, ecx
lea r8, str.mustard
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x78], rax
movzx eax, r14b
mov dword [rsp + 0x30], ebx
lea rdx, str.cupola
mov r9d, ebx
mov ecx, r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x6c], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rbp - 0x68], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rsi, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r14, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x68]
lea rcx, [0x1400ed878]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x78]
mov r9, r14
mov r8, rsi
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x20], rax
call fcn.14008fc70
mov dword [rsp + 0x60], eax
call fcn.14008d6a0
mov rdx, qword [rbp - 0x60]
mov esi, eax
mov rcx, r15
nop word [rax + rax]
inc rcx
cmp byte [rdx + rcx], 0
jne 0x1400318c0
mov rax, r15
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x1400318d0
mov r8, qword [rbp - 0x80]
mov edx, dword [rsp + 0x68]
mov r9d, dword [rsp + 0x60]
imul ecx, eax
imul ecx, r8d
mov eax, r14d
mov qword [rbp - 0x48], 0
imul eax, dword [rsp + 0x70]
lea eax, [rax + rax*2]
add ecx, eax
lea eax, [rdx + rdx]
sub ecx, eax
mov rax, r15
sub ecx, esi
sub ecx, r9d
mov dword [rbp - 0x50], ecx
inc rax
cmp byte [r12 + rax], 0
jne 0x140031912
sub sil, dl
add sil, r9b
add sil, bl
add sil, r8b
add sil, byte [rbp - 0x78]
add sil, byte [rsp + 0x78]
sub sil, al
mov rax, r15
sub sil, 9
nop dword [rax + rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140031940
add sil, al
lea rax, str.c3a2
mov rdx, r15
mov qword [rbp], rax
lea eax, [rbx + rbx*4]
mov dword [rbp - 0x70], eax
inc rdx
cmp byte [r12 + rdx], 0
jne 0x140031960
mov r8, r15
nop dword [rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x140031970
add edx, eax
lea eax, [r14*2 - 4]
xor ecx, ecx
add edx, r8d
sub eax, r9d
lea r8d, [rcx + 0x14]
add eax, edx
mov edx, 0x152
mov dword [rbp + 8], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, [rbp + 0x40]
xor edx, edx
mov r8d, 0x140
mov qword [rbp + 0x10], rax
call fcn.1400e27d0
lea rdx, [rbp + 0x40]
lea rcx, str.cupola
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdx, r15
mov qword [rbp + 0x18], rax
lea rax, [0x1400ed4fc]
mov qword [rbp + 0x20], rax
nop dword [rax + rax]
inc rdx
cmp byte [r12 + rdx], 0
jne 0x1400319e0
mov rcx, r15
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400319f0
mov eax, dword [rbp - 0x78]
add edx, dword [rsp + 0x6c]
add edx, ecx
mov rcx, qword [rsp + 0x70]
imul eax, dword [rsp + 0x60]
sub eax, dword [rbp - 0x80]
add ecx, 0xd
sub eax, ebx
sub eax, dword [rsp + 0x68]
add eax, edx
add eax, dword [rbp - 0x68]
add eax, ecx
mov dword [rbp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rbp + 0x30], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, 0x18
lea r8d, [rdx - 1]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x50]
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
mov r9, rbx
movzx edx, sil
mov qword [rbp - 0x80], rax
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rbp + 0x20]
movsd xmm1, qword [rbp + 0x30]
mov qword [rsp + 0x20], rax
movaps xmmword [rbp - 0x20], xmm0
movaps xmm0, xmmword [rbp - 0x50]
movsd qword [rbp - 0x10], xmm1
movdqa xmmword [rbp - 0x50], xmm0
call fcn.140093f70
lea rcx, [rbp + 0x40]
mov edx, 0x104
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
lea rcx, [rbp + 0x40]
mov edx, 0x104
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov rdx, r15
mov qword [rbp - 0x38], rax
nop word [rax + rax]
inc rdx
cmp byte [r12 + rdx], 0
jne 0x140031ac0
movsx rax, byte [rsp + 0x64]
mov esi, dword [rsp + 0x60]
imul edx, r13d
mov r13, qword [rbp - 0x80]
lea ecx, [rax + rax*2]
mov rax, r15
shl ecx, 2
sub r14d, ecx
sub r14d, edx
sub r14d, dword [rsp + 0x6c]
sub r14d, r13d
sub r14d, dword [rsp + 0x78]
sub r14d, dword [rbp - 0x78]
sub r14d, dword [rsp + 0x70]
sub r14d, esi
inc rax
cmp byte [rdi + rax], 0
jne 0x140031b04
mov r9d, dword [rsp + 0x68]
add eax, 0xfffffff9
lea r8, [0x140001b00]
add eax, r14d
xor edx, edx
xor ecx, ecx
mov dword [rbp - 0x30], eax
xor eax, eax
mov dword [rbp - 0x2c], 0x40
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov edx, 0x109
mov qword [rbp - 0x28], rax
lea r8d, [rcx + 0x12]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x14e
lea r8d, [rcx + 0xe]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], 4
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, r15
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x60]
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x140031b80
mov rax, r15
nop dword [rax]
inc rax
cmp byte [r12 + rax], 0
jne 0x140031b90
mov r14, qword [rsp + 0x78]
imul ecx, eax
mov eax, r14d
imul eax, dword [rsp + 0x70]
sub ecx, eax
mov rax, r15
sub ecx, dword [rbp + 0x30]
sub ecx, dword [rbp - 0x70]
inc rax
cmp byte [rdi + rax], 0
jne 0x140031bb5
add ecx, 4
inc r15
cmp byte [rbx + r15], 0
jne 0x140031bc1
add ecx, esi
add eax, ecx
add eax, r15d
mov dword [rbp - 8], eax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [rbp - 4], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, qword [rbp - 0x68]
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
mov qword [rsp + 0x30], rcx
lea rdx, [rbp]
mov r9, r13
movaps xmmword [rbp], xmm0
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x10], xmm1
mov r8, rbx
mov qword [rsp + 0x28], rax
movaps xmm1, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x30], xmm1
call fcn.1400d1650
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rsi, rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea rdx, str.file
mov qword [rsp + 0x30], rax
mov r9, r13
mov r8, r14
mov rcx, rsi
mov byte [rsp + 0x28], bl
mov qword [rsp + 0x20], rdi
call fcn.1400c24e0
lea rax, str.c3a1
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret