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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2130
call fcn.180082cd0
sub rsp, rax
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rsp + 0x2188], rbx
mov rax, qword [0x1800ba080]
xor rax, rsp
mov qword [rsp + 0x2120], rax
mov r14, rdx
mov r13, rcx
mov rdx, r8
lea rcx, [rsp + 0x90]
call fcn.180068340
nop
mov rdx, qword [rsp + 0xb0]
sub rdx, qword [rsp + 0xa8]
movabs rax, 0x2aaaaaaaaaaaaaab
imul rdx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
xor ebx, ebx
cmp edx, ebx
jg 0x180065897
lea rcx, [rsp + 0x90]
call fcn.18004d450
xor eax, eax
jmp 0x180065ea3
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x54], 5
mov dword [rsp + 0x58], 3
mov dword [rsp + 0x5c], 7
or r15, 0xffffffffffffffff
mov rdi, r15
mov qword [rsp + 0x48], r15
mov ebp, ebx
lea r12, [rsp + 0x50]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, dword [r12]
mov edx, 0x80000000
mov rcx, r13
call qword [0x1800bfe40]
mov rsi, rax
cmp rdi, r15
je 0x18006590a
cmp rdi, rbx
je 0x18006590a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rsi
mov qword [rsp + 0x48], rsi
cmp rsi, rbx
je 0x18006591c
cmp rsi, r15
jne 0x180065927
inc ebp
add r12, 4
cmp ebp, 4
jb 0x1800658ca
cmp rsi, rbx
je 0x180065e80
cmp rsi, r15
je 0x180065e80
mov byte [rsp + 0x120], bl
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x121]
call fcn.1800729a0
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x120]
call fcn.18006496c
cmp eax, ebx
jne 0x18006598a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.18004d450
xor eax, eax
jmp 0x180065ea3
cmp dword [rsp + 0x128], 2
je 0x1800659b2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.18004d450
xor eax, eax
jmp 0x180065ea3
mov edi, ebx
cmp dword [rsp + 0x2c0], ebx
jbe 0x180065e65
mov ebp, ebx
mov r13d, sendto
mov qword [rsp + 0xe8], r13
mov qword [rsp + 0xe0], rbx
mov byte [rsp + 0xd0], bl
mov eax, ebp
lea rdx, [rsp + rax + 0x2c4]
mov r8d, 0xa
lea rcx, [rsp + 0xc8]
call fcn.180006440
nop
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], rbx
mov byte [rsp + 0x68], bl
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x60]
call fcn.180004de0
mov byte [rsp + 0x88], bl
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.1800684c8
mov r12b, al
cmp qword [rsp + 0x80], 0x10
jb 0x180065a58
mov rcx, qword [rsp + 0x68]
call fcn.18006e998
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], rbx
mov byte [rsp + 0x68], bl
cmp qword [rsp + 0xe8], 0x10
jb 0x180065a81
mov rcx, qword [rsp + 0xd0]
call fcn.18006e998
cmp r12b, bl
jne 0x180065a9d
inc edi
add ebp, 0xa
cmp edi, dword [rsp + 0x2c0]
jb 0x1800659c9
jmp 0x180065e65
mov qword [rsp + 0xe8], r13
mov qword [rsp + 0xe0], rbx
mov byte [rsp + 0xd0], bl
xor eax, eax
mov rcx, r15
lea rdi, [rsp + 0x544]
repne scasb al, byte [rdi]
not rcx
lea r12d, [rax + 1]
sub rcx, r12
mov r8, rcx
lea rdx, [rsp + 0x544]
lea rcx, [rsp + 0xc8]
call fcn.180006440
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xf0]
call fcn.180064938
nop
lea ebp, [r12 + 0xf]
cmp qword [rsp + 0xe8], rbp
jb 0x180065b18
mov rcx, qword [rsp + 0xd0]
call fcn.18006e998
mov qword [rsp + 0xe8], r13
mov qword [rsp + 0xe0], rbx
mov byte [rsp + 0xd0], bl
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r12d
mov edx, 0x40000000
mov rcx, r14
call qword [0x1800bfe40]
mov rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, rbx
je 0x180065e08
cmp rax, r15
je 0x180065e08
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rsp + 0xf8]
cmp qword [rsp + 0x110], rbp
cmovae rdx, qword [rsp + 0xf8]
mov qword [rsp + 0xd8], rbx
mov dword [rsp + 0x20], ebp
lea r9, [0x18009afa0]
mov r8d, dword [rsp + 0x108]
lea rcx, [rsp + 0x60]
call fcn.180062344
cmp qword [rax + 0x20], rbp
jb 0x180065bd0
mov rax, qword [rax + 8]
jmp 0x180065bd4
add rax, 8
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0xc8], xmm0
cmp qword [rsp + 0x80], rbp
jb 0x180065bf5
mov rcx, qword [rsp + 0x68]
call fcn.18006e998
mov byte [rsp + 0x1120], bl
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x1121]
call fcn.1800729a0
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x1120]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x180065d8a
mov r15d, 0x269ec3
mov r8d, dword [rsp + 0x40]
cmp r8d, ebx
jbe 0x180065d8a
test r13b, r8b
je 0x180065c64
add r8d, r12d
test r13b, r8b
jne 0x180065c57
mov dword [rsp + 0x40], r8d
mov eax, r8d
shr eax, 4
cmp eax, ebx
jbe 0x180065cda
lea rcx, [rsp + 0x1120]
mov r9d, eax
lea rdx, [rsp + 0xc8]
mov r10d, 4
mov eax, dword [rdx]
imul eax, eax, 0x343fd
add eax, r15d
shr eax, 0x10
mov word [rdx], ax
mov eax, dword [rdx]
imul eax, eax, 0x343fd
add eax, r15d
shr eax, 0x10
mov word [rdx + 2], ax
add rdx, 4
sub r10, r12
jne 0x180065c87
add qword [rsp + 0xd8], r12
mov rax, qword [rsp + 0xc8]
xor qword [rcx], rax
mov rax, qword [rsp + 0xd0]
xor qword [rcx + 8], rax
add rcx, rbp
sub r9, r12
jne 0x180065c79
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x1120]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x180065d3d
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x1120]
call fcn.1800729a0
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x1120]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x180065c44
jmp 0x180065d8a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp qword [rsp + 0x110], rbp
jb 0x180065d67
mov rcx, qword [rsp + 0xf8]
call fcn.18006e998
mov qword [rsp + 0x110], r13
mov qword [rsp + 0x108], rbx
mov byte [rsp + 0xf8], bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x180065df4
xor r9d, r9d
lea r8, [rsp + 0x5cc]
mov edx, dword [rsp + 0x5c8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x110], rbp
jb 0x180065dd0
mov rcx, qword [rsp + 0xf8]
call fcn.18006e998
mov qword [rsp + 0x110], r13
mov qword [rsp + 0x108], rbx
mov byte [rsp + 0xf8], bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ebx, r12d
lea rcx, [rsp + 0x90]
call fcn.18004d450
mov eax, ebx
jmp 0x180065ea3
cmp rax, r15
je 0x180065e1c
cmp rax, rbx
je 0x180065e1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x110], rbp
jb 0x180065e33
mov rcx, qword [rsp + 0xf8]
call fcn.18006e998
mov qword [rsp + 0x110], r13
mov qword [rsp + 0x108], rbx
mov byte [rsp + 0xf8], bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.18004d450
xor eax, eax
jmp 0x180065ea3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.18004d450
xor eax, eax
jmp 0x180065ea3
cmp rsi, r15
je 0x180065e94
cmp rsi, rbx
je 0x180065e94
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.18004d450
xor eax, eax
mov rcx, qword [rsp + 0x2120]
xor rcx, rsp
call fcn.18006e130
mov rbx, qword [rsp + 0x2188]
add rsp, 0x2130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret