Function at 0x14001eea0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x1401f2308]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r14, r8
mov r10, rcx
mov rcx, rdx
test rdx, rdx
je 0x14001ef1b
mov eax, dword [rdx]
test eax, eax
je 0x14001eef9
cmp eax, 1
je 0x14001efcd
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov eax, dword [rcx]
test eax, eax
jne 0x14001eee0
mov rcx, rdx
mov eax, dword [rdx]
test eax, eax
je 0x14001ef1b
cmp eax, 1
je 0x14001f162
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov eax, dword [rcx]
test eax, eax
jne 0x14001ef02
test r9, r9
je 0x14001ef42
mov eax, dword [r9]
test eax, eax
je 0x14001ef42
cmp eax, 1
je 0x14001f162
mov eax, dword [r9 + 4]
add r9, 8
add r9, rax
mov eax, dword [r9]
test eax, eax
jne 0x14001ef27
lea rax, [rbp + 0x1c8]
mov qword [rbp + 0x1b0], rax
mov qword [rbp + 0x1b8], 0x104
xor esi, esi
mov qword [rbp + 0x1c0], rsi
lea rax, [rbp - 0x58]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 0x104
mov qword [rbp - 0x60], rsi
lea r8, [rbp + 0x1b0]
mov rcx, r10
call fcn.14001e6b0
test al, al
je 0x14001f19d
lea r8, [rbp - 0x70]
mov rcx, r14
call fcn.14001e6b0
test al, al
je 0x14001f19d
mov rdi, qword [rbp - 0x70]
mov r14, qword [rbp + 0x1b0]
lea rbx, [rsi - 1]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14001f16b
mov ebx, esi
jmp 0x14001f1a4
mov rcx, r9
test r9, r9
je 0x14001eef9
mov eax, dword [r9]
test eax, eax
je 0x14001eef9
cmp eax, 1
je 0x14001effe
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov eax, dword [rcx]
test eax, eax
jne 0x14001efe4
jmp 0x14001eef9
test r10, r10
je 0x14001f14e
test r14, r14
je 0x14001f14e
mov rdx, r10
lea rcx, [rsp + 0x38]
call qword [0x1401f2248]
mov dword [rsp + 0x58], gethostbyaddr
xor esi, esi
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x70], 0x40
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x28], 0x4020
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
mov edx, 0x110000
lea rcx, [rsp + 0x30]
call qword [0x1401f21c0]
test eax, eax
jns 0x14001f092
lfence
mov ecx, eax
call qword [0x1401f21e8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rbx, [rsi - 1]
jmp 0x14001f1db
mov rbx, 0xffffffffffffffff
mov rdi, rbx
nop dword [rax]
inc rdi
cmp word [r14 + rdi*2], si
jne 0x14001f0a0
add rdi, rdi
lea rcx, [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
jne 0x14001f0d8
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
call qword [0x1401f2238]
jmp 0x14001f1db
lea rcx, [rax + 0x14]
mov r8, rdi
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [rbp + 0x430]
and al, 1
mov byte [r15], al
mov qword [r15 + 8], rsi
mov dword [r15 + 0x10], edi
lea r9d, [rdi + 0x18]
mov dword [rsp + 0x20], 0xa
mov r8, r15
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [0x1401f21e0]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, ebx
call qword [0x1401f21e8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
call qword [0x1401f2238]
test ebx, ebx
setns sil
lea ebx, [rsi - 1]
jmp 0x14001f1db
mov ecx, ntohs
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, 0xffffffffffffffff
jmp 0x14001f1db
mov rax, 0xffffffffffffffff
jmp 0x14001f1dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001f1a4
test byte [rbp + 0x430], 1
je 0x14001f1a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
cmovne ebx, esi
jmp 0x14001f1a4
mov rbx, 0xffffffffffffffff
lea rax, [rbp - 0x58]
mov rcx, qword [rbp - 0x70]
cmp rcx, rax
je 0x14001f1bd
test rcx, rcx
je 0x14001f1bd
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rax, [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1b0]
cmp rcx, rax
je 0x14001f1db
test rcx, rcx
je 0x14001f1db
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140160900
mov rbx, qword [rsp + 0x518]
add rsp, 0x4e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret