Function at 0x140008af0
Capabilities:
Copy file
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 - 0x268]
sub rsp, 0x368
movaps xmmword [rsp + 0x350], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov esi, dword [rbp + 0x2d8]
mov qword [rbp + 0xa0], rcx
movsx ebx, r8b
mov eax, edx
mov ecx, edx
lea r15, [0x1400ed3b8]
sub eax, esi
xor r13d, r13d
mov edi, r9d
add eax, 8
mov dword [rsp + 0x68], r9d
mov byte [rsp + 0x61], bl
mov dword [rbp + 0xb0], eax
lea eax, [r9 + r9*2]
mov r12, rdx
add eax, eax
mov dword [rbp - 0x70], esi
mov qword [rbp + 0xb8], r15
sub ecx, eax
mov qword [rbp + 0xc0], rdx
mov r14d, ebx
sub ecx, ebx
mov dword [rbp - 0x78], ebx
mov qword [rbp + 0xd0], r13
add ecx, esi
mov dword [rsp + 0x6c], ecx
mov dword [rbp + 0xc8], ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rbp + 0xe0], r15
mov qword [rbp + 0xe8], r15
mov dword [rbp + 0xd8], eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea r15d, [rsi + 6]
mov qword [rbp + 0xf0], rax
lea eax, [rbx + r12]
add r15d, eax
mov dword [rsp + 0x64], r15d
call qword [sym.imp.USER32.dll_GetActiveWindow]
movzx ecx, sil
mov qword [rbp + 0x20], rax
lea rax, str.platinum
add cl, cl
mov qword [rbp + 0x28], rax
lea edx, [rcx + rsi]
movzx eax, bl
movups xmm0, xmmword [rbp + 0x20]
add dl, dl
mov qword [rsp + 0x30], r12
mov qword [rbp + 0x30], r13
imul dil
movaps xmmword [rbp], xmm0
movaps xmm0, xmmword [rbp + 0xb0]
movsd xmm1, qword [rbp + 0x30]
movsd qword [rbp + 0x10], xmm1
movzx r14d, al
mov byte [rsp + 0x60], dl
movaps xmm1, xmmword [rbp + 0xc0]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm0, xmmword [rbp + 0xd0]
sub r14b, dl
lea rax, [rbp]
lea r8d, [r13 + 0x40]
movaps xmmword [rbp - 0x40], xmm1
movaps xmm1, xmmword [rbp + 0xe0]
movaps xmmword [rbp - 0x30], xmm0
sub r14b, 8
lea rdx, [rbp - 0x50]
lea rcx, str.management
movsd xmm0, qword [rbp + 0xf0]
movsd qword [rbp - 0x10], xmm0
add r14b, r12b
mov r9d, r15d
movaps xmmword [rbp - 0x20], xmm1
mov byte [rsp + 0x28], r14b
mov byte [rsp + 0x62], r14b
mov qword [rsp + 0x20], rax
call fcn.14000a600
or r15, 0xffffffffffffffff
mov rdi, rax
cmp r14b, 8
jne 0x140008d40
mov al, 0x3c
lea r8d, [r15 + 0x12]
mov edx, 0x2fa
xor ecx, ecx
imul sil
lea r13d, [rax + 0x40]
add r13b, byte [rsp + 0x68]
add r13b, r12b
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, r15
mov qword [rbp - 0x60], rax
nop dword [rax]
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140008cc0
movzx eax, byte [rsp + 0x68]
imul byte [rsp + 0x60]
lea ecx, [rax + 1]
movzx eax, r12b
imul cl
sub al, dl
mov rdx, r15
sub al, 0x4a
mov byte [rsp + 0x63], al
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140008ce6
movzx eax, bl
shl al, 2
lea ecx, [rax + rbx]
movzx ebx, byte [rsp + 0x64]
shl cl, 4
sub bl, cl
add bl, r12b
sub bl, dl
sub bl, 0x40
call qword [sym.imp.USER32.dll_GetActiveWindow]
movzx r9d, byte [rsp + 0x63]
lea edx, [r12 + rsi]
mov r8, r12
movzx ecx, r13b
add edx, dword [rsp + 0x64]
mov dword [rsp + 0x30], edx
mov rdx, qword [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], bl
call fcn.14000a340
call fcn.14000c1a0
movzx eax, byte [rbp + 0x20]
mov ebx, dword [rsp + 0x68]
lea rdx, str.latency
imul byte [rsp + 0x60]
movzx ecx, al
movzx eax, r14b
imul cl
movzx r13d, al
shl r13b, 2
add r13b, r12b
add r13b, r13b
sub r13b, bl
movzx ecx, r13b
call fcn.140013de0
mov ecx, r12d
movzx r8d, r13b
mov rdx, rax
mov qword [rbp - 0x80], rax
movzx eax, r14b
imul ecx, ebx
add ecx, 0xffffffbf
mov dword [rsp + 0x70], eax
add ecx, eax
add ecx, edx
mov dword [rbp], ecx
mov rcx, r15
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140008da0
mov eax, esi
imul eax, dword [rsp + 0x64]
imul eax, dword [rsp + 0x6c]
shl eax, 9
sub eax, r8d
sub eax, edx
mov edx, 0x170
add ecx, eax
mov dword [rbp + 4], ecx
xor ecx, ecx
lea r8d, [rcx + 0xb]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, r15
mov qword [rbp + 8], rax
nop word [rax + rax]
inc r14
cmp byte [rdi + r14], 0
jne 0x140008de0
imul eax, dword [rbp - 0x80], 7
mov ecx, 1
sub ecx, dword [rsp + 0x70]
imul ecx, r12d
add ecx, eax
mov eax, dword [rsp + 0x64]
shl eax, 6
add ecx, eax
movzx eax, r13b
sub ecx, esi
add eax, ecx
add r14d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, r12d
movaps xmm0, xmmword [rbp]
mov edx, eax
mov dword [rbp - 0x68], eax
movdqa xmmword [rbp + 0x80], xmm0
imul ecx, ebx
lea eax, [rcx*8 - 0x40]
lea rcx, [rbp + 0x80]
mov r9d, r14d
sub eax, dword [rsp + 0x70]
xor r8d, r8d
sub eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov dl, 1
mov dword [rsp + 0x78], eax
call fcn.140009580
mov dword [rsp + 0x74], eax
cmp ebx, 8
ja 0x140008f35
lea rcx, [rbp + 0x100]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rbp + 0x100]
lea rcx, str.management
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
movzx ecx, r12b
mov edx, 0x24e
mov rsi, rax
movzx eax, byte [rsp + 0x74]
shl cl, 2
lea ebx, [rcx + r12]
xor ecx, ecx
mov dword [rbp + 0x40], 2
imul r14b
sub bl, al
mov al, 7
lea r8d, [rcx + 2]
imul r13b
sub bl, al
add bl, byte [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [rbp + 0x58], 0x10
mov qword [rbp + 0x48], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0x50], rax
lea rax, str.c0ret
mov qword [rbp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r9b, 0x40
movups xmm0, xmmword [rbp + 0x40]
movups xmm1, xmmword [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
xor r8d, r8d
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x40], xmm1
movsd xmm0, qword [rbp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, str.c0a0
movsd qword [rbp - 0x30], xmm0
movzx edx, bl
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140009e50
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.14000b450
movzx edx, byte [rsp + 0x61]
mov ebx, eax
movzx ecx, dl
movzx eax, r12b
add cl, cl
add dl, cl
add dl, dl
inc dl
imul dl
movzx esi, al
movzx eax, byte [rbp + 0x20]
imul byte [rsp + 0x64]
movzx ecx, al
movzx eax, byte [rsp + 0x62]
imul cl
shl al, 6
add sil, al
movzx eax, byte [rbp - 0x70]
imul byte [rbp + 0xb0]
add sil, al
sub sil, byte [rsp + 0x78]
sub sil, r13b
sub sil, 7
add sil, byte [rsp + 0x74]
add sil, byte [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rcx, rdi
mov qword [rbp - 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, r15
mov qword [rbp - 0x50], rax
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140008fc2
mov eax, dword [rbp - 0x78]
mov edi, dword [rbp - 0x70]
mov r9d, dword [rsp + 0x68]
imul eax, edi
movsxd r8, dword [rbp - 0x68]
lea ecx, [rax + rax*4]
mov eax, dword [rsp + 0x70]
imul eax, dword [rbp + 0x20]
add ecx, ecx
sub ecx, edx
lea rdx, str.cattle
imul ecx, r12d
sub ecx, eax
mov eax, dword [rsp + 0x64]
add eax, 0xffffffb9
add eax, ecx
xor ecx, ecx
mov dword [rbp - 0x48], eax
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
xor ecx, ecx
mov dword [rbp - 0x44], eax
lea rax, str.c0ret
lea r8d, [rcx + 0xd]
mov edx, 0x197
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, edi
mov dword [rbp - 0x28], 0
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rbp - 0x58]
movups xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rbp - 0x40]
mov qword [rbp - 0x20], rax
lea r8, [rbp + 0x40]
movzx ecx, sil
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x50], xmm1
movups xmm0, xmmword [rbp - 0x30]
movsd xmm1, qword [rbp - 0x20]
movaps xmmword [rbp + 0x60], xmm0
movsd qword [rbp + 0x70], xmm1
call fcn.140012d80
xor ecx, ecx
mov edx, 0xdf
lea r8d, [rcx + 0xc]
mov byte [rsp + 0x60], al
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rdx, str.c3a1
mov rcx, rax
mov qword [rbp + 0x98], rax
call fcn.14000dd10
mov dword [rsp + 0x6c], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov qword [rbp + 0x90], rax
call fcn.140016090
mov qword [rbp - 0x70], rax
call fcn.140009320
lea rdx, str.economics
xor ecx, ecx
mov qword [rbp - 0x60], rax
call fcn.140013de0
mov qword [rbp + 0x80], rax
mov rax, qword [rbp - 0x60]
nop word [rax + rax]
inc r15
cmp byte [rax + r15], 0
jne 0x1400090f0
movzx eax, byte [rsp + 0x6c]
imul byte [rbp - 0x58]
movzx ecx, al
movzx eax, byte [rbp - 0x70]
imul cl
movzx ecx, al
movzx eax, byte [rbp + 0x98]
imul cl
movzx ecx, al
movzx eax, byte [rsp + 0x60]
imul cl
movzx ecx, byte [rsp + 0x68]
shl cl, 3
sub cl, al
movzx eax, byte [rbp - 0x80]
imul byte [rbp]
sub cl, al
movzx eax, byte [rsp + 0x74]
imul byte [rsp + 0x78]
sub cl, al
sub cl, 0x42
add cl, r14b
add cl, r13b
add r15b, cl
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [rdi + rdi*2]
mov rdi, qword [rbp + 0x90]
mov qword [rbp - 0x50], rax
mov eax, dword [rsp + 0x74]
imul eax, dword [rsp + 0x78]
add ecx, ecx
mov edx, 0x1a1
sub ecx, eax
mov eax, dword [rbp + 8]
mov dword [rbp - 0x48], 8
imul ecx, r12d
imul eax, dword [rbp - 0x68]
imul eax, dword [rbp - 0x80]
sub ecx, eax
movsx eax, sil
imul eax, ebx
sub ecx, eax
movsx rax, byte [rsp + 0x60]
sub ecx, eax
mov eax, dword [rsp + 0x64]
sub ecx, edi
add eax, 0xffffffc0
sub ecx, dword [rsp + 0x6c]
sub ecx, dword [rbp - 0x58]
add eax, ecx
xor ecx, ecx
mov dword [rbp - 0x44], eax
lea rax, str.c0ret
lea r8d, [rcx + 0xb]
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
lea r8d, [rcx + 5]
mov edx, 0x363
mov qword [rbp - 0x38], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, qword [rbp - 0x70]
mov dword [rbp - 0x28], 0x40
movups xmm0, xmmword [rbp - 0x40]
movups xmm6, xmmword [rbp - 0x50]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], rsi
lea r8, [rbp + 0x40]
movaps xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rbp - 0x30]
movsd xmm0, qword [rbp - 0x20]
movups xmmword [rbp + 0x40], xmm6
mov edx, 0x40
movzx ecx, r15b
movaps xmmword [rbp + 0x60], xmm1
movsd qword [rbp + 0x70], xmm0
call fcn.140012d80
movzx eax, r13b
imul eax, dword [rsp + 0x70]
lea eax, [rax + rax*4]
add eax, eax
movd edx, xmm6
imul esi, edi
xor ecx, ecx
sub edx, eax
movsx eax, r15b
mov r15, qword [rbp + 0xa0]
shl edx, 6
imul eax, dword [rbp + 0x80]
sub edx, eax
lea eax, [r12 + rdx]
mov rdx, r15
add esi, eax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rbp - 0x60]
lea rcx, str.economics
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r9d, dword [rsp + 0x68]
mov ecx, dword [rbp - 0x78]
mov ebx, eax
xor eax, eax
mov r10d, r14d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x6c]
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x30], 0x40
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x58]
lea r8, str.management
lea rdx, str.c3a1
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea edx, [rsi - 0xf]
mov r9d, edi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], ebx
call fcn.14001a5d0
lea rax, str.c8a1
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400dd340
movaps xmm6, xmmword [rsp + 0x350]
add rsp, 0x368
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret