Function at 0x140044670
Capabilities:
Copy file
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r12d, dword [rbp + 0x200]
movsx r14, r8b
mov byte [rsp + 0x60], r14b
call fcn.1400af010
xor ecx, ecx
mov rdi, rax
lea eax, [r14 + r14*4]
lea r8d, [rcx + 0xe]
mov r13d, eax
mov edx, 0x2b3
mov dword [rsp + 0x68], eax
imul r13d, r12d
mov dword [rsp + 0x6c], r13d
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, str.chess
lea esi, [r12 + r12*4]
mov r8d, 5
mov qword [rsp + 0x28], rcx
lea rcx, [0x1400ed3b8]
mov rdx, rax
mov qword [rsp + 0x20], rcx
mov r9d, esi
mov ecx, r13d
mov qword [rsp + 0x70], rax
call fcn.14007f330
lea rcx, [rbp - 0x50]
mov rbx, rax
call fcn.14006f3d0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm0
movsd xmm0, qword [rax + 0x20]
movups xmmword [rbp + 0x40], xmm1
movsd qword [rbp + 0x50], xmm0
call fcn.1400bab40
movzx r15d, al
cmp esi, r14d
jg 0x1400447aa
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rbp + 0x60]
xor edx, edx
mov r8d, 0x140
mov qword [rbp - 0x80], rax
call fcn.1400e27d0
lea rdx, [rbp + 0x60]
lea rcx, str.c5ret
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea r9, [rbp - 0x50]
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x78], rax
lea rax, [0x1400ed3b8]
mov qword [rbp - 0x70], rax
movups xmm0, xmmword [rbp - 0x80]
movsd xmm1, qword [rbp - 0x70]
movsd qword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x50], xmm0
call fcn.140098b40
call fcn.140092f90
or rsi, 0xffffffffffffffff
mov r14, rax
mov rcx, rsi
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400447c0
imul ecx, dword [rbp + 0x38]
mov eax, r13d
lea r9d, [r12 + r12*4]
movsx r10, r15b
mov rdx, rsi
sub eax, ecx
mov qword [rbp - 0x60], r10
sub eax, r9d
mov dword [rbp - 0x50], eax
nop word [rax + rax]
inc rdx
cmp byte [r14 + rdx], 0
jne 0x1400447f0
mov r8, rsi
nop dword [rax]
cmp byte [rdi + r8 + 1], 0
lea r8, [r8 + 1]
jne 0x140044800
mov ecx, dword [rbp + 0x40]
mov eax, dword [rsp + 0x70]
add edx, r13d
imul eax, r9d
lea ecx, [rax + rcx*2]
lea eax, [r8 + rdx]
sub ecx, r10d
sub ecx, r12d
add ecx, 0x19
add eax, ecx
mov rcx, rsi
mov dword [rbp - 0x4c], eax
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140044832
mov r15d, dword [rbp + 0x48]
mov eax, r15d
imul eax, r9d
sub eax, r13d
sub eax, ecx
add eax, 0x14
mov dword [rbp - 0x48], eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [rbp - 0x38], 1
mov qword [rbp - 0x40], rax
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x140044865
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rsp + 0x70]
imul eax, r13d
lea ecx, [rax + rcx*2]
mov rax, rsi
sub ecx, dword [rsp + 0x68]
sub ecx, r12d
add ecx, edx
nop word [rax + rax]
inc rax
cmp byte [r14 + rax], 0
jne 0x140044890
sub ecx, eax
mov dword [rbp - 0x34], ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea rcx, [0x1400ed3b8]
mov r8d, r12d
mov dword [rbp - 0x30], eax
lea rax, str.dune_buggy
mov rdx, rdi
mov qword [rbp - 0x28], rax
lea rax, str.c1a4
mov qword [rbp - 0x20], rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [rsp + 0x64], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rcx, [rbp + 0x60]
mov edx, 0x104
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov r9, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x64]
movups xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rbp - 0x40]
lea rcx, [0x1400ed4d4]
mov qword [rbp - 0x58], rax
lea rdx, str.c1a5
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp], xmm1
movups xmm0, xmmword [rbp - 0x30]
movsd xmm1, qword [rbp - 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea rax, str.c0ret
movaps xmmword [rbp + 0x10], xmm0
movsd qword [rbp + 0x20], xmm1
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.140063ff0
mov r10d, dword [rsp + 0x64]
cmp eax, r10d
jle 0x140044a05
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140044960
imul eax, r13d
lea eax, [rax + rax*4]
sub eax, r15d
lea r15d, [rbx + 1]
add eax, dword [rbp - 0x60]
add eax, r12d
add r15d, eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rsi
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140044990
imul ecx, dword [rsp + 0x70]
mov eax, dword [rsp + 0x64]
movsx rdx, byte [rsp + 0x60]
mov r13, qword [rbp - 0x80]
sub eax, ecx
mov ecx, dword [rbp + 0x40]
sub eax, edx
add ecx, 0xfffffffd
sub eax, r13d
add eax, ecx
cmp r15d, eax
jge 0x1400449c6
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea rax, str.deodorant
mov qword [rbp - 0x80], rax
lea rax, [0x1400ed3f4]
mov qword [rbp - 0x78], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [rbp - 0x80]
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [0x1400ed3b8]
mov r8, rax
call fcn.140081bd0
mov r10d, dword [rsp + 0x64]
jmp 0x140044a09
mov r13, qword [rbp - 0x80]
mov r9, qword [rbp - 0x60]
lea r8d, [r12 + r12*4]
mov rcx, rsi
lea eax, [r9 + r9]
sub eax, r13d
lea r13d, [rbx + 1]
lea eax, [rax + rax*4]
sub eax, r8d
add r13d, eax
nop dword [rax + rax]
inc rcx
cmp byte [r14 + rcx], 0
jne 0x140044a30
imul ecx, r9d
mov eax, r8d
shl ecx, 2
sub eax, ecx
lea ecx, [rax + rax*4]
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140044a50
mov edx, dword [rsp + 0x6c]
lea r15d, [r12 + 2]
mov rbx, rsi
imul eax, edx
add ecx, eax
movsx rax, byte [rsp + 0x60]
sub ecx, r10d
mov r11, rax
add ecx, eax
add r15d, ecx
nop dword [rax + rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140044a80
mov eax, dword [rbp - 0x40]
mov rcx, qword [rbp - 0x58]
imul ebx, r8d
lea ecx, [rcx + rax*2]
mov rax, rsi
add ecx, ecx
sub ebx, ecx
add ebx, dword [rsp + 0x68]
add ebx, r9d
add ebx, r10d
nop dword [rax + rax]
inc rax
cmp byte [r14 + rax], 0
jne 0x140044ab0
movsx r9d, byte [rsp + 0x60]
sub ebx, eax
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r11
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
lea r8, str.c3ret
lea rdx, str.c0ret
mov ecx, r12d
mov dword [rsp + 0x28], r12d
add ebx, 7
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rbp - 0x40], rax
cmp r15d, r13d
jg 0x140044b14
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r14, qword [rbp - 0x58]
lea r8, [0x140001b00]
imul ebx, r14d
sub r15d, ebx
xor ebx, ebx
sub r15d, dword [rsp + 0x70]
xor edx, edx
xor ecx, ecx
add r15d, r13d
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
movsxd r9, r15d
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r8, [0x140001b00]
mov r9d, r13d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
mov r9d, eax
inc rsi
cmp byte [rdi + rsi], 0
jne 0x140044b87
movzx eax, byte [rbp - 0x40]
mov ecx, 2
imul byte [rsp + 0x70]
sub cl, al
movzx eax, cl
add al, al
add cl, al
movzx eax, r12b
lea edx, [rcx + rcx]
shl al, 2
mov ecx, r9d
add r12b, al
sub dl, r12b
sub dl, r13b
sub dl, byte [rsp + 0x60]
sub dl, byte [rbp + 0x48]
add dl, sil
add dl, byte [rsp + 0x6c]
add dl, r14b
call fcn.14009bf20
cmp dword [rsp + 0x64], r13d
jae 0x140044c5f
lea rcx, [rbp + 0x60]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rbp + 0x60]
lea rcx, [0x1400ed4d4]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
mov edx, 0x3af
lea r8d, [rcx + 9]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor ecx, ecx
lea r8d, [rcx + 0xa]
mov edx, 0x31d
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.140061a90
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, str.c5ret
lea r8, str.c1a4
lea rdx, str.c6a6
mov rcx, rax
call fcn.1400c8ef0
mov rax, rbx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400dd340
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret