Function at 0x1400a3690
Capabilities:
Copy file
Create thread

Disassembly:
push rbp
push rsi
push rdi
push r15
sub rsp, 0x308
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rax, qword [rsp + 0x350]
mov rbp, r9
mov esi, r8d
mov dword [rsp + 0x4c], r8d
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x140
mov dword [rsp + 0x48], eax
call fcn.1400e27d0
lea rdx, [rsp + 0x60]
lea rcx, str.soup
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
mov edi, eax
mov dword [rsp + 0x38], eax
movzx eax, r15b
sub al, dil
sub al, 0x6a
mov byte [rsp + 0x30], al
cmp esi, edi
jne 0x1400a3943
mov qword [rsp + 0x330], rbx
movzx ebx, al
mov qword [rsp + 0x300], r12
mov ecx, ebx
mov qword [rsp + 0x2f8], r13
mov qword [rsp + 0x2f0], r14
sub ecx, ebp
sub ecx, esi
sub ecx, edi
lea ebp, [rcx - 0x1a]
add ebp, r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [rbx + rbx*4]
mov edx, r15d
lea r14d, [rdi + 9]
mov r13d, eax
sub edx, ecx
add r14d, edx
mov dword [rsp + 0x34], r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea edi, [r15 - 2]
mov r12, rax
mov rax, qword [rsp + 0x40]
xor edx, edx
lea ecx, [rbx + rax*4]
mov rax, qword [rsp + 0x50]
mov ebx, dword [rax]
add ecx, esi
add edi, ecx
xor ecx, ecx
imul ebx, r15d
imul ebx, dword [rsp + 0x48]
sub ebx, 6
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov r15d, eax
imul esi, ebx
lea ebx, [r14 - 8]
mov edx, esi
imul edx, edi
sub edx, r12d
add ebx, edx
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
mov ecx, dword [rsp + 0x4c]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r8, [0x140001b00]
mov r9d, edi
mov r14, rax
mov rax, qword [rsp + 0x40]
xor edx, edx
lea ecx, [rax + rax*2]
xor eax, eax
shl ecx, 4
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
add ecx, ebx
add ecx, esi
lea esi, [rbp - 8]
add esi, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor ecx, ecx
lea r8d, [rcx + 0xc]
mov edx, 0x298
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x140
mov rbp, rax
call fcn.1400e27d0
lea rdx, [rsp + 0x60]
lea rcx, str.c1ret
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r8d, dword [rsp + 0x34]
lea rdx, str.c1ret
lea rcx, str.rank
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov rax, qword [rsp + 0x50]
mov edx, dword [rax]
mov rax, qword [rsp + 0x40]
imul edx, eax
mov eax, dword [rsp + 0x38]
lea ecx, [rax + rax*4]
sub edx, ecx
xor ecx, ecx
lea eax, [rdx + rdi*8]
movzx edx, byte [rsp + 0x30]
lea r8d, [rcx + 0x14]
sub eax, ebx
lea ebx, [r15 + 2]
sub eax, r12d
sub eax, dword [rsp + 0x34]
sub eax, r13d
add eax, edx
mov edx, 0x1d7
add eax, r14d
add eax, esi
add ebx, eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rcx, [rsp + 0x1a0]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0x1a0]
lea rcx, str.c4a5
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor eax, eax
lea r8, [0x140001b00]
mov qword [rsp + 0x28], rax
mov r9d, ebx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r14, qword [rsp + 0x2f0]
mov r13, qword [rsp + 0x2f8]
mov r12, qword [rsp + 0x300]
mov rbx, qword [rsp + 0x330]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x308
pop r15
pop rdi
pop rsi
pop rbp
ret