Function at 0x140074350
Capabilities:
Copy file
Delete file

Disassembly:
push rbp
push rbx
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x390], rax
xor r14d, r14d
mov byte [rsp + 0x50], r8b
mov r15, r9
mov r13, rcx
test rdx, rdx
je 0x140074784
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], r14w
jne 0x1400743a0
lfence
mov r8, rdx
lea rcx, [rsp + 0x70]
mov edx, 0x104
cmp rax, rdx
jae 0x1400743c7
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400743db
mov r9d, 0x103
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x176], r14w
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
lea rcx, [rbp + 0x176]
cmp rax, rcx
jb 0x1400743fe
mov eax, 1
jmp 0x140074799
mov edx, 0x5c
cmp dx, word [rax - 2]
je 0x14007440b
mov dword [rax], edx
test r15, r15
je 0x140074492
lea rax, [rsp + 0x70]
mov rcx, rbx
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x140074420
lea rax, [rcx + 1]
cmp rax, 0x104
jae 0x1400744b3
mov rax, rbx
nop dword [rax]
inc rax
cmp word [r15 + rax*2], r14w
jne 0x140074440
inc rax
add rax, rcx
lfence
mov edx, 0x104
mov r8, r15
cmp rax, rdx
ja 0x14007446d
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x1400744b3
lea rax, [rsp + 0x70]
sub rdx, rcx
mov r9d, 0x103
sub r9, rcx
lea rcx, [rax + rcx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x176], r14w
jmp 0x1400744b3
mov rcx, r13
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x1400744b3
lea r8, [rax + 2]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1401aed20
cmp byte [rsp + 0x50], r14b
je 0x140074520
lea rax, [rsp + 0x70]
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x1400744c2
lea rax, [rcx + 1]
cmp rax, 0x104
jae 0x140074520
lea rax, [rcx + 5]
mov edx, 0x104
lea r8, [0x1401f1ab8]
cmp rax, rdx
ja 0x1400744fa
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x140074520
lfence
lea rax, [rsp + 0x70]
sub rdx, rcx
mov r9d, 0x103
sub r9, rcx
lea rcx, [rax + rcx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x176], r14w
cmp r14w, word [rsp + 0x70]
je 0x1400746d5
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, [rsp + 0x70]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [case.0x1401ba071.53]
cmp rax, rbx
jne 0x14007456f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140074578
cmp eax, 0x20
je 0x140074578
jmp 0x1400746d5
mov rcx, rax
call qword [case.0x1401b9e8b.6]
mov qword [rsp + 0x4f0], rsi
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x4a8], rdi
mov edx, 0x2e
mov qword [rsp + 0x4a0], r12
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov r12, rax
lea rax, [rsp + 0x70]
mov rcx, r12
sub rcx, rax
sar rcx, 1
mov esi, ecx
cmp rsi, 0x104
jae 0x1400745c4
mov edi, esi
test ecx, ecx
je 0x1400745e6
jmp 0x1400745c9
mov edi, 0x103
lfence
mov r9, rdi
lea r8, [rsp + 0x70]
mov edx, 0x104
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + rdi*2 + 0x180], r14w
mov r14d, 0x104
sub r14, rsi
mov edi, 2
lea rsi, [rbp + rsi*2 + 0x180]
nop word [rax + rax]
mov r9d, edi
mov qword [rsp + 0x20], r12
lea r8, str.__d__s
mov rdx, r14
mov rcx, rsi
call fcn.1401aef00
xor eax, eax
cmp ax, word [rbp + 0x180]
je 0x140074680
mov qword [rsp + 0x30], rax
lea r8d, [rax + 3]
mov dword [rsp + 0x28], eax
lea rcx, [rbp + 0x180]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [case.0x1401ba071.53]
cmp rax, rbx
jne 0x140074726
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14007472f
cmp eax, 0x20
je 0x14007472f
lea rax, [rbp + 0x180]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140074690
mov edx, 0x104
lea r8, [rbp + 0x180]
lea rcx, [rsp + 0x70]
cmp rbx, rdx
jae 0x140074742
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor r14d, r14d
mov rdi, qword [rsp + 0x4a8]
mov rsi, qword [rsp + 0x4f0]
mov r12, qword [rsp + 0x4a0]
cmp byte [rsp + 0x50], 0
je 0x140074765
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], r13
mov r9d, 5
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x70]
mov qword [rsp + 0x58], r15
lea rdx, [rsp + 0x60]
call fcn.14014c510
mov ebx, eax
test eax, eax
je 0x140074784
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, 1
je 0x14007475e
mov eax, 8
jmp 0x140074799
mov rcx, rax
call qword [case.0x1401b9e8b.6]
inc edi
cmp edi, 0x2710
jl 0x140074610
jmp 0x1400746ba
mov r9d, 0x103
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor r14d, r14d
mov word [rbp + 0x176], r14w
jmp 0x1400746bd
mov eax, 2
jmp 0x140074799
mov r8d, 1
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140074784
mov eax, reloc.WS2_32.dll_recv
jmp 0x140074799
mov rcx, r13
call fcn.1401952d0
test eax, eax
mov ecx, 4
cmovne ecx, r14d
mov eax, ecx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop rbx
pop rbp
ret