Function at 0x1400a7640
Capabilities:
Copy file
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x258
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r15d, ecx
mov rcx, qword [rsp + 0x2c0]
or rbp, 0xffffffffffffffff
mov rbx, r9
mov r13, r8
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], rcx
mov r12d, edx
mov rsi, rbp
nop dword [rax + rax]
inc rsi
cmp byte [r9 + rsi], 0
jne 0x1400a7690
imul esi, r13d
add esi, r15d
cmp r15d, edx
jae 0x1400a76ea
mov rax, rbp
nop dword [rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x1400a76b0
imul eax, r13d
lea edx, [rsi + 0x10]
lea r8, str.star
imul eax, r15d
lea rcx, [rsp + 0xc0]
mov r9d, 0x20
imul eax, r12d
add edx, eax
call fcn.1400dab70
mov rcx, qword [rsp + 0x68]
mov rdi, rbp
nop dword [rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x1400a76f0
movzx eax, r12b
add cl, 3
sub al, byte [rsp + 0x2d0]
add dil, al
add dil, r15b
add dil, cl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov dword [rsp + 0x64], eax
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400a7720
movzx eax, r12b
imul cl
movzx ecx, al
movzx eax, r15b
imul cl
mov ecx, dword [rsp + 0x2c8]
add al, 0x11
movzx r14d, cl
sub r14b, r13b
add al, r13b
add r14b, r15b
add al, cl
add r14b, byte [rsp + 0x68]
mov byte [rsp + 0x60], al
add r14b, byte [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor ecx, ecx
lea r8d, [rcx + 0x18]
mov edx, 0x1ab
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0xa0], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, 0x73
xor ecx, ecx
lea r8d, [rdx - 0x66]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor r8d, r8d
mov edx, 0x3c8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbp
mov qword [rsp + 0xb8], rax
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400a77c0
xor edx, edx
movsx eax, r14b
movzx r13d, r15b
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
sub r13b, r12b
lea r8, str.fisherman
lea rdx, str.icebreaker
sub r13b, r14b
movsx r9d, dil
mov dword [rsp + 0x80], eax
sub r13b, cl
movsx rcx, byte [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], eax
mov ecx, eax
mov dword [rsp + 0x28], r15d
add r13b, 5
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r8d, r15d
imul r8d, r12d
movsx rdx, r14b
mov rcx, rbp
mov dword [rsp + 0x90], r8d
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x78], rdx
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400a7850
mov rax, qword [rsp + 0x68]
add eax, 0xf
imul r14d, eax, 7
sub r14d, dword [rsp + 0x88]
add r14d, dword [rsp + 0x70]
add r14d, edx
add r14d, r8d
add r14d, dword [rsp + 0x64]
sub r14d, ecx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rdx, rax
mov qword [rsp + 0xa8], rax
cmp r13b, 0x10
jb 0x1400a78b2
lea rcx, [rsp + 0x100]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov rdx, qword [rsp + 0xa8]
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0xa0]
movzx r8d, byte [rsp + 0x2d0]
add r12b, 0x23
movzx eax, dl
imul r14b
movzx ecx, al
movzx eax, r10b
imul cl
movzx ecx, al
mov al, 0xe
imul cl
mov rcx, qword [rsp + 0x68]
sub al, r11b
add al, r12b
mov r12, qword [rsp + 0x70]
add al, r15b
add al, cl
mov byte [rsp + 0x62], al
sub al, r12b
mov byte [rsp + 0x61], al
movsx rax, byte [rsp + 0x60]
lea r9d, [rax + rax]
mov rax, rbp
mov dword [rsp + 0x68], r9d
inc rax
cmp byte [rbx + rax], 0
jne 0x1400a7917
imul eax, ecx
mov ecx, dword [rsp + 0x80]
add r15d, 0xfffffff5
imul ecx, r11d
sub eax, ecx
sub eax, r12d
sub eax, r9d
sub eax, r10d
add eax, r15d
mov r15d, 5
add eax, r8d
add eax, edx
mov dword [rsp + 0x64], eax
imul eax, dword [rsp + 0x88]
sub r15d, eax
cmp r14d, r8d
jg 0x1400a7989
lea rcx, [rsp + 0x100]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0x100]
lea rcx, str.c0a2
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r9, qword [rsp + 0x78]
xor eax, eax
lea r8, [0x140001b00]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0xb0], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r8, rax
mov qword [rsp + 0x70], rax
cmp byte [rsp + 0x60], dil
jne 0x1400a7a80
mov r8d, dword [rsp + 0x64]
lea rdx, str.c2a0
lea rcx, str.stepson
call qword [sym.imp.KERNEL32.dll_CopyFileA]
xor ecx, ecx
mov edx, 0x2b3
lea r8d, [rcx + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
movsx r9, byte [rsp + 0x60]
mov r8, qword [rsp + 0x78]
lea rdx, str.c0a2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
xor ecx, ecx
mov edx, 0x1d0
lea r8d, [rcx + 0x16]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
lea rcx, [rsp + 0x100]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0x100]
lea rcx, str.observatory
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
mov edx, 0xf1
lea r8d, [rcx + 0xd]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [rsp + 0x70]
inc rbp
cmp byte [rbx + rbp], 0
jne 0x1400a7a80
mov rcx, qword [rsp + 0xa0]
lea eax, [r15*8]
sub ecx, eax
movzx eax, byte [rsp + 0x62]
inc eax
dec ecx
imul ecx, dword [rsp + 0x88]
imul eax, r12d
add ecx, eax
mov eax, dword [rsp + 0x68]
sub eax, dword [rsp + 0x80]
lea edx, [rcx + rax*4]
mov rax, qword [rsp + 0x98]
sub eax, esi
imul eax, eax, 7
add edx, eax
movsx rax, byte [rsp + 0x61]
lea ecx, [rax + rax*4]
movsx rax, dil
add edx, ecx
sub edx, eax
movzx eax, r13b
sub edx, eax
movzx eax, byte [rsp + 0x2d0]
sub edx, dword [rsp + 0xb0]
sub edx, dword [rsp + 0x78]
sub edx, dword [rsp + 0x64]
sub edx, dword [rsp + 0xa8]
sub edx, r14d
add edx, dword [rsp + 0xb8]
add edx, r8d
add edx, eax
mov eax, dword [rsp + 0x2c8]
add edx, dword [rsp + 0x90]
add eax, 0xffffffe3
add eax, edx
add eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret