Function at 0x14009c5b0
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 - 0x420]
sub rsp, 0x520
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov rax, qword [0x1401740c0]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rsi, r8
mov r12, rdx
mov r14, rcx
mov qword [rbp - 8], r8
mov rax, qword [0x140174018]
mov qword [rsp + 0x40], rax
mov rbx, qword [r8]
cmp dword [rbx - 0xc], 0
jl 0x14009c610
mov qword [rsp + 0x68], rbx
lock inc dword [rbx - 0xc]
jmp 0x14009c636
mov qword [rsp + 0x68], rax
test rbx, rbx
jne 0x14009c61e
xor eax, eax
jmp 0x14009c627
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400670f0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x68]
mov rcx, r14
call fcn.14009b538
test eax, eax
jne 0x14009c678
lea rdx, str.Error_formatting_attachment_part_header.
lea rcx, [rbp - 0x60]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006b790
nop
or rdi, 0xffffffffffffffff
jmp 0x14009cab1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
and qword [rbp - 0x78], 0
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1400773c4
mov rdi, rax
test rax, rax
jne 0x14009c6db
lea rdx, str.Error_converting_attachment_part_header_to_ASCII.
lea rcx, [rbp - 0x58]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006b790
nop
lea rcx, [rsp + 0x78]
call fcn.140067f00
nop
lea rcx, [rbx - 0xc]
or rdi, 0xffffffffffffffff
jmp 0x14009caba
and dword [rsp + 0x50], 0
mov rcx, rdi
call fcn.1400d9890
mov r8, rax
lea r9, [rsp + 0x50]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x14009c732
lea rdx, str.Error_uploading_attachment_part_header.
lea rcx, [rbp - 0x50]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006b790
nop
lea rcx, [rsp + 0x78]
call fcn.140067f00
jmp 0x14009c66f
mov edx, dword [rsp + 0x50]
mov rcx, r14
call fcn.14009c568
mov r8, rsi
lea rdx, [rbp - 0x48]
lea rcx, [r14 + 0x18]
call fcn.14009d0d8
mov rax, qword [r14 + 0x18]
mov qword [rbp], rax
mov rcx, qword [rbp - 0x48]
cmp rcx, rax
jne 0x14009c76c
lea rdx, str.Error_searching_for_attachment_part_name.
lea rcx, [rbp - 0x40]
jmp 0x14009c70b
add rcx, 0x28
xor edx, edx
call fcn.140069064
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140067e3c
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 + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x14009c7ea
lea rdx, str.Error_opening_attachment_file.
lea rcx, [rbp - 0x38]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006b790
nop
lea rcx, [rbx - 0xc]
jmp 0x14009ca8b
and dword [rsp + 0x60], 0
jmp 0x14009c848
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, 0x400
lea rdx, [rbp + 0x10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009ca56
mov r8d, dword [rsp + 0x60]
test r8d, r8d
je 0x14009c881
and dword [rsp + 0x64], 0
lea r9, [rsp + 0x64]
lea rdx, [rbp + 0x10]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x14009c85a
mov edx, dword [rsp + 0x64]
mov rcx, r14
call fcn.14009c568
mov rcx, qword [r14 + 0x28]
call fcn.14006b688
test al, al
je 0x14009c7f1
jmp 0x14009ca82
lea rdx, str.Error_uploading_attachment_part_data.
lea rcx, [rbp - 0x30]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006b790
jmp 0x14009ca82
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140174018]
mov qword [rbp - 0x70], rax
mov rbx, qword [rsi]
cmp dword [rbx - 0xc], 0
jl 0x14009c8a9
mov qword [rsp + 0x70], rbx
lock inc dword [rbx - 0xc]
jmp 0x14009c8cf
mov qword [rsp + 0x70], rax
test rbx, rbx
jne 0x14009c8b7
xor eax, eax
jmp 0x14009c8c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.1400670f0
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14009b4e0
test eax, eax
jne 0x14009c936
lea rdx, str.Error_formatting_attachment_part_footer.
lea rcx, [rbp - 0x28]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006b790
nop
mov rcx, qword [rbp - 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009ca82
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009ca82
call fcn.1400b0230
jmp 0x14009ca82
mov rbx, qword [rbp - 0x70]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.1400773c4
mov r15, rax
test rax, rax
jne 0x14009c978
lea rdx, str.Error_converting_attachment_part_footer_to_ASCII.
lea rcx, [rbp - 0x20]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006b790
nop
lea rcx, [rbx - 0xc]
jmp 0x14009c90f
mov rcx, r15
call fcn.1400d9890
mov r8, rax
lea r9, [rsp + 0x50]
mov rdx, r15
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x14009c9a5
lea rdx, str.Error_uploading_attachment_part_footer.
lea rcx, [rbp - 0x18]
jmp 0x14009c95a
mov edx, dword [rsp + 0x50]
mov rcx, r14
call fcn.14009c568
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140174010]
je 0x14009c9d1
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009c9d1
call fcn.1400b0230
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009c9f5
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009c9f5
call fcn.1400b0230
nop
lea rcx, [rsp + 0x78]
call fcn.140067f00
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009ca24
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009ca24
call fcn.1400b0230
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009ca4c
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009ca4c
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1400b0230
mov eax, 1
jmp 0x14009caff
lea rdx, str.Error_reading_data_from_attachment_file.
lea rcx, [rbp - 0x68]
call fcn.140067e3c
mov r9b, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [r14 + 0x28]
call fcn.14006b790
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009caa6
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009caa6
call fcn.1400b0230
nop
lea rcx, [rsp + 0x78]
call fcn.140067f00
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009cad5
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009cad5
call fcn.1400b0230
nop
mov rcx, qword [rsi]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140174010]
je 0x14009cafd
mov eax, edi
lock xadd dword [rcx], eax
add eax, edi
test eax, eax
jg 0x14009cafd
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1400b0230
xor eax, eax
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1400b0730
add rsp, 0x520
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret