Function at 0x180035450
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.18006e000
sub rsp, rax
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rsp + 0x2188], rbx
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x2120], rax
mov r14, rdx
mov r13, rcx
mov rdx, r8
lea rcx, [rsp + 0x90]
call fcn.180037e9c
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 0x1800354eb
lea rcx, [rsp + 0x90]
call fcn.180037e20
xor eax, eax
jmp 0x180035af7
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 [0x1800a7880]
mov rsi, rax
cmp rdi, r15
je 0x18003555e
cmp rdi, rbx
je 0x18003555e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rsi
mov qword [rsp + 0x48], rsi
cmp rsi, rbx
je 0x180035570
cmp rsi, r15
jne 0x18003557b
inc ebp
add r12, 4
cmp ebp, 4
jb 0x18003551e
cmp rsi, rbx
je 0x180035ad4
cmp rsi, r15
je 0x180035ad4
mov byte [rsp + 0x120], bl
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x121]
call fcn.18005a150
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x120]
call fcn.1800345c4
cmp eax, ebx
jne 0x1800355de
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.180037e20
xor eax, eax
jmp 0x180035af7
cmp dword [rsp + 0x128], 2
je 0x180035606
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.180037e20
xor eax, eax
jmp 0x180035af7
mov edi, ebx
cmp dword [rsp + 0x2c0], ebx
jbe 0x180035ab9
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.180007288
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.180007178
mov byte [rsp + 0x88], bl
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.180038030
mov r12b, al
cmp qword [rsp + 0x80], 0x10
jb 0x1800356ac
mov rcx, qword [rsp + 0x68]
call fcn.180058ed8
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], rbx
mov byte [rsp + 0x68], bl
cmp qword [rsp + 0xe8], 0x10
jb 0x1800356d5
mov rcx, qword [rsp + 0xd0]
call fcn.180058ed8
cmp r12b, bl
jne 0x1800356f1
inc edi
add ebp, 0xa
cmp edi, dword [rsp + 0x2c0]
jb 0x18003561d
jmp 0x180035ab9
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.180007288
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xf0]
call fcn.180034590
nop
lea ebp, [r12 + 0xf]
cmp qword [rsp + 0xe8], rbp
jb 0x18003576c
mov rcx, qword [rsp + 0xd0]
call fcn.180058ed8
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 [0x1800a7880]
mov rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, rbx
je 0x180035a5c
cmp rax, r15
je 0x180035a5c
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, [0x180084450]
mov r8d, dword [rsp + 0x108]
lea rcx, [rsp + 0x60]
call fcn.18003a41c
cmp qword [rax + 0x20], rbp
jb 0x180035824
mov rax, qword [rax + 8]
jmp 0x180035828
add rax, 8
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0xc8], xmm0
cmp qword [rsp + 0x80], rbp
jb 0x180035849
mov rcx, qword [rsp + 0x68]
call fcn.180058ed8
mov byte [rsp + 0x1120], bl
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x1121]
call fcn.18005a150
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 0x1800359de
mov r15d, 0x269ec3
mov r8d, dword [rsp + 0x40]
cmp r8d, ebx
jbe 0x1800359de
test r13b, r8b
je 0x1800358b8
add r8d, r12d
test r13b, r8b
jne 0x1800358ab
mov dword [rsp + 0x40], r8d
mov eax, r8d
shr eax, 4
cmp eax, ebx
jbe 0x18003592e
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 0x1800358db
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 0x1800358cd
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 0x180035991
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x1120]
call fcn.18005a150
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 0x180035898
jmp 0x1800359de
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 0x1800359bb
mov rcx, qword [rsp + 0xf8]
call fcn.180058ed8
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 0x180035a48
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 0x180035a24
mov rcx, qword [rsp + 0xf8]
call fcn.180058ed8
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.180037e20
mov eax, ebx
jmp 0x180035af7
cmp rax, r15
je 0x180035a70
cmp rax, rbx
je 0x180035a70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x110], rbp
jb 0x180035a87
mov rcx, qword [rsp + 0xf8]
call fcn.180058ed8
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.180037e20
xor eax, eax
jmp 0x180035af7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.180037e20
xor eax, eax
jmp 0x180035af7
cmp rsi, r15
je 0x180035ae8
cmp rsi, rbx
je 0x180035ae8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x90]
call fcn.180037e20
xor eax, eax
mov rcx, qword [rsp + 0x2120]
xor rcx, rsp
call fcn.180059b00
mov rbx, qword [rsp + 0x2188]
add rsp, 0x2130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret