Function at 0x14018d4b0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rsi, r8
mov r15, rcx
mov r8, rdx
test rdx, rdx
je 0x14018d52a
mov ecx, dword [rdx]
test ecx, ecx
je 0x14018d52a
mov eax, ecx
cmp eax, 1
je 0x14018d6bb
mov eax, dword [r8 + 4]
add r8, 8
add r8, rax
mov eax, dword [r8]
test eax, eax
jne 0x14018d4f2
test ecx, ecx
je 0x14018d52a
cmp ecx, 1
je 0x14018d856
mov eax, dword [rdx + 4]
add rdx, 8
add rdx, rax
mov ecx, dword [rdx]
test ecx, ecx
jne 0x14018d511
test r9, r9
je 0x14018d551
mov eax, dword [r9]
test eax, eax
je 0x14018d551
cmp eax, 1
je 0x14018d856
mov eax, dword [r9 + 4]
add r9, 8
add r9, rax
mov eax, dword [r9]
test eax, eax
jne 0x14018d536
lea rax, [rbp + 0x218]
mov qword [rbp + 0x200], rax
mov qword [rbp + 0x208], 0x104
xor r14d, r14d
mov qword [rbp + 0x210], r14
lea rax, [rbp - 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0x104
mov qword [rbp - 0x10], r14
movzx ebx, byte [0x140256a90]
lea r9, [rbp + 0x200]
movzx r8d, bl
mov rcx, r15
call fcn.14018c810
mov edi, eax
lea r9, [rbp - 0x20]
movzx r8d, bl
mov rcx, rsi
call fcn.14018c810
mov ebx, eax
test edi, edi
jne 0x14018d93f
test eax, eax
jne 0x14018d929
mov rsi, qword [rbp - 0x20]
mov rdx, qword [rbp + 0x200]
test rdx, rdx
je 0x14018d91f
test rsi, rsi
je 0x14018d91f
lea rcx, [rsp + 0x60]
call qword [0x14024f030]
mov dword [rbp - 0x50], gethostbyaddr
mov qword [rbp - 0x48], r14
mov dword [rbp - 0x38], 0x40
lea rax, [rsp + 0x60]
mov qword [rbp - 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov dword [rsp + 0x28], 0x4020
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x50]
mov edx, 0x110000
lea rcx, [rsp + 0x38]
call qword [0x1401ea808]
test eax, eax
jns 0x14018d862
lfence
mov ecx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, 0xffffffffffffffff
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x14018d675
test rcx, rcx
je 0x14018d675
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rax, [rbp + 0x218]
mov rcx, qword [rbp + 0x200]
cmp rcx, rax
je 0x14018d693
test rcx, rcx
je 0x14018d693
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0x568]
add rsp, 0x530
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r8, r9
test r9, r9
je 0x14018d50d
mov eax, dword [r9]
test eax, eax
je 0x14018d50d
cmp eax, 1
je 0x14018d6ee
mov eax, dword [r8 + 4]
add r8, 8
add r8, rax
mov eax, dword [r8]
test eax, eax
jne 0x14018d6d2
jmp 0x14018d50d
test r15, r15
je 0x14018d83f
test rsi, rsi
je 0x14018d83f
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [0x14024f030]
mov dword [rbp - 0x80], gethostbyaddr
xor r14d, r14d
mov qword [rbp - 0x78], r14
mov dword [rbp - 0x68], 0x40
lea rax, [rsp + 0x40]
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x28], 0x4020
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x80]
mov edx, 0x110000
lea rcx, [rsp + 0x30]
call qword [0x1401ea808]
test eax, eax
jns 0x14018d77d
lfence
mov ecx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rbx, [r14 - 1]
jmp 0x14018d693
mov rbx, 0xffffffffffffffff
mov rdi, rbx
nop word [rax + rax]
inc rdi
cmp word [rsi + rdi*2], r14w
jne 0x14018d790
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 0x14018d7c8
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
call qword [0x1401e9888]
jmp 0x14018d693
lea rcx, [rax + 0x14]
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [rbp + 0x480]
and al, 1
mov byte [r15], al
mov qword [r15 + 8], r14
mov dword [r15 + 0x10], edi
lea r9d, [rdi + 0x18]
mov dword [rsp + 0x20], 0xa
mov r8, r15
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [0x1401e9e28]
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 [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
call qword [0x1401e9888]
test ebx, ebx
setns r14b
lea ebx, [r14 - 1]
jmp 0x14018d693
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, 0xffffffffffffffff
jmp 0x14018d693
mov rax, 0xffffffffffffffff
jmp 0x14018d695
mov rbx, 0xffffffffffffffff
mov rdi, rbx
nop dword [rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14018d870
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 0x14018d8a8
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
call qword [0x1401e9888]
jmp 0x14018d65c
lea rcx, [rax + 0x14]
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [rbp + 0x480]
and al, 1
mov byte [r15], al
mov qword [r15 + 8], r14
mov dword [r15 + 0x10], edi
lea r9d, [rdi + 0x18]
mov dword [rsp + 0x20], 0xa
mov r8, r15
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [0x1401e9e28]
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 [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
call qword [0x1401e9888]
test ebx, ebx
setns r14b
lea ebx, [r14 - 1]
jmp 0x14018d65c
mov ecx, reloc.WS2_32.dll_listen
jmp 0x14018d64f
lea r9, [rbp + 0x200]
xor r8d, r8d
mov rcx, r15
call fcn.14018c810
mov edi, eax
jmp 0x14018d954
test eax, eax
jne 0x14018d954
lea r9, [rbp - 0x20]
xor r8d, r8d
mov rcx, rsi
call fcn.14018c810
mov ebx, eax
cmp edi, 1
jne 0x14018d655
cmp ebx, edi
jne 0x14018d655
mov rdi, qword [rbp - 0x20]
mov rsi, qword [rbp + 0x200]
mov rbx, 0xffffffffffffffff
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14018d98f
mov ebx, r14d
jmp 0x14018d65c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14018d65c
test byte [rbp + 0x480], 1
je 0x14018d65c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
cmovne ebx, r14d
jmp 0x14018d65c