Function at 0x140002470
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov rcx, rdx
mov r15, rdx
test r8d, r8d
jne 0x1400024dc
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r14d, r14d
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov edx, 0xc0000000
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.clfsw32.dll_CreateLogFile]
cmp rax, 0xffffffffffffffff
je 0x140002d98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002d81
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov r8d, 7
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x40], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9d, 1
xor r8d, r8d
mov rcx, rax
mov edx, 0x8270
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r14
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test al, al
je 0x140002db7
mov rcx, rbx
mov qword [rsp + 0xa0], rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x8000
call fcn.14000b070
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, r15
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9d, 1
xor r8d, r8d
mov rcx, rax
mov edx, 0x800
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r14
mov r8d, 0x7a00
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
je 0x140002dce
mov qword [rsp + 0x68], rsi
mov rcx, rbx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [rbp + 0x7980]
lea rsi, [rbp + 0x1fe]
mov word [rsi], ax
movzx eax, word [rbp + 0x7982]
mov word [rbp + 0x3fe], ax
movzx eax, word [rbp + 0x7984]
mov word [rbp + 0x5fe], ax
movzx eax, word [rbp + 0x7986]
mov word [rbp + 0x7fe], ax
movzx eax, word [rbp + 0x7988]
mov word [rbp + 0x9fe], ax
movzx eax, word [rbp + 0x798a]
mov word [rbp + 0xbfe], ax
movzx eax, word [rbp + 0x798c]
mov word [rbp + 0xdfe], ax
movzx eax, word [rbp + 0x798e]
mov word [rbp + 0xffe], ax
movzx eax, word [rbp + 0x7990]
mov word [rbp + 0x11fe], ax
movzx eax, word [rbp + 0x7992]
mov word [rbp + 0x13fe], ax
movzx eax, word [rbp + 0x7994]
mov word [rbp + 0x15fe], ax
movzx eax, word [rbp + 0x7996]
mov word [rbp + 0x17fe], ax
movzx eax, word [rbp + 0x7998]
mov word [rbp + 0x19fe], ax
movzx eax, word [rbp + 0x799a]
mov word [rbp + 0x1bfe], ax
movzx eax, word [rbp + 0x799c]
mov word [rbp + 0x1dfe], ax
movzx eax, word [rbp + 0x799e]
mov word [rbp + 0x1ffe], ax
movzx eax, word [rbp + 0x79a0]
mov word [rbp + 0x21fe], ax
movzx eax, word [rbp + 0x79a2]
mov word [rbp + 0x23fe], ax
movzx eax, word [rbp + 0x79a4]
mov word [rbp + 0x25fe], ax
movzx eax, word [rbp + 0x79a6]
mov word [rbp + 0x27fe], ax
movzx eax, word [rbp + 0x79a8]
mov word [rbp + 0x29fe], ax
movzx eax, word [rbp + 0x79aa]
mov word [rbp + 0x2bfe], ax
movzx eax, word [rbp + 0x79ac]
mov word [rbp + 0x2dfe], ax
movzx eax, word [rbp + 0x79ae]
mov word [rbp + 0x2ffe], ax
movzx eax, word [rbp + 0x79b0]
mov word [rbp + 0x31fe], ax
movzx eax, word [rbp + 0x79b2]
mov word [rbp + 0x33fe], ax
movzx eax, word [rbp + 0x79b4]
mov word [rbp + 0x35fe], ax
movzx eax, word [rbp + 0x79b6]
mov word [rbp + 0x37fe], ax
movzx eax, word [rbp + 0x79b8]
mov word [rbp + 0x39fe], ax
movzx eax, word [rbp + 0x79ba]
mov word [rbp + 0x3bfe], ax
movzx eax, word [rbp + 0x79bc]
mov word [rbp + 0x3dfe], ax
movzx eax, word [rbp + 0x79be]
mov word [rbp + 0x3ffe], ax
movzx eax, word [rbp + 0x79c0]
mov word [rbp + 0x41fe], ax
movzx eax, word [rbp + 0x79c2]
mov word [rbp + 0x43fe], ax
movzx eax, word [rbp + 0x79c4]
mov word [rbp + 0x45fe], ax
movzx eax, word [rbp + 0x79c6]
mov word [rbp + 0x47fe], ax
movzx eax, word [rbp + 0x79c8]
mov word [rbp + 0x49fe], ax
movzx eax, word [rbp + 0x79ca]
mov ecx, 0x8000
mov word [rbp + 0x4bfe], ax
movzx eax, word [rbp + 0x79cc]
mov word [rbp + 0x4dfe], ax
movzx eax, word [rbp + 0x79ce]
mov word [rbp + 0x4ffe], ax
movzx eax, word [rbp + 0x79d0]
mov word [rbp + 0x51fe], ax
movzx eax, word [rbp + 0x79d2]
mov word [rbp + 0x53fe], ax
movzx eax, word [rbp + 0x79d4]
mov word [rbp + 0x55fe], ax
movzx eax, word [rbp + 0x79d6]
mov word [rbp + 0x57fe], ax
movzx eax, word [rbp + 0x79d8]
mov word [rbp + 0x59fe], ax
movzx eax, word [rbp + 0x79da]
mov word [rbp + 0x5bfe], ax
movzx eax, word [rbp + 0x79dc]
mov word [rbp + 0x5dfe], ax
movzx eax, word [rbp + 0x79de]
mov word [rbp + 0x5ffe], ax
movzx eax, word [rbp + 0x79e0]
mov word [rbp + 0x61fe], ax
movzx eax, word [rbp + 0x79e2]
mov word [rbp + 0x63fe], ax
movzx eax, word [rbp + 0x79e4]
mov word [rbp + 0x65fe], ax
movzx eax, word [rbp + 0x79e6]
mov word [rbp + 0x67fe], ax
movzx eax, word [rbp + 0x79e8]
mov word [rbp + 0x69fe], ax
movzx eax, word [rbp + 0x79ea]
mov word [rbp + 0x6bfe], ax
movzx eax, word [rbp + 0x79ec]
mov word [rbp + 0x6dfe], ax
movzx eax, word [rbp + 0x79ee]
mov word [rbp + 0x6ffe], ax
movzx eax, word [rbp + 0x79f0]
mov word [rbp + 0x71fe], ax
movzx eax, word [rbp + 0x79f2]
mov word [rbp + 0x73fe], ax
movzx eax, word [rbp + 0x79f4]
mov word [rbp + 0x75fe], ax
movzx eax, word [rbp + 0x79f6]
mov word [rbp + 0x77fe], ax
mov dword [rsp + 0x40], r14d
movzx eax, word [rbp + 0x79f8]
mov word [rbp + 0x79fe], ax
mov eax, dword [rbp + 0x39c]
mov byte [rbp + 2], 0x15
mov byte [rbp + 0x70], 2
mov dword [rbp + 0x68], 0x2fc8
mov word [rbp + 0x2fca], 0x1470
mov word [rbp + 0x2fda], 0x17a0
mov dword [rax + rbp + 0x94], 1
mov r12d, dword [rbp + 0x398]
mov r13d, dword [rbp + 0x39c]
call fcn.14000b070
mov r8d, 0x2000
lea rdx, [rbp + 0x70]
mov rcx, rax
mov rbx, rax
call fcn.14001a990
mov ecx, dword [rbp + 0x28]
mov r8d, 0x2000
add ecx, 0x66
mov rdx, rbx
mov dword [rbp + 0x28], ecx
add rcx, rbp
call fcn.14001a990
mov eax, dword [rbp + 0x28]
lea rdx, [rbp + 0x28fd]
mov rdi, qword [rsp + 0x60]
add rdx, rax
mov ecx, dword [rax + rbp + 0x32c]
add rcx, 0xffffffffffffffd0
add rax, rcx
mov ecx, 2
add rax, rbp
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x1400029f1
movups xmm0, xmmword [rax]
lea r8, [rbp + 0x70]
mov r10d, r14d
mov r9, r14
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x1600], 0x1640
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x1604], 0x1610
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x1610], 0xc1fdf008
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x1614], 0x30
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x1620], r14d
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x1628], 0x5000000
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x291d], 0x295d
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x2921], 0x292d
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x292d], 0xc1fdf008
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x2931], 0x30
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x293d], 1
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x2925], r14d
mov eax, dword [rbp + 0x28]
mov dword [rax + rbp + 0x32c], 0x292d
mov r11d, dword [rbp + 0x28]
add r8, r11
nop dword [rax + rax]
mov rdx, qword [r8]
test rdx, rdx
je 0x140002b54
lea ecx, [r13 - 0x30]
cmp rdx, rcx
je 0x140002b93
lea rcx, [r11 + rdx]
add rcx, rbp
cmp qword [rcx + 0x18], r14
jne 0x140002b89
cmp qword [rcx + 0x10], r14
jne 0x140002b7f
inc r10d
inc r9
add r8, 8
cmp r9, 0xb
jle 0x140002b30
mov eax, dword [rbp + 0x28]
cmp qword [rax + rbp + 0x80], r14
je 0x140002bac
mov qword [rax + rbp + 0x88], 0x28fd
jmp 0x140002bb8
mov qword [rcx + 0x10], 0x28fd
jmp 0x140002bb8
mov qword [rcx + 0x18], 0x28fd
jmp 0x140002bb8
lea eax, [r10*8]
movsxd rcx, eax
add rcx, r11
mov qword [rcx + rbp + 0x70], 0x28fd
jmp 0x140002bb8
mov qword [rax + rbp + 0x80], 0x28fd
mov r13, qword [rsp + 0x50]
lea rdx, [rbp + 0x2fc8]
mov eax, r14d
nop word [rax + rax]
mov r8d, 0x1510
mov dword [rsp + 0x40], r8d
test eax, eax
jne 0x140002be9
mov dword [rsp + 0x40], 0x1550
jmp 0x140002c3c
cmp eax, 0x3c
je 0x140002c63
cmp eax, 1
jne 0x140002c0e
mov word [rdx], r12w
inc eax
movzx ecx, word [rsp + 0x40]
add rdx, 2
mov word [rsi], cx
add rsi, 0x200
jmp 0x140002bd0
cmp eax, 9
jne 0x140002c2f
mov word [rdx], 0x17a0
inc eax
movzx ecx, word [rsp + 0x40]
add rdx, 2
mov word [rsi], cx
add rsi, 0x200
jmp 0x140002bd0
mov ecx, eax
shl ecx, 9
cmp ecx, 0x2a02
jge 0x140002c47
movzx ecx, word [rsi]
mov word [rdx], cx
mov r8d, dword [rsp + 0x40]
mov word [rsi], r8w
inc eax
add rsi, 0x200
add rdx, 2
cmp eax, 0x3d
jl 0x140002bd0
jmp 0x140002c6f
mov eax, 0x1530
mov dword [rsp + 0x40], eax
mov word [rsi], ax
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9d, 1
xor r8d, r8d
mov rcx, rax
mov edx, 0x800
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r14
mov r8d, 0x7a00
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
test al, al
je 0x140002dd9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9d, 1
xor r8d, r8d
mov rcx, rax
mov edx, 0x8200
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r14
mov r8d, 0x7a00
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test al, al
je 0x140002df0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x800
mov rcx, r15
call fcn.140001070
mov edx, 0x8200
mov rcx, r15
call fcn.140001070
mov rbp, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004c90
add rsp, 0x70
pop r15
pop r14
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error_d_n
call fcn.140001010
mov ecx, 1
call fcn.140008540
int3
lea rcx, str.Fail_n
call fcn.140001010
mov ecx, 1
call fcn.140008540
int3
mov ecx, 1
call fcn.140008540
int3
lea rcx, str.Fail_n
call fcn.140001010
mov ecx, 1
call fcn.140008540
int3
lea rcx, str.Fail_n
call fcn.140001010
mov ecx, 1
call fcn.140008540
int3