Function at 0x401d60
Capabilities:
Encode data using xor
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x408850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x28], al
mov edi, 0x40db10
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00401a10
test al, al
je 0x401ddd
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ecx
mov esi, 0x40db10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.004019f0
push ebx
push ebx
push ebx
push ebx
push str.WinHTTP_Example_1.0
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
xor ebp, ebp
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x4020b1
push 0x3938700
push 0x3938700
push 0x3938700
push 0x3938700
push edi
mov dword [esp + 0x30], 4
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push ecx
push 3
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x401e55
mov edx, dword [esp + 0x24]
push edx
push str.Connection_timeout:__u_ms_n_n
jmp 0x401e61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryOption._n
call fcn.004025e2
mov eax, 0x125b
mov edx, 0x121a
mov ecx, 0x1257
add esp, 8
mov word [esp + 0x4a], ax
mov word [esp + 0x56], ax
mov word [esp + 0x68], ax
mov word [esp + 0x48], 0x1250
mov word [esp + 0x4c], 0x1243
mov word [esp + 0x4e], 0x125a
mov word [esp + 0x50], dx
mov word [esp + 0x52], 0x125c
mov word [esp + 0x54], 0x1255
mov word [esp + 0x58], 0x1205
mov word [esp + 0x5a], 0x1206
mov word [esp + 0x5c], 0x1207
mov word [esp + 0x5e], 0x1244
mov word [esp + 0x60], 0x125d
mov word [esp + 0x62], cx
mov word [esp + 0x64], dx
mov word [esp + 0x66], cx
mov word [esp + 0x6a], 0x1259
xor eax, eax
mov cx, word [esp + eax + 0x48]
add eax, 2
xor cx, 0x1234
cmp eax, 0x24
mov word [esp + eax + 0x6a], cx
jl 0x401eea
push ebx
lea edx, [esp + 0x70]
push 0x50
push edx
push edi
mov word [esp + 0xa0], bx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4020b1
push pe_nt_image_headers32
push ebx
push ebx
push ebx
push str._soft_site.txt
push 0x40b12c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebp, eax
cmp ebp, ebx
je 0x4020b1
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, ebx
je 0x4020b1
push ebx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, ebx
je 0x4020b1
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40208c
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4020cb
inc eax
push eax
call fcn.004025d4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4020a2
mov edx, dword [esp + 0x14]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
push esi
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x401fe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
call fcn.004025e2
add esp, 8
jmp 0x402059
push esi
push 0x40b108
call fcn.004025e2
lea edx, [esp + 0x30]
push esi
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00402160
add esp, 0x14
mov ecx, dword [0x40910c]
mov byte [esp + 0x9c], 1
push ecx
push ebx
push eax
lea ecx, [esp + 0x34]
call fcn.004017a0
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x9c], bl
cmp eax, ebx
je 0x40204d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x402044
cmp al, 0xff
je 0x402044
dec al
mov byte [ecx], al
jmp 0x40204d
push ecx
call fcn.004025c9
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push esi
call fcn.004025c9
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
je 0x4020c7
cmp dword [esp + 0x14], ebx
jbe 0x4020c7
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov edi, dword [esp + 0x18]
test eax, eax
jne 0x401f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.004025e2
add esp, 8
jmp 0x4020cb
push str.Out_of_memory_n
call fcn.004025e2
add esp, 4
jmp 0x4020cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.004025e2
add esp, 8
jmp 0x4020cb
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp ebp, ebx
je 0x4020d8
push ebp
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4020e3
push eax
call esi
cmp edi, ebx
je 0x4020ea
push edi
call esi
mov esi, dword [esp + 0xa4]
mov al, byte [esp + 0x28]
lea edx, [esp + 0x28]
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x40910c]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.004017a0
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x402138
mov al, byte [ecx - 1]
cmp al, bl
je 0x40212e
cmp al, 0xff
je 0x40212e
dec al
mov byte [ecx - 1], al
jmp 0x402138
dec ecx
push ecx
call fcn.004025c9
add esp, 4
mov ecx, dword [esp + 0x94]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret