Function at 0x1400a9b68
Capabilities:
Read and send data from client to server
Read file on windows
Send data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov rax, qword [0x1401080e0]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rsi, r8
mov r12, rdx
mov r14, rcx
mov qword [rbp - 0x18], r8
mov rax, qword [0x140108018]
mov qword [rsp + 0x40], rax
mov rbx, qword [r8]
cmp dword [rbx - 0xc], 0
jl 0x1400a9bc7
mov qword [rbp - 0x80], rbx
lock inc dword [rbx - 0xc]
jmp 0x1400a9beb
mov qword [rbp - 0x80], rax
test rbx, rbx
jne 0x1400a9bd4
xor eax, eax
jmp 0x1400a9bdd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.140067304
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.1400a8af4
test eax, eax
jne 0x1400a9c2c
lea rdx, str.Error_formatting_attachment_part_header.
lea rcx, [rbp - 0x68]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006caa0
nop
or rdi, 0xffffffffffffffff
jmp 0x1400aa05f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
and qword [rsp + 0x70], 0
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14007c9ac
mov rdi, rax
test rax, rax
jne 0x1400a9c90
lea rdx, str.Error_converting_attachment_part_header_to_ASCII.
lea rcx, [rbp - 0x50]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006caa0
nop
lea rcx, [rsp + 0x60]
call fcn.140068890
nop
lea rcx, [rbx - 0xc]
or rdi, 0xffffffffffffffff
jmp 0x1400aa068
and dword [rsp + 0x48], 0
mov rcx, rax
call sub.MSVCR120.dll_strlen
mov r8, rax
lea r9, [rsp + 0x48]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x1400a9ce7
lea rdx, str.Error_uploading_attachment_part_header.
lea rcx, [rbp - 0x10]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006caa0
nop
lea rcx, [rsp + 0x60]
call fcn.140068890
jmp 0x1400a9c23
mov edx, dword [rsp + 0x48]
mov rcx, r14
call fcn.1400a9b20
mov r8, rsi
lea rdx, [rbp - 0x70]
lea rcx, [r14 + 0x18]
call fcn.1400aa668
mov rcx, qword [rbp - 0x70]
cmp rcx, qword [r14 + 0x18]
jne 0x1400a9d1a
lea rdx, str.Error_searching_for_attachment_part_name.
lea rcx, [rbp - 0x40]
jmp 0x1400a9cc0
add rcx, 0x28
xor edx, edx
call fcn.140069bfc
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14006874c
nop
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x1400a9d98
lea rdx, str.Error_opening_attachment_file.
lea rcx, [rbp - 0x20]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006caa0
nop
lea rcx, [rbx - 0xc]
jmp 0x1400aa039
and dword [rsp + 0x58], 0
jmp 0x1400a9df6
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rbp]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400aa004
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x1400a9e2f
and dword [rsp + 0x5c], 0
lea r9, [rsp + 0x5c]
lea rdx, [rbp]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x1400a9e08
mov edx, dword [rsp + 0x5c]
mov rcx, r14
call fcn.1400a9b20
mov rcx, qword [r14 + 0x28]
call fcn.14006c984
test al, al
je 0x1400a9d9f
jmp 0x1400aa030
lea rdx, str.Error_uploading_attachment_part_data.
lea rcx, [rbp - 0x60]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006caa0
jmp 0x1400aa030
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140108018]
mov qword [rbp - 0x78], rax
mov rbx, qword [rsi]
cmp dword [rbx - 0xc], 0
jl 0x1400a9e57
mov qword [rsp + 0x78], rbx
lock inc dword [rbx - 0xc]
jmp 0x1400a9e7d
mov qword [rsp + 0x78], rax
test rbx, rbx
jne 0x1400a9e65
xor eax, eax
jmp 0x1400a9e6e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.140067304
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.1400a8aa4
test eax, eax
jne 0x1400a9ee4
lea rdx, str.Error_formatting_attachment_part_footer.
lea rcx, [rbp - 0x58]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006caa0
nop
mov rcx, qword [rbp - 0x78]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400aa030
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400aa030
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x1400aa030
mov rbx, qword [rbp - 0x78]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14007c9ac
mov r15, rax
test rax, rax
jne 0x1400a9f26
lea rdx, str.Error_converting_attachment_part_footer_to_ASCII.
lea rcx, [rbp - 0x48]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006caa0
nop
lea rcx, [rbx - 0xc]
jmp 0x1400a9ebd
mov rcx, rax
call sub.MSVCR120.dll_strlen
mov r8, rax
lea r9, [rsp + 0x48]
mov rdx, r15
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x1400a9f53
lea rdx, str.Error_uploading_attachment_part_footer.
lea rcx, [rbp - 0x38]
jmp 0x1400a9f08
mov edx, dword [rsp + 0x48]
mov rcx, r14
call fcn.1400a9b20
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140108010]
je 0x1400a9f7f
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400a9f7f
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400a9fa3
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400a9fa3
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
lea rcx, [rsp + 0x60]
call fcn.140068890
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400a9fd2
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400a9fd2
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400a9ffa
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400a9ffa
mov rcx, qword [rsi]
sub rcx, 0xc
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 1
jmp 0x1400aa0ad
lea rdx, str.Error_reading_data_from_attachment_file.
lea rcx, [rbp - 0x28]
call fcn.14006874c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006caa0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400aa054
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400aa054
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
lea rcx, [rsp + 0x60]
call fcn.140068890
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400aa083
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400aa083
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140108010]
je 0x1400aa0ab
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x1400aa0ab
mov rcx, qword [rsi]
sub rcx, 0xc
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400bf530
add rsp, 0x510
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret