Function at 0x438c32
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get file size
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6bbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push esi
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp + 0x10]
call fcn.00441560
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x438c7d
xor eax, eax
jmp 0x4391d5
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x438c99
xor eax, eax
jmp 0x4391d5
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], 0
cmp dword [ebp + 8], 0
je 0x438d0d
push 0
push 0
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [0x54299c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x438ce2
jmp 0x43917f
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x438d08
cmp dword [ebp - 0x10], 0xa000000
ja 0x438d08
cmp dword [ebp - 0x38], 0
je 0x438d0d
jmp 0x43917f
mov ecx, dword [ebp + 0x10]
call fcn.00415770
mov esi, eax
mov ecx, dword [ebp + 0x14]
call fcn.00415770
lea eax, [esi + eax + 0x1000]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x438d49
jmp 0x43917f
push 0x10
push 0
lea edx, [ebp - 0x24]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov word [ebp - 0x24], 2
push 0x50
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x22], ax
push 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x20]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x30], 0
jmp 0x438d94
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0x24]
jae 0x438db4
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x438db2
jmp 0x438db4
jmp 0x438d8b
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0x24]
je 0x43917f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
call fcn.004094b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004094b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.004094b0
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
push str.POST__s_HTTP_1.1_r_nHost:__s_r_n
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x10
mov ecx, dword [ebp - 0x40]
add ecx, eax
mov dword [ebp - 0x40], ecx
cmp dword [ebp + 8], 0
je 0x438f93
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0xc0]
push eax
push str._____________________________7d61572c150aa8
push 0x64
lea ecx, [ebp - 0xb8]
push ecx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x14
lea edx, [ebp - 0xb8]
push edx
push str.Content_Type:_multipart_form_data__boundary_s_r_n
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
mov ecx, dword [ebp - 0x40]
add ecx, eax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xb8]
push eax
push str.___s_r_nContent_Disposition:_form_data__name_content___filename__s__r_nContent_Type:_application_x_zip_compressed_r_n_r_n
lea ecx, [ebp - 0x54]
push ecx
call fcn.00439e20
add esp, 0x10
lea edx, [ebp - 0xb8]
push edx
push str._r_n___s___r_n
lea eax, [ebp - 0x50]
push eax
call fcn.00439e20
add esp, 0xc
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00416da0
lea edx, [ebp - 0xd8]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004819b0
push eax
lea ecx, [ebp - 0xbc]
call fcn.00441530
and eax, 0xff
test eax, eax
je 0x438f71
lea ecx, [ebp - 0xc8]
call fcn.004094b0
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00416820
mov ecx, eax
call fcn.004845b0
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0xb8]
push edx
push str._r_n___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s
lea eax, [ebp - 0xc8]
push eax
call fcn.00439e20
add esp, 0x14
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00415790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.00409680
jmp 0x438ec8
lea ecx, [ebp - 0x54]
call fcn.00415770
mov esi, dword [ebp - 0x10]
add esi, eax
lea ecx, [ebp - 0x50]
call fcn.00415770
add eax, dword [ebp - 0x44]
add eax, esi
mov dword [ebp - 0x44], eax
jmp 0x439018
push 0x4e0af4
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 8
mov ecx, dword [ebp - 0x40]
add ecx, eax
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0xcc]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00416da0
lea eax, [ebp - 0xe0]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004819b0
push eax
lea ecx, [ebp - 0xcc]
call fcn.00441530
and eax, 0xff
test eax, eax
je 0x439018
push 0
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.00416820
mov ecx, eax
call fcn.004845b0
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x48]
call fcn.00409500
jmp 0x438fbf
lea ecx, [ebp - 0x48]
call fcn.00415770
mov ecx, dword [ebp - 0x44]
add ecx, eax
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
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
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
mov ecx, dword [ebp - 0x40]
add ecx, eax
mov dword [ebp - 0x40], ecx
cmp dword [ebp + 8], 0
je 0x439070
mov edx, dword [ebp - 0x54]
push edx
push 0x4e0ba4
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
mov ecx, dword [ebp - 0x40]
add ecx, eax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004391e6
add esp, 0xc
test eax, eax
jne 0x4390b4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00409680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00409680
jmp 0x43917f
cmp dword [ebp + 8], 0
je 0x4390dd
push 0
lea edx, [ebp - 0x40]
push edx
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x542984]
test eax, eax
je 0x4390dd
cmp dword [ebp - 0x40], 0
jne 0x439070
lea ecx, [ebp - 0x48]
call fcn.00415770
push eax
lea ecx, [ebp - 0x48]
call fcn.00441560
push eax
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004391e6
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x43911f
lea ecx, [ebp - 0x50]
call fcn.00415770
push eax
lea ecx, [ebp - 0x50]
call fcn.00441560
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004391e6
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x439158
cmp dword [ebp + 0x1c], 0
je 0x439158
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00439356
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x439158
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0x40]
mov byte [ecx], 0
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00409680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00409680
cmp dword [ebp - 0x14], 0
je 0x4391a4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
push eax
call fcn.004a4518
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x3c], 0xffffffff
je 0x4391bb
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [ebp - 0x3c], 0xffffffff
cmp dword [ebp - 0x34], 0xffffffff
je 0x4391d2
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20