Function at 0x1400aa740
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rdi, qword [rsp + 0x238]
movzx r12d, dl
mov edx, dword [rsp + 0x230]
mov r13, rcx
mov rcx, qword [rsp + 0x240]
or rbx, 0xffffffffffffffff
mov dword [rsp + 0x20], edx
mov rbp, r9
mov rsi, r8
mov qword [rsp + 0x50], rcx
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rax + r9], 0
jne 0x1400aa7a0
movzx r15d, dl
sub r15b, byte [rcx + 0x10]
add r15b, r12b
sub r15b, al
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x1400aa7c0
add r15b, al
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r14, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rcx, [0x1400ed3b4]
movsx r8d, r15b
mov rdx, rbp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, [rsp + 0x80]
mov edx, 0x104
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
lea ecx, [r14*4]
mov r14, rbx
mov qword [rsp + 0x70], rax
movzx eax, r12b
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], eax
nop dword [rax]
inc r14
cmp byte [rsi + r14], 0
jne 0x1400aa830
sub eax, ecx
mov rcx, qword [rsp + 0x38]
xor edx, edx
sub eax, dword [rsp + 0x20]
add ecx, 0xfffffffa
mov r8d, 0x140
add eax, ecx
lea rcx, [rsp + 0x80]
add r14d, eax
call fcn.1400e27d0
lea rdx, [rsp + 0x80]
lea rcx, str.ocelot
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
mov edx, 0x2d0
lea r8d, [rcx + 0xe]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x3ab
lea r8d, [rcx + 0x14]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rbx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x24]
lea ecx, [rax + rax*2]
lea r8d, [rcx + rcx]
mov dword [rsp + 0x30], r8d
nop dword [rax + rax]
inc rdx
cmp byte [rdi + rdx], 0
jne 0x1400aa8c0
mov rax, qword [rsp + 0x50]
mov rcx, rbx
imul edx, dword [rax]
inc rcx
cmp byte [rsi + rcx], 0
jne 0x1400aa8d4
imul ecx, dword [rsp + 0x20]
lea eax, [r8 + rdx]
mov edx, 0x3e4
add ecx, eax
movzx eax, r12b
add ecx, eax
mov rax, qword [rsp + 0x38]
add ecx, dword [rsp + 0x40]
add eax, 0xffffffe7
add eax, ecx
xor ecx, ecx
lea r8d, [rcx + 0xa]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r11, rax
mov qword [rsp + 0x68], rax
test r12b, r12b
je 0x1400aa934
xor ecx, ecx
mov edx, 0x19a
lea r8d, [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r11, qword [rsp + 0x68]
mov rax, qword [rsp + 0x38]
movsx r9, r15b
mov rdx, rbx
lea r15d, [rax + rax]
inc rdx
cmp byte [rdx + rbp], 0
jne 0x1400aa944
mov rax, rbx
inc rax
cmp byte [rsi + rax], 0
jne 0x1400aa950
mov r10, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
imul edx, eax
imul ecx, r12d
imul ecx, r14d
mov eax, r10d
mov r8d, r11d
imul eax, dword [rsp + 0x24]
imul r8d, dword [rsp + 0x34]
lea eax, [rax + rcx*2]
lea ecx, [rax + rax*2]
imul eax, r9d, 0xf
add ecx, ecx
sub r8d, ecx
add r8d, eax
mov rax, rbx
sub r8d, edx
nop dword [rax + rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x1400aa9a0
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x20]
imul eax, dword [rcx + 0x10]
mov rcx, qword [rcx + 0x18]
add r8d, eax
sub r8d, edx
sub r8d, dword [rsp + 0x60]
sub r8d, r12d
mov r12d, dword [rsp + 0x2c]
sub r8d, r10d
lea eax, [r12 + 0x23]
add r8d, r15d
add r8d, dword [rsp + 0x28]
add eax, r8d
mov dword [r13], eax
lea rax, str.c0a2
mov qword [r13 + 8], rax
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400aa9f2
mov rcx, rbx
nop
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400aaa00
imul eax, ecx
lea ecx, [r11*4]
sub ecx, eax
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x1400aaa20
imul eax, r12d
lea ecx, [rax + rcx*2]
mov eax, 0xc
sub eax, dword [rsp + 0x60]
imul eax, dword [rsp + 0x58]
add ecx, eax
lea eax, [r9 + r9*2]
add ecx, eax
sub ecx, dword [rsp + 0x30]
sub ecx, edx
sub ecx, dword [rsp + 0x48]
sub ecx, r10d
add ecx, r15d
add ecx, dword [rsp + 0x70]
add ecx, r14d
nop dword [rax]
inc rbx
cmp byte [rbx + rbp], 0
jne 0x1400aaa60
sub ecx, ebx
mov qword [r13 + 0x18], r10
mov qword [r13 + 0x20], 0
add ecx, 0x19
mov rax, r13
mov dword [r13 + 0x10], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400dd340
mov rbx, qword [rsp + 0x210]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret