Function at 0x180001000
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x108
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x170]
mov rbx, rcx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov dword [rsp + 0x58], r9d
mov qword [rsp + 0x68], r8
mov rsi, rdx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x78], rax
or r13, 0xffffffffffffffff
xor r12d, r12d
xor r15d, r15d
xor ebp, ebp
xor edi, edi
call sym.dcapi.dll_dc_load_config
test eax, eax
jne 0x180001086
mov ecx, dword [rsp + 0x8c]
and ecx, 0x80
jmp 0x180001088
xor ecx, ecx
call fcn.180028fe0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x180001102
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180001102
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x18000110f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180001373
mov ecx, 0x2930
call sym.dcapi.dll_secure_alloc
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1800014ce
mov ecx, 0x2930
call sym.dcapi.dll_secure_alloc
mov r12, rax
test rax, rax
je 0x1800014ce
mov ecx, 0x100
call sym.dcapi.dll_secure_alloc
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800014cb
mov ecx, 0x800
call sym.dcapi.dll_secure_alloc
mov r15, rax
test rax, rax
je 0x1800014c1
xor ecx, ecx
mov edx, 0x100000
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x1800014c1
xor edx, edx
mov r8d, 0x800
mov rcx, r15
call fcn.180015950
lea r9, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
mov ecx, 0x22004e
mov dword [rsp + 0x20], 0x40
call sym.dcapi.dll_dc_device_control
mov ebx, eax
test eax, eax
jne 0x180001322
lea r9, [r15 + 0x4e]
xor r8d, r8d
xor edx, edx
mov ecx, 0x22004e
mov dword [rsp + 0x20], 4
call sym.dcapi.dll_dc_device_control
mov ebx, eax
test eax, eax
jne 0x180001322
lea r9, [r15 + 0x56]
xor r8d, r8d
xor edx, edx
mov ecx, 0x22004e
mov dword [rsp + 0x20], 0x100
call sym.dcapi.dll_dc_device_control
mov ebx, eax
test eax, eax
jne 0x180001322
mov ebx, 8
lea rcx, [r15 + 0x48]
mov eax, 2
mov dword [r15 + 0x4a], ebx
mov ebx, dword [rsp + 0x58]
mov edx, 0x7b8
mov dword [r15 + 0x40], 0x50524344
mov word [rcx], ax
mov qword [r15 + 0x25a], 0x800
mov dword [r15 + 0x52], ebx
call fcn.180028560
mov qword [rsp + 0x30], 0xc0
mov dword [r15 + 0x44], eax
mov rax, qword [rsp + 0x68]
lea r9, [rsp + 0xb0]
movsxd r8, dword [rax]
lea rdx, [rax + 4]
mov ecx, 0x3e8
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x40
call fcn.1800299d0
lea rcx, [r15 + 0x56]
mov r8, r12
mov edx, ebx
call fcn.180029330
mov r8, rsi
mov edx, ebx
mov rcx, rdi
call fcn.180029330
xor r9d, r9d
mov r8d, 0x800
mov rdx, r15
mov rcx, r15
mov qword [rsp + 0x20], rsi
call qword [rsi + 0x2920]
lea r9, [rsp + 0x48]
mov r8d, 0x800
movaps xmm0, xmmword [rsp + 0xb0]
mov rdx, r15
mov rcx, r13
mov qword [rsp + 0x20], 0
movups xmmword [r15], xmm0
movaps xmm1, xmmword [rsp + 0xc0]
movups xmmword [r15 + 0x10], xmm1
movaps xmm0, xmmword [rsp + 0xd0]
movups xmmword [r15 + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0xe0]
movups xmmword [r15 + 0x30], xmm1
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800013c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rbp, rbp
je 0x180001338
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r15, r15
je 0x180001345
mov rcx, r15
call sym.dcapi.dll_secure_free
test rdi, rdi
je 0x180001352
mov rcx, rdi
call sym.dcapi.dll_secure_free
test r12, r12
je 0x18000135f
mov rcx, r12
call sym.dcapi.dll_secure_free
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18000136e
call sym.dcapi.dll_secure_free
mov rsi, qword [rsp + 0x60]
cmp r14, 0xffffffffffffffff
je 0x180001382
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r13, 0xffffffffffffffff
je 0x18000139e
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x18000139e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180015920
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0x50]
xor ebx, ebx
test rax, rax
jle 0x180001494
nop word [rax + rax]
sub rax, rbx
mov esi, 0x100000
lea r9, [rsp + 0x48]
cmp rax, rsi
mov rdx, rbp
mov rcx, r14
cmovl esi, eax
mov qword [rsp + 0x20], 0
lea edi, [rsi + 0x7ff]
mov r8d, esi
and edi, 0xfffff800
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800014af
cmp dword [rsp + 0x48], esi
jb 0x1800014af
mov r9, rbx
mov r8d, edi
mov rdx, rbp
mov rcx, rbp
mov esi, edi
mov qword [rsp + 0x20], r12
call qword [r12 + 0x2920]
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rbp
mov rcx, r13
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800014af
cmp dword [rsp + 0x48], edi
jb 0x1800014af
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
add rbx, rsi
mov rdx, rbx
call qword [rsp + 0x80]
test eax, eax
je 0x1800014a0
mov rax, qword [rsp + 0x50]
cmp rbx, rax
jl 0x1800013e0
mov rdi, qword [rsp + 0x40]
xor ebx, ebx
jmp 0x180001322
mov rdi, qword [rsp + 0x40]
mov ebx, 0x3e3
jmp 0x180001322
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x40]
mov ebx, eax
jmp 0x180001322
mov ebx, 8
jmp 0x180001322
mov rdi, rax
mov ebx, 8
jmp 0x180001322