Function at 0x180035890
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.18006de30
sub rsp, rax
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rsp + 0x2188], rbx
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x2120], rax
mov r14, rdx
mov r13, rcx
mov rdx, r8
lea rcx, [rsp + 0x90]
call fcn.1800381fc
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 0x18003592b
lea rcx, [rsp + 0x90]
call fcn.180038180
xor eax, eax
jmp 0x180035f37
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 [0x1800a7890]
mov rsi, rax
cmp rdi, r15
je 0x18003599e
cmp rdi, rbx
je 0x18003599e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rsi
mov qword [rsp + 0x48], rsi
cmp rsi, rbx
je 0x1800359b0
cmp rsi, r15
jne 0x1800359bb
inc ebp
add r12, 4
cmp ebp, 4
jb 0x18003595e
cmp rsi, rbx
je 0x180035f14
cmp rsi, r15
je 0x180035f14
mov byte [rsp + 0x120], bl
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x121]
call fcn.180059f80
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x120]
call fcn.180034acc
cmp eax, ebx
jne 0x180035a1e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.180038180
xor eax, eax
jmp 0x180035f37
cmp dword [rsp + 0x128], 2
je 0x180035a46
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.180038180
xor eax, eax
jmp 0x180035f37
mov edi, ebx
cmp dword [rsp + 0x2c0], ebx
jbe 0x180035ef9
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.180007324
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.180007214
mov byte [rsp + 0x88], bl
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.180038390
mov r12b, al
cmp qword [rsp + 0x80], 0x10
jb 0x180035aec
mov rcx, qword [rsp + 0x68]
call fcn.1800018ec
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], rbx
mov byte [rsp + 0x68], bl
cmp qword [rsp + 0xe8], 0x10
jb 0x180035b15
mov rcx, qword [rsp + 0xd0]
call fcn.1800018ec
cmp r12b, bl
jne 0x180035b31
inc edi
add ebp, 0xa
cmp edi, dword [rsp + 0x2c0]
jb 0x180035a5d
jmp 0x180035ef9
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.180007324
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xf0]
call fcn.180034a98
nop
lea ebp, [r12 + 0xf]
cmp qword [rsp + 0xe8], rbp
jb 0x180035bac
mov rcx, qword [rsp + 0xd0]
call fcn.1800018ec
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 [0x1800a7890]
mov rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, rbx
je 0x180035e9c
cmp rax, r15
je 0x180035e9c
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, [0x180084430]
mov r8d, dword [rsp + 0x108]
lea rcx, [rsp + 0x60]
call fcn.18003a2fc
cmp qword [rax + 0x20], rbp
jb 0x180035c64
mov rax, qword [rax + 8]
jmp 0x180035c68
add rax, 8
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0xc8], xmm0
cmp qword [rsp + 0x80], rbp
jb 0x180035c89
mov rcx, qword [rsp + 0x68]
call fcn.1800018ec
mov byte [rsp + 0x1120], bl
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x1121]
call fcn.180059f80
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 0x180035e1e
mov r15d, 0x269ec3
mov r8d, dword [rsp + 0x40]
cmp r8d, ebx
jbe 0x180035e1e
test r13b, r8b
je 0x180035cf8
add r8d, r12d
test r13b, r8b
jne 0x180035ceb
mov dword [rsp + 0x40], r8d
mov eax, r8d
shr eax, 4
cmp eax, ebx
jbe 0x180035d6e
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 0x180035d1b
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 0x180035d0d
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 0x180035dd1
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x1120]
call fcn.180059f80
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 0x180035cd8
jmp 0x180035e1e
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 0x180035dfb
mov rcx, qword [rsp + 0xf8]
call fcn.1800018ec
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 0x180035e88
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 0x180035e64
mov rcx, qword [rsp + 0xf8]
call fcn.1800018ec
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.180038180
mov eax, ebx
jmp 0x180035f37
cmp rax, r15
je 0x180035eb0
cmp rax, rbx
je 0x180035eb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x110], rbp
jb 0x180035ec7
mov rcx, qword [rsp + 0xf8]
call fcn.1800018ec
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.180038180
xor eax, eax
jmp 0x180035f37
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.180038180
xor eax, eax
jmp 0x180035f37
cmp rsi, r15
je 0x180035f28
cmp rsi, rbx
je 0x180035f28
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.180038180
xor eax, eax
mov rcx, qword [rsp + 0x2120]
xor rcx, rsp
call fcn.180059930
mov rbx, qword [rsp + 0x2188]
add rsp, 0x2130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret