Function at 0x416110
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get file size
Read file on windows
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x42e13c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebp
push esi
push edi
mov edi, dword [esp + 0xc0]
xor esi, esi
mov eax, dword [edi]
mov dword [esp + 0x2c], esi
push eax
call sub.WSOCK32.dll_gethostbyname
mov ebp, eax
cmp ebp, esi
jne 0x416150
xor eax, eax
jmp 0x41668c
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x41616b
xor eax, eax
jmp 0x41668c
mov eax, dword [esp + 0xb8]
push ebx
cmp eax, esi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
je 0x4161d8
push esi
push esi
push 3
push esi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x41666d
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, esi
mov dword [esp + 0x2c], eax
je 0x41666d
cmp eax, 0xa000000
ja 0x41666d
cmp dword [esp + 0x34], esi
jne 0x41666d
mov ebx, dword [esp + 0xc8]
mov edx, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [edx - 8]
mov ecx, dword [ecx - 8]
lea edx, [ecx + eax + 0x1000]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, esi
mov dword [esp + 0x20], edi
je 0x41666d
xor eax, eax
push 0x50
mov dword [esp + 0x3c], eax
mov word [esp + 0x3c], 2
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x3a], ax
mov ecx, dword [ebp + 0xc]
mov ebp, dword [esp + 0xd8]
mov edx, dword [ecx]
test ebp, ebp
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
jbe 0x41625c
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x38]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_connect
test eax, eax
je 0x41625c
inc esi
cmp esi, ebp
jb 0x416242
cmp esi, ebp
je 0x416664
mov eax, dword [0x436cfc]
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0xb4], ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc4]
mov edx, dword [ebx]
mov ebx, dword [sym.imp.ntdll.dll_sprintf]
mov byte [esp + 0xb4], 2
mov ecx, dword [eax]
mov dword [esp + 0x10], ebp
push ecx
push edx
push str.POST__s_HTTP_1.1_r_nHost:__s_r_n
push edi
call ebx
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0xcc]
add esp, 0x10
add ecx, eax
test esi, esi
mov dword [esp + 0x10], ecx
je 0x4163e4
push ebp
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
push eax
push str._____________________________7d61572c150aa8
lea eax, [esp + 0x54]
push 0x64
push eax
call dword [sym.imp.ntdll.dll__snprintf]
mov edx, dword [esp + 0x24]
add esp, 0x14
lea ecx, [esp + 0x48]
add edx, edi
push ecx
push str.Content_Type:_multipart_form_data__boundary_s_r_n
push edx
call ebx
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, eax
lea eax, [esp + 0x48]
mov dword [esp + 0x10], ecx
push esi
push eax
lea ecx, [esp + 0x24]
push str.___s_r_nContent_Disposition:_form_data__name_content___filename__s__r_nContent_Type:_application_x_zip_compressed_r_n_r_n
push ecx
call fcn.00417340
add esp, 0x10
lea edx, [esp + 0x48]
lea eax, [esp + 0x18]
push edx
push str._r_n___s___r_n
push eax
call fcn.00417340
mov ebp, dword [esp + 0xcc]
add esp, 0xc
mov eax, dword [ebp + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x4163cc
mov ecx, dword [0x436cfc]
mov dword [esp + 0x20], ecx
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x48]
mov byte [esp + 0xb4], 3
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x2c]
push str._r_n___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s
push edx
call fcn.00417340
mov eax, dword [esp + 0x34]
add esp, 0x14
lea ecx, [esp + 0x14]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00406e80
mov eax, dword [esp + 0x20]
mov edx, dword [0x436d00]
mov byte [esp + 0xb4], 2
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4163c3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x4163c3
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.0042d5f4
add esp, 4
cmp esi, dword [ebp + 4]
jne 0x416345
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [eax - 8]
mov edx, dword [ecx - 8]
mov eax, dword [esp + 0x2c]
add ebp, edx
add ebp, eax
jmp 0x416440
mov edx, dword [esp + 0x10]
push str.Content_Type:_application_x_www_form_urlencoded_r_n
add edx, edi
push edx
call ebx
mov edx, dword [esp + 0x18]
add esp, 8
add edx, eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x416440
mov eax, esi
mov esi, dword [esi]
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x41641e
xor eax, eax
jmp 0x416425
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00406e80
mov ecx, dword [esp + 0xc0]
cmp esi, dword [ecx + 4]
jne 0x41640f
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
add eax, ebp
push eax
mov eax, dword [esp + 0x14]
add eax, edi
push str.Content_Length:__d_r_nAccept_Language:_zh_cn_r_nUser_Agent:_360SafeUpload_r_nConnection:_Keep_Alive_r_nCache_Control:_no_cache_r_n_r_n
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0xc8]
add esp, 0xc
add ecx, eax
test esi, esi
mov dword [esp + 0x10], ecx
je 0x416490
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push ecx
add edx, edi
push 0x437f5c
push edx
call ebx
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
push eax
push edi
push ebx
call fcn.004166b0
add esp, 0xc
test eax, eax
je 0x4164ec
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
test esi, esi
je 0x416578
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x1000
push edi
push edx
call ebp
test eax, eax
je 0x416578
mov eax, dword [esp + 0x10]
test eax, eax
je 0x416578
push eax
push edi
push ebx
call fcn.004166b0
add esp, 0xc
test eax, eax
jne 0x4164ad
mov eax, dword [esp + 0x18]
mov edx, dword [0x436d00]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41651f
mov esi, dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x416525
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0042d5f4
add esp, 4
jmp 0x416525
mov esi, dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x436d00]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416550
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x416550
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.0042d5f4
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x436d00]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416664
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x416664
jmp 0x416654
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
push ebx
call fcn.004166b0
add esp, 0xc
test esi, esi
je 0x4165a0
mov eax, dword [esp + 0x18]
mov edx, dword [eax - 8]
push edx
push eax
push ebx
call fcn.004166b0
add esp, 0xc
mov esi, dword [esp + 0xcc]
test esi, esi
je 0x4165d5
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x4165d5
push eax
push esi
push ebx
call fcn.00416750
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x4165d5
mov byte [eax + esi], 0
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x18]
mov edx, dword [0x436d00]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416608
mov esi, dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41660e
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0042d5f4
add esp, 4
jmp 0x41660e
mov esi, dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x436d00]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416639
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x416639
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.0042d5f4
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x436d00]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x416664
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x416664
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0042d5f4
add esp, 4
push edi
call fcn.0042d5f4
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call sub.WSOCK32.dll_closesocket
mov eax, dword [esp + 0x24]
pop ebx
cmp eax, 0xffffffff
je 0x416688
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa8
ret 0x20