Function at 0x140017040
Capabilities:
Copy file
Get file size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2760]
mov eax, 0x2860
call fcn.1401b77d0
sub rsp, rax
mov rax, qword [0x1402ac7a8]
xor rax, rsp
mov qword [rbp + 0x2750], rax
mov r15, r8
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x750]
mov r12, r9
call fcn.1401bcd10
mov rbx, 0xffffffffffffffff
mov r9, rbx
nop dword [rax + rax]
inc r9
cmp byte [rdi + r9], 0
jne 0x1400170a0
lea rax, [rbp + 0x750]
mov dword [rsp + 0x28], 0x104
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, 0x5c
lea rcx, [rbp + 0x750]
call fcn.1401bbee0
mov r14, rax
test rax, rax
je 0x1400173aa
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x1f50]
mov r8d, 0x800
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x1750]
mov r8d, 0x800
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x350]
mov r8d, 0x400
call fcn.1401bcd10
lea r8, [r14 + 2]
mov edx, 0x400
lea rcx, [rbp + 0x1750]
call fcn.1401c95ac
mov r8d, dword [0x1403b0ef0]
lea rdx, [0x140266fb8]
inc r8d
lea rcx, [rbp + 0x1f50]
mov dword [0x1403b0ef0], r8d
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, dword [0x1403b0ef0]
lea rdx, str.._03d
lea rcx, [rbp + 0x350]
call fcn.140014d80
lea r8, [rbp + 0x1f50]
mov edx, 0x400
lea rcx, [rbp + 0x1750]
call fcn.1401c9704
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
xor r8d, r8d
mov edx, 0x20000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
test rax, rax
je 0x1400173aa
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400173aa
cmp dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x40]
jne 0x14001731e
cmp eax, 0x4c4b40
jae 0x14001731e
xor edx, edx
lea rcx, [rbp + 0xf50]
mov r8d, 0x800
call fcn.1401bcd10
cmp byte [rbp + 0x27c0], 0
je 0x140017241
lea r9, [rsp + 0x50]
mov edx, 0x400
lea r8, str.CRYPTED__s_r_n
lea rcx, [rsp + 0x50]
call fcn.14000ca40
cmp byte [rbp + 0x27c8], 0
lea r8, [rbp + 0x750]
je 0x1400172c3
mov edx, 0x400
lea rcx, [rbp + 0xf50]
call fcn.1401c95ac
lea r8, str..Moss
mov edx, 0x400
lea rcx, [rbp + 0xf50]
call fcn.1401c9704
mov r8d, 1
lea rdx, [rbp + 0xf50]
lea rcx, [rbp + 0x750]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea r8, [rbp + 0xf50]
lea rdx, [rbp + 0x1750]
call fcn.140034270
test eax, eax
jne 0x14001735f
lea edx, [rax + 0x5c]
mov rcx, rdi
call fcn.1401bc648
lea r8, str.captured:__s_cloned_file:__s_s__Zip_CRC:__s_r_n
jmp 0x1400172e5
lea rdx, [rbp + 0x1750]
call fcn.140034270
test eax, eax
jne 0x140017312
lea edx, [rax + 0x5c]
mov rcx, rdi
call fcn.1401bc648
lea r8, str.captured:__s_file:__s_s__Zip_CRC:__s_r_n
lea rcx, [rbp + 0x350]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rcx
inc rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov edx, 0x400
call fcn.14000ca40
jmp 0x14001735f
mov r9, rdi
lea r8, str.not_captured:__s___NAK_r_n
jmp 0x140017350
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, str.not_captured:__s___too_big:__lu_r_n
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14000ca40
cmp byte [rbp + 0x27c0], 0
je 0x14001735f
lea r9, [rsp + 0x50]
lea r8, str.CRYPTED__s_r_n
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14000ca40
lea r8, [rsp + 0x50]
mov edx, 0x400
mov rcx, rsi
call fcn.14000ca40
mov rax, rbx
inc rax
cmp byte [rsi + rax], 0
jne 0x140017374
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140017380
mov dword [rsp + 0x28], eax
mov r9, rbx
mov r8, rsi
mov qword [rsp + 0x20], r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, r12
call fcn.1400245e0
mov rcx, qword [rbp + 0x2750]
xor rcx, rsp
call fcn.1401b6d50
add rsp, 0x2860
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret