Function at 0x43cb52
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 0x4acbde
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.0047e220
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x43cb9d
xor eax, eax
jmp 0x43d0f5
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x43cbb9
xor eax, eax
jmp 0x43d0f5
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 0x43cc2d
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4dc]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x43cc02
jmp 0x43d09f
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 0x43cc28
cmp dword [ebp - 0x10], 0xa000000
ja 0x43cc28
cmp dword [ebp - 0x38], 0
je 0x43cc2d
jmp 0x43d09f
mov ecx, dword [ebp + 0x10]
call fcn.00415710
mov esi, eax
mov ecx, dword [ebp + 0x14]
call fcn.00415710
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 0x43cc69
jmp 0x43d09f
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 0x43ccb4
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0x24]
jae 0x43ccd4
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 0x43ccd2
jmp 0x43ccd4
jmp 0x43ccab
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0x24]
je 0x43d09f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
call fcn.00409420
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00409420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00409420
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 0x43ceb3
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.0041a9c0
add esp, 0x10
lea edx, [ebp - 0xb8]
push edx
push str._r_n___s___r_n
lea eax, [ebp - 0x50]
push eax
call fcn.0041a9c0
add esp, 0xc
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00416c30
lea edx, [ebp - 0xd8]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00416d80
push eax
lea ecx, [ebp - 0xbc]
call fcn.0043b3a0
and eax, 0xff
test eax, eax
je 0x43ce91
lea ecx, [ebp - 0xc8]
call fcn.00409420
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0043b370
mov ecx, eax
call fcn.00417fc0
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.0041a9c0
add esp, 0x14
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00415730
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.004095f0
jmp 0x43cde8
lea ecx, [ebp - 0x54]
call fcn.00415710
mov esi, dword [ebp - 0x10]
add esi, eax
lea ecx, [ebp - 0x50]
call fcn.00415710
add eax, dword [ebp - 0x44]
add eax, esi
mov dword [ebp - 0x44], eax
jmp 0x43cf38
push 0x4e7604
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.00416c30
lea eax, [ebp - 0xe0]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00416d80
push eax
lea ecx, [ebp - 0xcc]
call fcn.0043b3a0
and eax, 0xff
test eax, eax
je 0x43cf38
push 0
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.0043b370
mov ecx, eax
call fcn.00417fc0
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x48]
call fcn.00409470
jmp 0x43cedf
lea ecx, [ebp - 0x48]
call fcn.00415710
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 0x43cf90
mov edx, dword [ebp - 0x54]
push edx
push 0x4e76b4
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.0043d106
add esp, 0xc
test eax, eax
jne 0x43cfd4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.004095f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004095f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004095f0
jmp 0x43d09f
cmp dword [ebp + 8], 0
je 0x43cffd
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 [0x54b4c4]
test eax, eax
je 0x43cffd
cmp dword [ebp - 0x40], 0
jne 0x43cf90
lea ecx, [ebp - 0x48]
call fcn.00415710
push eax
lea ecx, [ebp - 0x48]
call fcn.0047e220
push eax
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0043d106
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x43d03f
lea ecx, [ebp - 0x50]
call fcn.00415710
push eax
lea ecx, [ebp - 0x50]
call fcn.0047e220
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0043d106
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x43d078
cmp dword [ebp + 0x1c], 0
je 0x43d078
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0043d276
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x43d078
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.004095f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004095f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004095f0
cmp dword [ebp - 0x14], 0
je 0x43d0c4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
push eax
call fcn.004aa2c8
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x3c], 0xffffffff
je 0x43d0db
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 0x43d0f2
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