Function at 0x1400ca9a0
Capabilities:
Copy file
Create thread
Extract resource via kernel32 functions
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov rax, qword [rsp + 0x610]
movsxd r13, dword [rsp + 0x618]
mov r15, rcx
lea rcx, [rsp + 0x490]
mov edx, 0x104
movsx rdi, r9b
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x70], r13d
mov r12, r8
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
lea edx, [r12 + r12*4]
lea ebx, [rdi + 0xa]
mov ecx, eax
mov qword [rsp + 0x90], rax
add edx, edx
mov esi, edx
movzx r14d, bl
mov eax, r12d
sub eax, r14d
mov dword [rsp + 0xc0], edx
sub esi, r13d
sub esi, edi
add eax, 9
mov edx, 0x258
mov qword [rsp + 0xa0], rdi
mov dword [rsp + 0x98], r14d
mov dword [rsp + 0x68], esi
imul ecx, esi
add eax, ecx
mov dword [rsp + 0xa8], ecx
xor ecx, ecx
lea r8d, [rcx + 3]
mov dword [rsp + 0x6c], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
movzx ecx, bl
lea r8, [0x1400ed4d4]
mov qword [rsp + 0x88], rax
mov eax, edi
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r14d
lea rdx, str.extreme
mov r9d, esi
mov ecx, r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea rcx, [rsp + 0x100]
xor edx, edx
mov r8d, 0x140
mov qword [rsp + 0x80], rax
call fcn.1400e27d0
lea rdx, [rsp + 0x100]
lea rcx, str.subsidence
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea eax, [rbp*2]
mov dword [rsp + 0x74], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rcx, [rsp + 0x240]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0x240]
lea rcx, [0x1400ed4d4]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r8d, [rdi + 0x12]
mov edx, 0x260
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
mov qword [rsp + 0xd8], rax
lea r8, [0x140001b00]
mov r9, r13
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, r14d
mov rdi, rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r10d, dword [rsp + 0x70]
mov r9, qword [rsp + 0x80]
mov r11, rax
mov qword [rsp + 0xd0], rax
sub al, r12b
mov edx, r12d
sub al, dil
add al, byte [rsp + 0xc8]
imul edx, dword [rsp + 0x90]
movsx r8, al
mov byte [rsp + 0x60], al
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0x10]
mov dword [rsp + 0xbc], edx
imul eax, r10d, 7
imul ecx, dword [rsp + 0xa0]
lea r13d, [rcx + rcx*4]
add r13d, r13d
sub r13d, eax
mov eax, edi
imul eax, ebp
lea ecx, [rax + rax*2]
mov eax, r12d
shl ecx, 4
imul eax, dword [rsp + 0x74]
add r13d, ecx
mov ecx, r9d
sub r13d, edx
sub r13d, r8d
imul eax, r11d
add r13d, r11d
add r13d, r14d
imul eax, edi
imul ecx, ebp
mov edi, dword [rsp + 0x68]
shl eax, 2
mov edx, ecx
mov dword [rsp + 0xb8], ecx
imul edx, r13d
sub edx, eax
mov eax, r10d
imul eax, dword [rsp + 0x64]
imul ecx, eax, 7
mov eax, r14d
imul eax, edi
add edx, ecx
add edx, eax
imul eax, r8d, 0x5a
add edx, eax
lea eax, [rbp + 0x16]
sub edx, r9d
add eax, edx
mov dword [rsp + 0xc4], eax
test edi, edi
jne 0x1400cae42
mov rcx, qword [rsp + 0xc8]
mov eax, r14d
add ecx, ecx
imul eax, dword [rsp + 0x6c]
sub ecx, eax
mov rax, qword [rsp + 0xa0]
sub ecx, r10d
add eax, 0x13
sub ecx, dword [rsp + 0xc0]
sub ecx, r11d
sub ecx, dword [rsp + 0x78]
sub ecx, ebp
sub ecx, edi
add ecx, r12d
add ecx, dword [rsp + 0xbc]
add ecx, r9d
add ecx, r13d
add eax, ecx
lea rcx, str.pannier
mov dword [rsp + 0xe8], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea rcx, [rsp + 0x380]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
lea r8d, [rdi + 0x10]
mov edx, 0x3b9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov eax, dword [rsp + 0x90]
movzx r14d, byte [rsp + 0xe8]
imul eax, edi
sub eax, 4
mov edx, 0x104
lea ecx, [rax + rax*4]
lea eax, [r14 + r14]
sub ecx, eax
sub ecx, dword [rsp + 0x74]
imul eax, r13d, 0x3c
inc eax
imul eax, r12d
lea esi, [rax + rcx*2]
mov rax, qword [rsp + 0x80]
lea rcx, [rsp + 0x380]
sub esi, eax
movzx eax, bl
sub esi, dword [rsp + 0x78]
add esi, dword [rsp + 0xb8]
add esi, eax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea r8d, [rdi + 2]
mov edx, 0x363
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r8d, dword [rsp + 0x64]
lea rdx, str.theoretician
lea rcx, str.whirlpool
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea r8d, [rdi + 0x1c]
mov edx, 0x2e4
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
movsxd rdx, esi
mov rdi, rax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r8, str.theoretician
lea rdx, str.debtor
mov ecx, r14d
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea rcx, [0x1400ed4d4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, qword [rsp + 0xd8]
mov r14d, dword [rsp + 0x98]
mov r9, qword [rsp + 0x80]
mov r10d, dword [rsp + 0x70]
mov r11, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xb0]
movsx ebx, byte [rsp + 0x60]
lea eax, [r13*2]
add eax, r13d
imul ebx, r12d
mov edi, r12d
sub eax, r12d
imul edi, ebp
lea ecx, [rax + rax*2]
mov eax, dword [rsp + 0x88]
imul eax, r9d
sub ecx, eax
mov eax, r14d
imul eax, dword [rsp + 0x6c]
sub ecx, eax
mov eax, r10d
imul eax, dword [rdx + 0x10]
add ecx, eax
lea eax, [rbp*2]
sub ecx, eax
mov eax, dword [rsp + 0x68]
sub ecx, ebx
add eax, 0x3d
sub ecx, r11d
sub ecx, dword [rsp + 0xa0]
add ecx, edi
add ecx, dword [rsp + 0xc4]
add ecx, dword [rsp + 0x78]
add eax, ecx
mov dword [r15], eax
lea rax, str.wetsuit
mov qword [r15 + 8], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, 0x29e
imul esi, dword [rsp + 0xd0]
mov qword [r15 + 0x10], rax
mov rax, qword [rsp + 0x80]
imul esi, dword [rsp + 0x78]
sub ebp, eax
mov eax, dword [rsp + 0x64]
add eax, 0xfffffffe
lea ecx, [rbp*2]
add ecx, ebp
sub ecx, esi
imul eax, r12d
add ecx, eax
mov rax, qword [rsp + 0xb0]
sub ecx, dword [rax + 0xc]
mov eax, dword [rsp + 0x6c]
sub ecx, dword [rsp + 0x70]
add eax, 0xffffffec
sub ecx, ebx
sub ecx, dword [rsp + 0x88]
sub ecx, dword [rsp + 0x90]
sub ecx, r13d
add ecx, edi
add ecx, r14d
add ecx, dword [rsp + 0xa8]
add eax, ecx
xor ecx, ecx
mov dword [r15 + 0x18], eax
lea rax, str.c0a0
lea r8d, [rcx + 0xc]
mov qword [r15 + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
lea r8d, [rcx + 7]
mov edx, 0x379
mov qword [r15 + 0x28], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [r15 + 0x30], rax
mov rax, r15
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.1400dd340
mov rbx, qword [rsp + 0x5f0]
add rsp, 0x5b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret